mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 07:48:07 +00:00
Merge pull request #7482 from AnuradhaKaruppiah/evpn-sticky-fix
zebra: Set NUD_NOARP on sticky MAC entries in addition to NTF_STICKY
This commit is contained in:
commit
3adb21ea4e
@ -3179,10 +3179,14 @@ ssize_t netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx, void *data,
|
|||||||
update_flags = dplane_ctx_mac_get_update_flags(ctx);
|
update_flags = dplane_ctx_mac_get_update_flags(ctx);
|
||||||
if (update_flags & DPLANE_MAC_REMOTE) {
|
if (update_flags & DPLANE_MAC_REMOTE) {
|
||||||
flags |= NTF_SELF;
|
flags |= NTF_SELF;
|
||||||
if (dplane_ctx_mac_is_sticky(ctx))
|
if (dplane_ctx_mac_is_sticky(ctx)) {
|
||||||
|
/* NUD_NOARP prevents the entry from expiring */
|
||||||
|
state |= NUD_NOARP;
|
||||||
|
/* sticky the entry from moving */
|
||||||
flags |= NTF_STICKY;
|
flags |= NTF_STICKY;
|
||||||
else
|
} else {
|
||||||
flags |= NTF_EXT_LEARNED;
|
flags |= NTF_EXT_LEARNED;
|
||||||
|
}
|
||||||
/* if it was static-local previously we need to clear the
|
/* if it was static-local previously we need to clear the
|
||||||
* notify flags on replace with remote
|
* notify flags on replace with remote
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user