[dev] EVPN Query
Atul Chowdhry
atul77 at gmail.com
Mon Aug 26 21:47:20 UTC 2024
Hi Guys,
I am looking at the given below function zebra_evpn_mac_is_static in
zebra/zebra_evpn_mac.h file.
/* if the mac has been added of a mac-route from the peer
* or if it is being referenced by a neigh added by the
* peer we cannot let it age out i.e. we set the static bit
* in the dataplane
*/
static inline bool zebra_evpn_mac_is_static(struct zebra_mac *mac)
{
return ((mac->flags & ZEBRA_MAC_ALL_PEER_FLAGS) || mac->sync_neigh_cnt);
}
Is the use of ZEBRA_MAC_ALL_PEER_FLAGS correct here ? I feel that it should
be ZEBRA_MAC_ES_PEER_ACTIVE instead.
The current code is leading to creation of static mac on mac originating
peer also since it will have the ZEBRA_MAC_ES_PEER_PROXY flag set.
Rgds
Atul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/dev/attachments/20240826/33721e5d/attachment.htm>
More information about the dev
mailing list