From: Steven Luong Date: Wed, 9 Jul 2025 22:59:59 +0000 (-0700) Subject: af_xdp: processing free buffer X-Git-Tag: v26.02-rc0~119 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F43425%2F3;p=vpp.git af_xdp: processing free buffer af_xdp does not support big packets and they got dropped. When that happens, we need to bump up the buffer pointer and decrement packet count prior to going back to the while loop. Type: fix Change-Id: I4722b15eb7ba5467f37e52ab532998c35caa3e2e Signed-off-by: Steven Luong --- diff --git a/src/plugins/af_xdp/output.c b/src/plugins/af_xdp/output.c index a59c01ca6e0..00dc0e50c2a 100644 --- a/src/plugins/af_xdp/output.c +++ b/src/plugins/af_xdp/output.c @@ -209,6 +209,8 @@ wrap_around: af_xdp_log (VLIB_LOG_LEVEL_ERR, ad, "vlib_buffer_chain_linearize failed"); vlib_buffer_free_one (vm, vlib_get_buffer_index (vm, b[0])); + b += 1; + n -= 1; continue; } }