Commit dcd45e06 authored by Siva Mannem's avatar Siva Mannem Committed by David S. Miller

bridge: don't age externally added FDB entries

Signed-off-by: default avatarSiva Mannem <siva.mannem.lnx@gmail.com>
Signed-off-by: default avatarScott Feldman <sfeldma@gmail.com>
Acked-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: default avatarJiri Pirko <jiri@resnulli.us>
Acked-by: default avatarPremkumar Jonnala <pjonnala@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 52fe3e2d
...@@ -299,6 +299,8 @@ void br_fdb_cleanup(unsigned long _data) ...@@ -299,6 +299,8 @@ void br_fdb_cleanup(unsigned long _data)
unsigned long this_timer; unsigned long this_timer;
if (f->is_static) if (f->is_static)
continue; continue;
if (f->added_by_external_learn)
continue;
this_timer = f->updated + delay; this_timer = f->updated + delay;
if (time_before_eq(this_timer, jiffies)) if (time_before_eq(this_timer, jiffies))
fdb_delete(br, f); fdb_delete(br, f);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment