kernel_samsung_a53x/drivers/net/ethernet/chelsio
Sebastian Andrzej Siewior e080d99dc0 cxgb4: Properly lock TX queue for the selftest.
[ Upstream commit 9067eccdd7849dd120d5495dbd5a686fa6ed2c1a ]

The selftest for the driver sends a dummy packet and checks if the
packet will be received properly as it should be. The regular TX path
and the selftest can use the same network queue so locking is required
and was missing in the selftest path. This was addressed in the commit
cited below.
Unfortunately locking the TX queue requires BH to be disabled which is
not the case in selftest path which is invoked in process context.
Lockdep should be complaining about this.

Use __netif_tx_lock_bh() for TX queue locking.

Fixes: c650e04898072 ("cxgb4: Fix race between loopback and normal Tx path")
Reported-by: "John B. Wyatt IV" <jwyatt@redhat.com>
Closes: https://lore.kernel.org/all/Zic0ot5aGgR-V4Ks@thinkpad2021/
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20240429091147.YWAaal4v@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 11:32:43 +01:00
..
cxgb Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cxgb3 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cxgb4 cxgb4: Properly lock TX queue for the selftest. 2024-11-19 11:32:43 +01:00
cxgb4vf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inline_crypto chtls: fix tp->rcv_tstamp initialization 2024-11-18 11:42:50 +01:00
libcxgb Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00