WSL2-Linux-Kernel/drivers/net/ethernet/qlogic/qede
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 qed*: Fix Kconfig dependencies with INFINIBAND_QEDR 2016-10-14 11:07:22 -04:00
qede.h qede: Add support for XDP_TX 2016-11-30 14:32:05 -05:00
qede_dcbnl.c qede: Add dcbnl support. 2016-06-08 11:11:00 -07:00
qede_ethtool.c qede: Add support for XDP_TX 2016-11-30 14:32:05 -05:00
qede_main.c bpf: xdp: Allow head adjustment in XDP prog 2016-12-08 14:25:13 -05:00
qede_roce.c qede: Add qedr framework 2016-10-03 23:22:46 -04:00