summaryrefslogtreecommitdiff
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-06-22 04:25:04 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-23 20:42:19 +0300
commitee5d032f7d032e2cea354522a46b211de84c4e8c (patch)
tree604c77de07871b2d8d955de0b6485f2cc27adf25 /include/linux/netdevice.h
parent32d602771b624e3a2fc86d5e220e9fa7dced767a (diff)
downloadlinux-ee5d032f7d032e2cea354522a46b211de84c4e8c.tar.xz
xdp: add HW offload mode flag for installing programs
Add an installation-time flag for requesting that the program be installed only if it can be offloaded to HW. Internally new command for ndo_xdp is added, this way we avoid putting checks into drivers since they all return -EINVAL on an unknown command. 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 b194817631de..a838591aad28 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -807,6 +807,7 @@ enum xdp_netdev_command {
* when it is no longer used.
*/
XDP_SETUP_PROG,
+ XDP_SETUP_PROG_HW,
/* Check if a bpf program is set on the device. The callee should
* return true if a program is currently attached and running.
*/