]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ti: icssg: Fix XSK zero copy TX during application wakeup
authorMeghana Malladi <m-malladi@ti.com>
Thu, 18 Jun 2026 10:03:48 +0000 (15:33 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Jun 2026 21:45:32 +0000 (14:45 -0700)
commitd95ea4bc09e88fe00f8e1c4e27c021313a4139c7
treea27a4408be744e12d42bd566a065a91ca7080612
parentaee5836273b07b439fb245fb43930664d8b78518
net: ti: icssg: Fix XSK zero copy TX during application wakeup

emac_xsk_xmit_zc() handles tx xmit for zero copy and gets called
inside napi context. User application wakes up the kernel while
initiating the transmit which triggers napi to start processing
the tx packets. The num_tx check inside emac_tx_complete_packets()
returns early if no packet transfer happen hindering the call
to emac_xsk_xmit_zc(). Remove this check to let application
wakeup initiate zero copy xmit traffic.

Add __netif_tx_lock() to ensure that the TX queue is protected
from concurrent access during the transmission of XDP frames.
This fixes netdev watchdog timeout for long runs.

Fixes: e2dc7bfd677f ("net: ti: icssg-prueth: Move common functions into a separate file")
Signed-off-by: Meghana Malladi <m-malladi@ti.com>
Link: https://patch.msgid.link/20260618100348.2209907-1-m-malladi@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icssg_common.c