xdp: add flag to enforce driver mode
After commit b5cdae3291
("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>
This commit is contained in:

committed by
David S. Miller

parent
0a5539f661
commit
0489df9a43
@@ -888,9 +888,11 @@ enum {
|
||||
/* XDP section */
|
||||
|
||||
#define XDP_FLAGS_UPDATE_IF_NOEXIST (1U << 0)
|
||||
#define XDP_FLAGS_SKB_MODE (2U << 0)
|
||||
#define XDP_FLAGS_SKB_MODE (1U << 1)
|
||||
#define XDP_FLAGS_DRV_MODE (1U << 2)
|
||||
#define XDP_FLAGS_MASK (XDP_FLAGS_UPDATE_IF_NOEXIST | \
|
||||
XDP_FLAGS_SKB_MODE)
|
||||
XDP_FLAGS_SKB_MODE | \
|
||||
XDP_FLAGS_DRV_MODE)
|
||||
|
||||
enum {
|
||||
IFLA_XDP_UNSPEC,
|
||||
|
Reference in New Issue
Block a user