]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
vxlan: don't age NTF_EXT_LEARNED fdb entries
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Mon, 27 Mar 2017 22:46:41 +0000 (15:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2017 00:57:16 +0000 (17:57 -0700)
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>
drivers/net/vxlan.c

index 09855be219e9535ba373f5a6deaf70aff86c6b80..1e54fb5c883ad77c3d51752fcae18dd33d8f4e95 100644 (file)
@@ -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,