linux-stable/drivers/net/ethernet/microchip/lan966x
Horatiu Vultur 99343cfa4f net: lan966x: Fix usage of lan966x->mac_lock when entry is removed
To remove an entry to the MAC table, it is required first to setup the
entry and then issue a command for the MAC to forget the entry.
So if it happens for two threads to remove simultaneously an entry
in MAC table then it would be a race condition.
Fix this by using lan966x->mac_lock to protect the HW access.

Fixes: e18aba8941 ("net: lan966x: add mactable support")
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
..
Kconfig net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module 2022-02-13 15:57:03 +00:00
lan966x_ethtool.c net: lan966x: Implement get_ts_info 2022-02-01 14:18:44 +00:00
lan966x_fdb.c net: lan966x: Extend switchdev with fdb support 2021-12-20 11:44:06 +00:00
lan966x_fdma.c net: lan966x: Fix use of pointer after being freed 2022-05-12 16:21:56 -07:00
lan966x_ifh.h
lan966x_mac.c net: lan966x: Fix usage of lan966x->mac_lock when entry is removed 2022-07-18 20:00:00 -07:00
lan966x_main.c net: lan966x: hardcode the number of external ports 2022-07-05 17:52:08 -07:00
lan966x_main.h net: lan966x: hardcode the number of external ports 2022-07-05 17:52:08 -07:00
lan966x_mdb.c net: lan966x: Update mdb when enabling/disabling mcast_snooping 2022-02-05 15:00:43 +00:00
lan966x_phylink.c net: lan966x: use .mac_select_pcs() interface 2022-02-03 19:11:21 -08:00
lan966x_port.c net: lan966x: Add FDMA functionality 2022-04-11 20:49:32 -07:00
lan966x_ptp.c net: lan966x: Add support for PTP_PF_EXTTS 2022-04-27 12:03:18 +01:00
lan966x_regs.h net: lan966x: Add registers used to configure the PTP pin 2022-04-27 12:03:18 +01:00
lan966x_switchdev.c net: lan966x: Fix when a port's upper is changed. 2022-04-11 20:47:15 -07:00
lan966x_vlan.c net: lan966x: Extend switchdev with mdb support 2022-01-05 11:25:13 +00:00
Makefile net: lan966x: Add FDMA functionality 2022-04-11 20:49:32 -07:00