summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@mellanox.com>2018-07-17 02:01:57 +0000
committerSimon Horman <simon.horman@netronome.com>2018-07-25 18:15:52 +0200
commitf9885dc594c1ac93f4f1c1b4cc215c1f20d587ec (patch)
tree94fe8f0aec10308756595c885f0b076850310bfe /include/linux
parent2f9366beb4f6c1bac690d7665008c1f85c16d253 (diff)
downloadopenvswitch-f9885dc594c1ac93f4f1c1b4cc215c1f20d587ec.tar.gz
Add support to offload QinQ double VLAN headers match
Currently the inner VLAN header is ignored when using the TC data-path. As TC flower supports QinQ, now we can offload the rules to match on both outer and inner VLAN headers. Signed-off-by: Jianbo Liu <jianbol@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pkt_cls.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/pkt_cls.h b/include/linux/pkt_cls.h
index 60976f3f7..442323da0 100644
--- a/include/linux/pkt_cls.h
+++ b/include/linux/pkt_cls.h
@@ -1,7 +1,7 @@
#ifndef __LINUX_PKT_CLS_WRAPPER_H
#define __LINUX_PKT_CLS_WRAPPER_H 1
-#if defined(__KERNEL__) || defined(HAVE_TCA_FLOWER_KEY_FLAGS_FRAG_IS_FIRST)
+#if defined(__KERNEL__) || defined(HAVE_TCA_FLOWER_KEY_CVLAN_PRIO)
#include_next <linux/pkt_cls.h>
#else
@@ -196,6 +196,10 @@ enum {
TCA_FLOWER_KEY_IP_TTL, /* u8 */
TCA_FLOWER_KEY_IP_TTL_MASK, /* u8 */
+ TCA_FLOWER_KEY_CVLAN_ID, /* be16 */
+ TCA_FLOWER_KEY_CVLAN_PRIO, /* u8 */
+ TCA_FLOWER_KEY_CVLAN_ETH_TYPE, /* be16 */
+
__TCA_FLOWER_MAX,
};