Skip to content

Commit def499c

Browse files
roopa-prabhudavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2a69ca7 commit def499c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/vxlan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,9 @@ static void vxlan_cleanup(unsigned long arg)
23222322
if (f->state & (NUD_PERMANENT | NUD_NOARP))
23232323
continue;
23242324

2325+
if (f->flags & NTF_EXT_LEARNED)
2326+
continue;
2327+
23252328
timeout = f->used + vxlan->cfg.age_interval * HZ;
23262329
if (time_before_eq(timeout, jiffies)) {
23272330
netdev_dbg(vxlan->dev,

0 commit comments

Comments
 (0)