net: ocelot: Fix the call to switchdev_bridge_port_offload
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 17 Jan 2022 12:53:00 +0000 (13:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jan 2022 13:04:25 +0000 (13:04 +0000)
commitc0b7f7d7e0ad44f35745c01964b3fa2833e298cb
tree14e634c520fe5ccc51b2a1db53750078a869f531
parent429e3d123d9a50cc9882402e40e0ac912d88cfcf
net: ocelot: Fix the call to switchdev_bridge_port_offload

In the blamed commit, the call to the function
switchdev_bridge_port_offload was passing the wrong argument for
atomic_nb. It was ocelot_netdevice_nb instead of ocelot_swtchdev_nb.
This patch fixes this issue.

Fixes: 4e51bf44a03af6 ("net: bridge: move the switchdev object replay helpers to "push" mode")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_net.c