Home
last modified time | relevance | path

Searched hist:"2468346 c5677919de288bee85a0fefbef70c1e4e" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/soc/mscc/
H A Docelot.hdiff 2468346c5677919de288bee85a0fefbef70c1e4e Sun Oct 24 12:17:51 CDT 2021 Vladimir Oltean <vladimir.oltean@nxp.com> net: mscc: ocelot: serialize access to the MAC table

DSA would like to remove the rtnl_lock from its
SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE handlers, and the felix driver uses
the same MAC table functions as ocelot.

This means that the MAC table functions will no longer be implicitly
serialized with respect to each other by the rtnl_mutex, we need to add
a dedicated lock in ocelot for the non-atomic operations of selecting a
MAC table row, reading/writing what we want and polling for completion.

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>
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot.cdiff 2468346c5677919de288bee85a0fefbef70c1e4e Sun Oct 24 12:17:51 CDT 2021 Vladimir Oltean <vladimir.oltean@nxp.com> net: mscc: ocelot: serialize access to the MAC table

DSA would like to remove the rtnl_lock from its
SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE handlers, and the felix driver uses
the same MAC table functions as ocelot.

This means that the MAC table functions will no longer be implicitly
serialized with respect to each other by the rtnl_mutex, we need to add
a dedicated lock in ocelot for the non-atomic operations of selecting a
MAC table row, reading/writing what we want and polling for completion.

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>