kernel: bump 5.10 to 5.10.27
[openwrt/staging/ynezz.git] / target / linux / generic / pending-5.10 / 764-net-bridge-switchdev-Send-FDB-notifications-for-host.patch
index 2317989fa5bb87f7248c5723dec244e546ca5097..0e773888df1b281019d64cd0c4a7e92b0bec8081 100644 (file)
@@ -70,14 +70,16 @@ Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
  {
        struct switchdev_notifier_fdb_info info = {
                .addr = fdb->key.addr.addr,
-@@ -112,18 +113,16 @@ br_switchdev_fdb_notify(const struct net
+@@ -112,20 +113,19 @@ br_switchdev_fdb_notify(const struct net
                .local = test_bit(BR_FDB_LOCAL, &fdb->flags),
                .offloaded = test_bit(BR_FDB_OFFLOADED, &fdb->flags),
        };
--
++      struct net_device *dev = fdb->dst ? fdb->dst->dev : br->dev;
 -      if (!fdb->dst)
 -              return;
-+      struct net_device *dev = fdb->dst ? fdb->dst->dev : br->dev;
+       if (test_bit(BR_FDB_LOCAL, &fdb->flags))
+               return;
  
        switch (type) {
        case RTM_DELNEIGH: