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
458 TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK, /* be16 */458 TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK, /* be16 */
459 TCA_FLOWER_KEY_ENC_UDP_DST_PORT, /* be16 */459 TCA_FLOWER_KEY_ENC_UDP_DST_PORT, /* be16 */
460 TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK, /* be16 */460 TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK, /* be16 */
461
462 TCA_FLOWER_KEY_FLAGS, /* be32 */
463 TCA_FLOWER_KEY_FLAGS_MASK, /* be32 */
461 __TCA_FLOWER_MAX,464 __TCA_FLOWER_MAX,
462};465};
463 466
464#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)467#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)
465 468
469enum {
470 TCA_FLOWER_KEY_FLAGS_IS_FRAGMENT = (1 << 0),
471};
472
466/* Match-all classifier */473/* Match-all classifier */
467 474
468enum {475enum {