From: Siva Mannem Date: Wed, 23 Sep 2015 15:39:19 +0000 (-0700) Subject: bridge: don't age externally added FDB entries X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dcd45e06496ca586db35949d1d92d48aab8a0a00;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git bridge: don't age externally added FDB entries Signed-off-by: Siva Mannem Signed-off-by: Scott Feldman Acked-by: Vivien Didelot Acked-by: Jiri Pirko Acked-by: Premkumar Jonnala Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index 9e9875da0a4f..6663cc0789a6 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c @@ -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);