net/sched: cls_flower: Add support for matching on flags
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 7 Dec 2016 12:03:10 +0000 (14:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 16:32:50 +0000 (11:32 -0500)
commitfaa3ffce78298b2b782297765cffd05f52fed9d4
treec15618f94b01a03f32192cfc5eb1743e28f55a84
parentd26aac2d8783ab7ec94e07d412d785b3ac183606
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.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c