History

net/sched: cls_flower: Add support for matching on flags

Add UAPI to provide set of flags for matching, where the flags provided from user-space are mapped to flow-dissector flags. The 1st flag allows to match on whether the packet is an IP fragment and corresponds to the FLOW_DIS_IS_FRAGMENT flag.

Or Gerlitz committed 9 years ago

Commit faa3ffc1 parent d26aac22 files · +83 −0Browse files

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

Unified · Split

include/uapi/linux/pkt_cls.h+7−0
@@ -458,11 +458,18 @@ enum { · 457 unmodified lines
458458 TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK, /* be16 */
459459 TCA_FLOWER_KEY_ENC_UDP_DST_PORT, /* be16 */
460460 TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK, /* be16 */
461+
462+ TCA_FLOWER_KEY_FLAGS, /* be32 */
463+ TCA_FLOWER_KEY_FLAGS_MASK, /* be32 */
461464 __TCA_FLOWER_MAX,
462465 };
463466
464467 #define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)
465468
469+enum {
470+ TCA_FLOWER_KEY_FLAGS_IS_FRAGMENT = (1 << 0),
471+};
472+
466473 /* Match-all classifier */
467474
468475 enum {