diff options
author | Jakub Kicinski <[email protected]> | 2017-12-01 15:08:56 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2017-12-03 00:27:57 +0100 |
commit | 92f0292b35a09bb5f12a4184ac86668599bc233b (patch) | |
tree | ba2f522f4278a783f808b4516e328963cb75a3c7 /include/linux/netdevice.h | |
parent | 118b4aa25d90d0930611b71dd28a749c67309ccb (diff) |
net: xdp: report flags program was installed with on query
Some drivers enforce that flags on program replacement and
removal must match the flags passed on install. This leaves
the possibility open to enable simultaneous loading
of XDP programs both to HW and DRV.
Allow such drivers to report the flags back to the stack.
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 667bdd3ad33e..cc4ce7456e38 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -820,6 +820,8 @@ struct netdev_bpf { struct { u8 prog_attached; u32 prog_id; + /* flags with which program was installed */ + u32 prog_flags; }; /* BPF_OFFLOAD_VERIFIER_PREP */ struct { |