net: stmmac: Set CIC bit only for TX queues with COE
authorRohan G Thomas <rohan.g.thomas@altera.com>
Mon, 25 Aug 2025 04:36:54 +0000 (12:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 Aug 2025 01:12:42 +0000 (18:12 -0700)
commitb1eded580ab28119de0b0f21efe37ee2b4419144
tree5e47771eb2d2004bdea3cb6aa453c4e071f0b621
parent42ef11b2bff5b6a2910c28d2ea47cc00e0fbcaec
net: stmmac: Set CIC bit only for TX queues with COE

Currently, in the AF_XDP transmit paths, the CIC bit of
TX Desc3 is set for all packets. Setting this bit for
packets transmitting through queues that don't support
checksum offloading causes the TX DMA to get stuck after
transmitting some packets. This patch ensures the CIC bit
of TX Desc3 is set only if the TX queue supports checksum
offloading.

Fixes: 132c32ee5bc0 ("net: stmmac: Add TX via XDP zero-copy socket")
Signed-off-by: Rohan G Thomas <rohan.g.thomas@altera.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@altera.com>
Link: https://patch.msgid.link/20250825-xgmac-minor-fixes-v3-3-c225fe4444c0@altera.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c