Re: [PATCH v4 net-next 3/4] mlx4: xdp: Reserve headroom for receiving packet when XDP prog is active

2016-12-08 Thread Saeed Mahameed
On Thu, Dec 8, 2016 at 1:53 AM, Martin KaFai Lau 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 >

[PATCH v4 net-next 3/4] mlx4: xdp: Reserve headroom for receiving packet when XDP prog is active

2016-12-07 Thread Martin KaFai Lau
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. Signed-off-by: Martin KaFai Lau ---