aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-06-21 18:25:03 -0700
committerDavid S. Miller <davem@davemloft.net>2017-06-23 13:42:18 -0400
commit32d602771b624e3a2fc86d5e220e9fa7dced767a (patch)
tree5e02332e6788e85abc350b9421fc433f66adc6dd /include/linux/netdevice.h
parentudp: fix poll() (diff)
downloadlinux-dev-32d602771b624e3a2fc86d5e220e9fa7dced767a.tar.xz
linux-dev-32d602771b624e3a2fc86d5e220e9fa7dced767a.zip
xdp: pass XDP flags into install handlers
Pass XDP flags to the xdp ndo. This will allow drivers to look at the mode flags and make decisions about offload. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 7c7118b3bd69..b194817631de 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -820,6 +820,7 @@ struct netdev_xdp {
union {
/* XDP_SETUP_PROG */
struct {
+ u32 flags;
struct bpf_prog *prog;
struct netlink_ext_ack *extack;
};