diff options
author | Petr Machata <petrm@mellanox.com> | 2018-05-03 14:43:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-03 13:46:47 -0400 |
commit | 161d82de1ff8430ef96d90d0da0e3643979791d2 (patch) | |
tree | e502263bda06c2ca20ae238414773447c015ef93 /net/bridge/br_switchdev.c | |
parent | 816a3bed9549fcc0c90ba97c9077e64e734f0df6 (diff) | |
download | linux-rpi3-161d82de1ff8430ef96d90d0da0e3643979791d2.tar.gz linux-rpi3-161d82de1ff8430ef96d90d0da0e3643979791d2.tar.bz2 linux-rpi3-161d82de1ff8430ef96d90d0da0e3643979791d2.zip |
net: bridge: Notify about !added_by_user FDB entries
Do not automatically bail out on sending notifications about activity on
non-user-added FDB entries. Instead, notify about this activity except
for cases where the activity itself originates in a notification, to
avoid sending duplicate notifications.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_switchdev.c')
-rw-r--r-- | net/bridge/br_switchdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_switchdev.c b/net/bridge/br_switchdev.c index 71a03c487c4b..35474d49555d 100644 --- a/net/bridge/br_switchdev.c +++ b/net/bridge/br_switchdev.c @@ -118,7 +118,7 @@ br_switchdev_fdb_call_notifiers(bool adding, const unsigned char *mac, void br_switchdev_fdb_notify(const struct net_bridge_fdb_entry *fdb, int type) { - if (!fdb->added_by_user || !fdb->dst) + if (!fdb->dst) return; switch (type) { |