summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBalakrishnan Raman <ramanb@cumulusnetworks.com>2017-01-24 05:44:33 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-24 21:01:58 +0100
commitefb5f68f32995c146944a9d4257c3cf8eae2c4a1 (patch)
tree47b28c228d447a65b1e5f1c2de528ea91345d53d /drivers
parentvxlan: don't flush static fdb entries on admin down (diff)
downloadlinux-efb5f68f32995c146944a9d4257c3cf8eae2c4a1.tar.xz
linux-efb5f68f32995c146944a9d4257c3cf8eae2c4a1.zip
vxlan: do not age static remote mac entries
Mac aging is applicable only for dynamically learnt remote mac entries. Check for user configured static remote mac entries and skip aging. Signed-off-by: Balakrishnan Raman <ramanb@cumulusnetworks.com> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 746a819f0a41..50b62db213b0 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -2268,7 +2268,7 @@ static void vxlan_cleanup(unsigned long arg)
= container_of(p, struct vxlan_fdb, hlist);
unsigned long timeout;
- if (f->state & NUD_PERMANENT)
+ if (f->state & (NUD_PERMANENT | NUD_NOARP))
continue;
timeout = f->used + vxlan->cfg.age_interval * HZ;