diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-06-21 18:25:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-23 13:42:18 -0400 |
commit | 32d602771b624e3a2fc86d5e220e9fa7dced767a (patch) | |
tree | 5e02332e6788e85abc350b9421fc433f66adc6dd /include | |
parent | 9bd780f5e0663035d41a95a6b87eced011ba7e2a (diff) | |
download | linux-32d602771b624e3a2fc86d5e220e9fa7dced767a.tar.bz2 |
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')
-rw-r--r-- | include/linux/netdevice.h | 1 |
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; }; |