commit | ea3349a03519dcd4f32d949cd80ab995623dc5ac | [log] [tgz] |
---|---|---|
author | Martin KaFai Lau <kafai@fb.com> | Wed Dec 07 15:53:13 2016 -0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Dec 08 14:25:13 2016 -0500 |
tree | 01d77dc1b6492c486e3df0503fc4b1ef17fb7884 | |
parent | b45f0674b997ee769907d6092dfa9ee8f59bb51d [diff] |
mlx4: xdp: Reserve headroom for receiving packet when XDP prog is active 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 <kafai@fb.com> Acked-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>