]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: make bpf_xdp_adjust_head support mandatory
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 24 Apr 2017 20:14:35 +0000 (22:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 20:18:10 +0000 (16:18 -0400)
commitb11d4969a2da6f4d3378ccb03688a2167e27528f
treea3f9dcb6e95ede17e39fa54bcc37f23044d95f72
parent750e54fdd8f4ab3d0293167a55f488b7794842b5
bpf: make bpf_xdp_adjust_head support mandatory

Now that also the last in-tree user of the xdp_adjust_head bit has
been removed, we can remove the flag from struct bpf_prog altogether.

This, at the same time, also makes sure that any future driver for
XDP comes with bpf_xdp_adjust_head() support right away.

A rejection based on this flag would also mean that tail calls
couldn't be used with such driver as per 1c590f633cc3 ("bpf: fix
checking xdp_adjust_head on tail calls") fix, thus lets not allow
for it in the first place.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
kernel/bpf/verifier.c