WSL2-Linux-Kernel/drivers/net/dsa/b53
Vladimir Oltean f7eb4a1c08 net: dsa: b53: serialize access to the ARL table
The b53 driver performs non-atomic transactions to the ARL table when
adding, deleting and reading FDB and MDB entries.

Traditionally these were all serialized by the rtnl_lock(), but now it
is possible that DSA calls ->port_fdb_add and ->port_fdb_del without
holding that lock.

So the driver must have its own serialization logic. Add a mutex and
hold it from all entry points (->port_fdb_{add,del,dump},
->port_mdb_{add,del}).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-25 12:59:41 +01:00
..
Kconfig net: dsa: b53: support legacy tags 2021-03-17 12:24:36 -07:00
Makefile net: dsa: b53: Add SerDes support 2018-09-06 07:48:34 -07:00
b53_common.c net: dsa: b53: serialize access to the ARL table 2021-10-25 12:59:41 +01:00
b53_mdio.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
b53_mmap.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
b53_priv.h net: dsa: b53: serialize access to the ARL table 2021-10-25 12:59:41 +01:00
b53_regs.h net: dsa: b53: Support setting learning on port 2021-02-23 12:23:00 -08:00
b53_serdes.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
b53_serdes.h net: dsa: b53: Use the correct style for SPDX License Identifier 2019-09-22 15:24:51 -07:00
b53_spi.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
b53_srab.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00