mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
32d602771b
commit
ee5d032f7d
4 changed files with 13 additions and 6 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue