mirror-linux/drivers/net/ethernet/microchip
Horatiu Vultur 675c807ae2 net: lan966x: Fix usage of lan966x->mac_lock when used by FDB
When the SW bridge was trying to add/remove entries to/from HW, the
access to HW was not protected by any lock. In this way, it was
possible to have race conditions.
Fix this by using the lan966x->mac_lock to protect parallel access to HW
for this cases.

Fixes: 25ee9561ec ("net: lan966x: More MAC table functionality")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-07-18 20:00:00 -07:00
..
lan966x net: lan966x: Fix usage of lan966x->mac_lock when used by FDB 2022-07-18 20:00:00 -07:00
sparx5 net: sparx5: mdb add/del handle non-sparx5 devices 2022-06-30 11:32:54 -07:00
Kconfig
Makefile
enc28j60.c
enc28j60_hw.h
encx24j600-regmap.c
encx24j600.c
encx24j600_hw.h
lan743x_ethtool.c net: lan743x: Add support for OTP 2022-03-18 12:53:23 +00:00
lan743x_ethtool.h
lan743x_main.c net: lan743x: PCI11010 / PCI11414 fix 2022-05-27 12:09:46 +01:00
lan743x_main.h net: lan743x: Add support for PTP-IO Event Output (Periodic Output) 2022-03-18 12:53:23 +00:00
lan743x_ptp.c net: lan743x: Add support for PTP-IO Event Output (Periodic Output) 2022-03-18 12:53:23 +00:00
lan743x_ptp.h net: lan743x: Add support for PTP-IO Event Output (Periodic Output) 2022-03-18 12:53:23 +00:00