]> www.infradead.org Git - users/willy/pagecache.git/commit
net: ti: icssg-prueth: Fix race condition for VLAN table access
authorMD Danish Anwar <danishanwar@ti.com>
Mon, 7 Oct 2024 05:41:24 +0000 (11:11 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2024 11:18:01 +0000 (12:18 +0100)
commitff8ee11e778520c5716b7f165d2c7ce14d6a068b
tree2acc125ae5fc5b29315512198b2f959893126496
parent08c8acc9d8f3f70d62dd928571368d5018206490
net: ti: icssg-prueth: Fix race condition for VLAN table access

The VLAN table is a shared memory between the two ports/slices
in a ICSSG cluster and this may lead to race condition when the
common code paths for both ports are executed in different CPUs.

Fix the race condition access by locking the shared memory access

Fixes: 487f7323f39a ("net: ti: icssg-prueth: Add helper functions to configure FDB")
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/icssg/icssg_config.c
drivers/net/ethernet/ti/icssg/icssg_prueth.c
drivers/net/ethernet/ti/icssg/icssg_prueth.h