mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
bridge: don't age externally added FDB entries
Signed-off-by: Siva Mannem <siva.mannem.lnx@gmail.com> Signed-off-by: Scott Feldman <sfeldma@gmail.com> Acked-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Acked-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Premkumar Jonnala <pjonnala@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
52fe3e2d51
commit
dcd45e0649
@ -299,6 +299,8 @@ void br_fdb_cleanup(unsigned long _data)
|
||||
unsigned long this_timer;
|
||||
if (f->is_static)
|
||||
continue;
|
||||
if (f->added_by_external_learn)
|
||||
continue;
|
||||
this_timer = f->updated + delay;
|
||||
if (time_before_eq(this_timer, jiffies))
|
||||
fdb_delete(br, f);
|
||||
|
Loading…
Reference in New Issue
Block a user