diff options
| author | David S. Miller <davem@davemloft.net> | 2017-05-11 21:30:58 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-05-11 21:30:58 -0400 |
| commit | 4e3c60ed2f594e4ec6bb81d71ef6993e60f740d8 (patch) | |
| tree | 3e060e35a8e06c4b4640d33ce99f0d3dc08d5035 /include/uapi/linux | |
| parent | 0a5539f66133a02b24f9cc43da5b84b7e6f3f436 (diff) | |
| parent | d67b9cd28c1d7f82c2e5e727731ea7c89b23a0a8 (diff) | |
| download | cachepc-linux-4e3c60ed2f594e4ec6bb81d71ef6993e60f740d8.tar.gz cachepc-linux-4e3c60ed2f594e4ec6bb81d71ef6993e60f740d8.zip | |
Merge branch 'generic-xdp-followups'
Daniel Borkmann says:
====================
Two generic xdp related follow-ups
Two follow-ups for the generic XDP API, would be great if
both could still be considered, since the XDP API is not
frozen yet. For details please see individual patches.
v1 -> v2:
- Implemented feedback from Jakub Kicinski (reusing
attribute on dump), thanks!
- Rest as is.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/if_link.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index 8e56ac70e0d1..15ac20382aba 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h @@ -888,9 +888,18 @@ enum { /* XDP section */ #define XDP_FLAGS_UPDATE_IF_NOEXIST (1U << 0) -#define XDP_FLAGS_SKB_MODE (2U << 0) +#define XDP_FLAGS_SKB_MODE (1U << 1) +#define XDP_FLAGS_DRV_MODE (1U << 2) #define XDP_FLAGS_MASK (XDP_FLAGS_UPDATE_IF_NOEXIST | \ - XDP_FLAGS_SKB_MODE) + XDP_FLAGS_SKB_MODE | \ + XDP_FLAGS_DRV_MODE) + +/* These are stored into IFLA_XDP_ATTACHED on dump. */ +enum { + XDP_ATTACHED_NONE = 0, + XDP_ATTACHED_DRV, + XDP_ATTACHED_SKB, +}; enum { IFLA_XDP_UNSPEC, |
