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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:41 +0000 (11:05 +0100)
commita2faa4a272621a92ab82f69936443ac8af5c9ddc
tree43d756acdc4b3ec8282612ff83fe3376511e7af9
parentf8df88d6d10cdc728c6c9a5036a91e0339638188
net: ocelot: Fix the call to switchdev_bridge_port_offload

commit c0b7f7d7e0ad44f35745c01964b3fa2833e298cb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mscc/ocelot_net.c