[PATCH net-next] vxlan: don't age NTF_EXT_LEARNED fdb entries

Subsystems: networking drivers, the rest

STALE3416d

2 messages, 2 authors, 2017-03-29 · open the first message on its own page

[PATCH net-next] vxlan: don't age NTF_EXT_LEARNED fdb entries

From: Roopa Prabhu <hidden>
Date: 2017-03-27 22:47:20

From: Roopa Prabhu <redacted>

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 <redacted>
---
 drivers/net/vxlan.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 09855be..1e54fb5 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,
-- 
1.9.1

Re: [PATCH net-next] vxlan: don't age NTF_EXT_LEARNED fdb entries

From: David Miller <davem@davemloft.net>
Date: 2017-03-29 00:57:45

From: Roopa Prabhu <redacted>
Date: Mon, 27 Mar 2017 15:46:41 -0700
From: Roopa Prabhu <redacted>

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 <redacted>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help