History

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).

Benjamin LaHaise committed 9 years ago

Commit a577d8f1 parent 029c1ec2 files · +79 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_cls.h+5−0
@@ -432,6 +432,11 @@ enum { · 431 unmodified lines
432432 TCA_FLOWER_KEY_ARP_THA, /* ETH_ALEN */
433433 TCA_FLOWER_KEY_ARP_THA_MASK, /* ETH_ALEN */
434434
435+ TCA_FLOWER_KEY_MPLS_TTL, /* u8 - 8 bits */
436+ TCA_FLOWER_KEY_MPLS_BOS, /* u8 - 1 bit */
437+ TCA_FLOWER_KEY_MPLS_TC, /* u8 - 3 bits */
438+ TCA_FLOWER_KEY_MPLS_LABEL, /* be32 - 20 bits */
439+
435440 __TCA_FLOWER_MAX,
436441 };
437442