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 <[email protected]>
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;
}
}