summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorRoopa Prabhu <roopa@cumulusnetworks.com>2017-03-28 00:46:41 +0200
committerDavid S. Miller <davem@davemloft.net>2017-03-29 02:57:16 +0200
commitdef499c929a72ba11b25e26e26e900ba3d5c2762 (patch)
treef592e12e1f910969eb6063f79830e5c8cbd88946 /drivers/net/vxlan.c
parentMerge branch 'net-dpipe' (diff)
downloadlinux-def499c929a72ba11b25e26e26e900ba3d5c2762.tar.xz
linux-def499c929a72ba11b25e26e26e900ba3d5c2762.zip
vxlan: don't age NTF_EXT_LEARNED fdb entries
vxlan driver already implicitly supports installing of external fdb entries with NTF_EXT_LEARNED. This patch just makes sure these entries are not aged by the vxlan driver. An external entity managing these entries will age them out. This is consistent with the use of NTF_EXT_LEARNED in the bridge driver. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/vxlan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 09855be219e9..1e54fb5c883a 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -2322,6 +2322,9 @@ static void vxlan_cleanup(unsigned long arg)
if (f->state & (NUD_PERMANENT | NUD_NOARP))
continue;
+ if (f->flags & NTF_EXT_LEARNED)
+ continue;
+
timeout = f->used + vxlan->cfg.age_interval * HZ;
if (time_before_eq(timeout, jiffies)) {
netdev_dbg(vxlan->dev,