Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
authorJakub Kicinski <kuba@kernel.org>
Thu, 30 Jun 2022 23:31:00 +0000 (16:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Jun 2022 23:31:00 +0000 (16:31 -0700)
drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
  9c5de246c1db ("net: sparx5: mdb add/del handle non-sparx5 devices")
  fbb89d02e33a ("net: sparx5: Allow mdb entries to both CPU and ports")

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
17 files changed:
1  2 
MAINTAINERS
drivers/net/dsa/ocelot/felix_vsc9959.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
drivers/net/phy/phy_device.c
drivers/net/phy/sfp.c
drivers/net/usb/usbnet.c
include/linux/netdevice.h
include/linux/phy.h
kernel/trace/trace_uprobe.c
net/ipv4/tcp_ipv4.c
net/ipv6/addrconf.c
net/ipv6/route.c
net/ipv6/sit.c
net/mptcp/protocol.c
net/mptcp/subflow.c
net/socket.c

diff --cc MAINTAINERS
Simple merge
index 40ef9fad3a77099e03e662bf0ed828be23483bef,5edc8b7176c822eabbf319c9d1afd3e9f984fe81..ec07f7d0528ce0a0074d5dc02715444b9d6c7365
@@@ -394,10 -394,15 +394,13 @@@ static int sparx5_handle_port_mdb_add(s
        struct sparx5 *spx5 = port->sparx5;
        u16 pgid_idx, vid;
        u32 mact_entry;
 +      bool is_host;
        int res, err;
  
 -      if (netif_is_bridge_master(v->obj.orig_dev)) {
 -              sparx5_mact_learn(spx5, PGID_CPU, v->addr, v->vid);
 -              return 0;
 -      }
+       if (!sparx5_netdevice_check(dev))
+               return -EOPNOTSUPP;
 +      is_host = netif_is_bridge_master(v->obj.orig_dev);
  
        /* When VLAN unaware the vlan value is not parsed and we receive vid 0.
         * Fall back to bridge vid 1.
@@@ -477,9 -466,17 +480,12 @@@ static int sparx5_handle_port_mdb_del(s
        struct sparx5_port *port = netdev_priv(dev);
        struct sparx5 *spx5 = port->sparx5;
        u16 pgid_idx, vid;
 -      u32 mact_entry, res, pgid_entry[3];
 -      int err;
 +      u32 mact_entry, res, pgid_entry[3], misc_cfg;
 +      bool host_ena;
  
 -      if (netif_is_bridge_master(v->obj.orig_dev)) {
 -              sparx5_mact_forget(spx5, v->addr, v->vid);
 -              return 0;
 -      }
 -
+       if (!sparx5_netdevice_check(dev))
+               return -EOPNOTSUPP;
        if (!br_vlan_enabled(spx5->hw_bridge_dev))
                vid = 1;
        else
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc net/ipv6/sit.c
Simple merge
Simple merge
Simple merge
diff --cc net/socket.c
Simple merge