]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9e0b7c9dd3f9c7133873abeea580092788e112b
tree14e634c520fe5ccc51b2a1db53750078a869f531
parentdc3bd442b8a93c4514b43bd3169246928f9b16ea
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: 3bfe7d2358305b ("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