On Thu, Dec 8, 2016 at 1:53 AM, Martin KaFai Lau <ka...@fb.com> wrote: > Reserve XDP_PACKET_HEADROOM for packet and enable bpf_xdp_adjust_head() > support. This patch only affects the code path when XDP is active. > > After testing, the tx_dropped counter is incremented if the xdp_prog sends > more than wire MTU. >
I guess this is the HW tx_dropped counter. I suggest as a future improvement to drop in SW to save CPU and HW cycles on such packets. Also those packets pages will be recycled immediately if dropped in SW, one more extra point. > Signed-off-by: Martin KaFai Lau <ka...@fb.com> Acked-by: Saeed Mahameed <sae...@mellanox.com>