]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Mac rescan on interface up/down efficency improvements
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 6 Jun 2019 00:53:01 +0000 (20:53 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Jun 2019 13:10:35 +0000 (09:10 -0400)
commit78869ebff4f6bff7bd07e45435f2996f64ddc7d5
tree223af0fdad210d92427a73630326f400664c04f2
parentcd4ee3395cc0877539e0f0ce4c98125bc4761d4c
bgpd: Mac rescan on interface up/down efficency improvements

On interface up/down, bgp stores the mac address of the interface
in a bgp_mac_hash table entry and then initiates a rescan
of the evpn l2vpn table.  The problem with this scan is that
it is looking at every item in the table when only 1 mac
has changed.  So every up/down event causes some major trauma
in the bgp_update processing.

Modify the mac scanning such that we know the mac that is changed
and as such we should reprocess those entries only.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_mac.c