提交 efb5f68f 编写于 作者: B Balakrishnan Raman 提交者: David S. Miller

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: NBalakrishnan Raman <ramanb@cumulusnetworks.com>
Signed-off-by: NRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8b3f9337
...@@ -2268,7 +2268,7 @@ static void vxlan_cleanup(unsigned long arg) ...@@ -2268,7 +2268,7 @@ static void vxlan_cleanup(unsigned long arg)
= container_of(p, struct vxlan_fdb, hlist); = container_of(p, struct vxlan_fdb, hlist);
unsigned long timeout; unsigned long timeout;
if (f->state & NUD_PERMANENT) if (f->state & (NUD_PERMANENT | NUD_NOARP))
continue; continue;
timeout = f->used + vxlan->cfg.age_interval * HZ; timeout = f->used + vxlan->cfg.age_interval * HZ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册