]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/core/rtnetlink.c
xdp: add flag to enforce driver mode
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 11 May 2017 23:04:45 +0000 (01:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2017 01:30:57 +0000 (21:30 -0400)
commit0489df9a430e9607de8130a6bc4bf4c02f96eaf1
tree88f00a27ce3e1e8c94269f687dcbcf951b4c9f1b
parent0a5539f66133a02b24f9cc43da5b84b7e6f3f436
xdp: add flag to enforce driver mode

After commit b5cdae3291f7 ("net: Generic XDP") we automatically fall
back to a generic XDP variant if the driver does not support native
XDP. Allow for an option where the user can specify that always the
native XDP variant should be selected and in case it's not supported
by a driver, just bail out.

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/uapi/linux/if_link.h
net/core/dev.c
net/core/rtnetlink.c
samples/bpf/xdp1_user.c
samples/bpf/xdp_tx_iptunnel_user.c