diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2022-07-14 21:40:40 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-18 20:00:00 -0700 |
commit | 675c807ae26b267233b97cd5006979a6bb8d54d4 (patch) | |
tree | 953f205f20f82e79d5501db326d72d40b787fa71 /tools/perf/scripts/python | |
parent | c1924684369762b112428a333ad00eac6ca89d96 (diff) |
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: 25ee9561ec622 ("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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions