public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/5] net: lan966x: Fix issues with MAC table
@ 2022-07-14 19:40 Horatiu Vultur
  2022-07-14 19:40 ` [PATCH net 1/5] net: lan966x: Fix taking rtnl_lock while holding spin_lock Horatiu Vultur
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Horatiu Vultur @ 2022-07-14 19:40 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: UNGLinuxDriver, davem, edumazet, kuba, pabeni, vladimir.oltean,
	Horatiu Vultur

The patch series fixes 2 issues:
- when an entry was forgotten the irq thread was holding a spin lock and then
  was talking also rtnl_lock.
- the access to the HW MAC table is indirect, so the access to the HW MAC
  table was not synchronized, which means that there could be race conditions.

Horatiu Vultur (5):
  net: lan966x: Fix taking rtnl_lock while holding spin_lock
  net: lan966x: Fix usage of lan966x->mac_lock when entry is added
  net: lan966x: Fix usage of lan966x->mac_lock when entry is removed
  net: lan966x: Fix usage of lan966x->mac_lock inside
    lan966x_mac_irq_handler
  net: lan966x: Fix usage of lan966x->mac_lock when used by FDB

 .../ethernet/microchip/lan966x/lan966x_mac.c  | 112 +++++++++++++-----
 1 file changed, 80 insertions(+), 32 deletions(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-19  3:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-14 19:40 [PATCH net 0/5] net: lan966x: Fix issues with MAC table Horatiu Vultur
2022-07-14 19:40 ` [PATCH net 1/5] net: lan966x: Fix taking rtnl_lock while holding spin_lock Horatiu Vultur
2022-07-14 19:40 ` [PATCH net 2/5] net: lan966x: Fix usage of lan966x->mac_lock when entry is added Horatiu Vultur
2022-07-14 19:40 ` [PATCH net 3/5] net: lan966x: Fix usage of lan966x->mac_lock when entry is removed Horatiu Vultur
2022-07-14 19:40 ` [PATCH net 4/5] net: lan966x: Fix usage of lan966x->mac_lock inside lan966x_mac_irq_handler Horatiu Vultur
2022-07-14 19:40 ` [PATCH net 5/5] net: lan966x: Fix usage of lan966x->mac_lock when used by FDB Horatiu Vultur
2022-07-16 20:10 ` [PATCH net 0/5] net: lan966x: Fix issues with MAC table Vladimir Oltean
2022-07-19  3:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox