diff options
| author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2016-09-21 06:43:54 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-09-21 19:50:02 -0400 |
| commit | 0d01d45f1b251448590c710baa32f722e43c62c7 (patch) | |
| tree | d1b0cb7ad3bacfa7bde4b61c0d8fe06064504d6c /include/uapi/linux | |
| parent | 332ae8e2f6ecda5e50c5c62ed62894963e3a83f5 (diff) | |
net: cls_bpf: limit hardware offload by software-only flag
Add cls_bpf support for the TCA_CLS_FLAGS_SKIP_HW flag.
Unlike U32 and flower cls_bpf already has some netlink
flags defined. Create a new attribute to be able to use
the same flag values as the above.
Unlike U32 and flower reject unknown flags.
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/uapi/linux')
| -rw-r--r-- | include/uapi/linux/pkt_cls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h index 8915b61bbf83..8fd715f806a2 100644 --- a/include/uapi/linux/pkt_cls.h +++ b/include/uapi/linux/pkt_cls.h | |||
| @@ -396,6 +396,7 @@ enum { | |||
| 396 | TCA_BPF_FD, | 396 | TCA_BPF_FD, |
| 397 | TCA_BPF_NAME, | 397 | TCA_BPF_NAME, |
| 398 | TCA_BPF_FLAGS, | 398 | TCA_BPF_FLAGS, |
| 399 | TCA_BPF_FLAGS_GEN, | ||
| 399 | __TCA_BPF_MAX, | 400 | __TCA_BPF_MAX, |
| 400 | }; | 401 | }; |
| 401 | 402 | ||
