bridge: don't age externally added FDB entries
authorSiva Mannem <siva.mannem.lnx@gmail.com>
Wed, 23 Sep 2015 15:39:19 +0000 (08:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 21:35:58 +0000 (14:35 -0700)
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>
net/bridge/br_fdb.c

index 9e9875da0a4f979c5389f616b432d218b19fd776..6663cc0789a6bd3f5ad0e57d8cb968ae5d08259a 100644 (file)
@@ -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);