Re: [Intel-wired-lan] [PATCH net-next] igc: Fix TX drops in XDP ZC

From: Mor Bar-Gabay
Date: Thu Mar 27 2025 - 09:11:09 EST


On 19/03/2025 16:18, Zdenek Bouska wrote:
Fixes TX frame drops in AF_XDP zero copy mode when budget < 4.
xsk_tx_peek_desc() consumed TX frame and it was ignored because of
low budget. Not even AF_XDP completion was done for dropped frames.

It can be reproduced on i226 by sending 100000x 60 B frames with
launch time set to minimal IPG (672 ns between starts of frames)
on 1Gbit/s. Always 1026 frames are not sent and are missing a
completion.

Fixes: 9acf59a752d4c ("igc: Enable TX via AF_XDP zero-copy")
Signed-off-by: Zdenek Bouska <zdenek.bouska@xxxxxxxxxxx>
Reviewed-by: Song Yoong Siang <yoong.siang.song@xxxxxxxxx>
Reviewed-by: Florian Bezdeka <florian.bezdeka@xxxxxxxxxxx>
---
drivers/net/ethernet/intel/igc/igc_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Tested-by: Mor Bar-Gabay <morx.bar.gabay@xxxxxxxxx>