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.bou...@siemens.com>
Reviewed-by: Song Yoong Siang <yoong.siang.s...@intel.com>
Reviewed-by: Florian Bezdeka <florian.bezd...@siemens.com>
---
  drivers/net/ethernet/intel/igc/igc_main.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Tested-by: Mor Bar-Gabay <morx.bar.ga...@intel.com>

Reply via email to