]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan.c
zebra: act on kernel notifications for remote neighbors as well
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Fri, 2 Mar 2018 23:28:33 +0000 (15:28 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 12 Apr 2018 13:07:43 +0000 (09:07 -0400)
commitee69da278d26aa46042302238ed6753022f42aa7
tree3489f5a340b9964ed5ad10b18e41debe753a367a
parent689b510143d3ee779c78ca4c04153e3fb6df13ae
zebra: act on kernel notifications for remote neighbors as well

There can be a race condition between kernel and frr as follows.
Frr sends remote neigh notification.
At the (almost) same time kernel might send a notification saying
neigh is local.
After processing this notifications, the state in frr is local while
state in kernel is remote. This causes kernel and frr to be out of sync.
This problem will be avoided if FRR acts on the kernel notifications for
remote neighbors. When FRR sees a remote neighbor notification for a
neighbor which it thinks is local, FRR will change the neigh state to remote.

Ticket: CM-19923/CM-18830
Review: CCR-7222
Testing: Manual

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
zebra/rt_netlink.c
zebra/zebra_vxlan.c
zebra/zebra_vxlan.h