linux/drivers/net/ethernet/netronome/nfp
Martin KaFai Lau 17bedab272 bpf: xdp: Allow head adjustment in XDP prog
This patch allows XDP prog to extend/remove the packet
data at the head (like adding or removing header).  It is
done by adding a new XDP helper bpf_xdp_adjust_head().

It also renames bpf_helper_changes_skb_data() to
bpf_helper_changes_pkt_data() to better reflect
that XDP prog does not work on skb.

This patch adds one "xdp_adjust_head" bit to bpf_prog for the
XDP-capable driver to check if the XDP prog requires
bpf_xdp_adjust_head() support.  The driver can then decide
to error out during XDP_SETUP_PROG.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-08 14:25:13 -05:00
..
Makefile nfp: bpf: add hardware bpf offload 2016-09-21 19:50:03 -04:00
nfp_asm.h nfp: add BPF to NFP code translator 2016-09-21 19:50:02 -04:00
nfp_bpf_jit.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_bpf_verifier.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_bpf.h nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_net_common.c bpf: xdp: Allow head adjustment in XDP prog 2016-12-08 14:25:13 -05:00
nfp_net_ctrl.h nfp: remove support for nfp3200 2016-11-01 11:04:58 -04:00
nfp_net_debugfs.c nfp: add XDP support in the driver 2016-11-04 14:56:16 -04:00
nfp_net_ethtool.c nfp: add XDP support in the driver 2016-11-04 14:56:16 -04:00
nfp_net_offload.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_net.h nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_netvf_main.c nfp: remove support for nfp3200 2016-11-01 11:04:58 -04:00