mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 00:25:01 +00:00
bgpd: cosmetic change for evpn-mh
Two cosmetic change - 1) Remove unnecessary local variable - `es_vtep` used in one condition. 2) Remove unused variable - `es_cnt`. `proc_cnt` has already taken `es` into account. Signed-off-by: anlan_cs <vic.lan@pica8.com>
This commit is contained in:
parent
4037154240
commit
bce8bf5844
@ -3460,14 +3460,11 @@ static void bgp_evpn_es_evi_vtep_re_eval_active(struct bgp *bgp,
|
|||||||
new_active ? "active" : "inactive");
|
new_active ? "active" : "inactive");
|
||||||
|
|
||||||
/* add VTEP to parent es */
|
/* add VTEP to parent es */
|
||||||
if (new_active) {
|
if (new_active)
|
||||||
struct bgp_evpn_es_vtep *es_vtep;
|
evi_vtep->es_vtep = bgp_evpn_es_vtep_add(
|
||||||
|
bgp, evi_vtep->es_evi->es, evi_vtep->vtep_ip,
|
||||||
es_vtep = bgp_evpn_es_vtep_add(bgp, evi_vtep->es_evi->es,
|
false /*esr*/, 0, 0);
|
||||||
evi_vtep->vtep_ip, false /*esr*/,
|
else {
|
||||||
0, 0);
|
|
||||||
evi_vtep->es_vtep = es_vtep;
|
|
||||||
} else {
|
|
||||||
if (evi_vtep->es_vtep) {
|
if (evi_vtep->es_vtep) {
|
||||||
bgp_evpn_es_vtep_do_del(bgp, evi_vtep->es_vtep,
|
bgp_evpn_es_vtep_do_del(bgp, evi_vtep->es_vtep,
|
||||||
false /*esr*/);
|
false /*esr*/);
|
||||||
@ -4419,14 +4416,12 @@ static uint32_t bgp_evpn_es_run_consistency_checks(struct bgp_evpn_es *es)
|
|||||||
static void bgp_evpn_run_consistency_checks(struct thread *t)
|
static void bgp_evpn_run_consistency_checks(struct thread *t)
|
||||||
{
|
{
|
||||||
int proc_cnt = 0;
|
int proc_cnt = 0;
|
||||||
int es_cnt = 0;
|
|
||||||
struct listnode *node;
|
struct listnode *node;
|
||||||
struct listnode *nextnode;
|
struct listnode *nextnode;
|
||||||
struct bgp_evpn_es *es;
|
struct bgp_evpn_es *es;
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS(bgp_mh_info->pend_es_list,
|
for (ALL_LIST_ELEMENTS(bgp_mh_info->pend_es_list,
|
||||||
node, nextnode, es)) {
|
node, nextnode, es)) {
|
||||||
++es_cnt;
|
|
||||||
++proc_cnt;
|
++proc_cnt;
|
||||||
/* run consistency checks on the ES and remove it from the
|
/* run consistency checks on the ES and remove it from the
|
||||||
* pending list
|
* pending list
|
||||||
|
Loading…
Reference in New Issue
Block a user