Skip to content

Commit 8fa301a

Browse files
Balakrishnan Ramangregkh
authored andcommitted
vxlan: do not age static remote mac entries
[ Upstream commit efb5f68f32995c146944a9d4257c3cf8eae2c4a1 ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 00e83ab commit 8fa301a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/vxlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ static void vxlan_cleanup(unsigned long arg)
22402240
= container_of(p, struct vxlan_fdb, hlist);
22412241
unsigned long timeout;
22422242

2243-
if (f->state & NUD_PERMANENT)
2243+
if (f->state & (NUD_PERMANENT | NUD_NOARP))
22442244
continue;
22452245

22462246
timeout = f->used + vxlan->cfg.age_interval * HZ;

0 commit comments

Comments
 (0)