aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorBenjamin LaHaise <[email protected]>2017-04-22 16:52:47 -0400
committerDavid S. Miller <[email protected]>2017-04-24 14:30:46 -0400
commita577d8f793ff2fd514915686079e3c09bcf0df11 (patch)
tree61d9ed1595b06f4897e17bddb1bf4ee1df95d6c3 /include/uapi/linux
parent029c1ecbb2429cf08c7bd2de81e929f81feea914 (diff)
cls_flower: add support for matching MPLS fields (v2)
Add support to the tc flower classifier to match based on fields in MPLS labels (TTL, Bottom of Stack, TC field, Label). Signed-off-by: Benjamin LaHaise <[email protected]> Signed-off-by: Benjamin LaHaise <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Simon Horman <[email protected]> Cc: Jamal Hadi Salim <[email protected]> Cc: Cong Wang <[email protected]> Cc: Jiri Pirko <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Hadar Hen Zion <[email protected]> Cc: Gao Feng <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/pkt_cls.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
index 7a69f2a4ca0c..f1129e383b2a 100644
--- a/include/uapi/linux/pkt_cls.h
+++ b/include/uapi/linux/pkt_cls.h
@@ -432,6 +432,11 @@ enum {
TCA_FLOWER_KEY_ARP_THA, /* ETH_ALEN */
TCA_FLOWER_KEY_ARP_THA_MASK, /* ETH_ALEN */
+ TCA_FLOWER_KEY_MPLS_TTL, /* u8 - 8 bits */
+ TCA_FLOWER_KEY_MPLS_BOS, /* u8 - 1 bit */
+ TCA_FLOWER_KEY_MPLS_TC, /* u8 - 3 bits */
+ TCA_FLOWER_KEY_MPLS_LABEL, /* be32 - 20 bits */
+
__TCA_FLOWER_MAX,
};