aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2016-07-21 06:03:11 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-25 02:11:59 -0400
commitbf3994d2ed310813da28362d87bfe9f0e1c3e37f (patch)
tree5c7becf58d38f2ce5bac1fb702fb013ec4279858 /include/uapi/linux
parentded821c8d3793efe00195dd7ab633f6412dd8ae0 (diff)
net/sched: introduce Match-all classifier
The matchall classifier matches every packet and allows the user to apply actions on it. This filter is very useful in usecases where every packet should be matched, for example, packet mirroring (SPAN) can be setup very easily using that filter. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/pkt_cls.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
index 5702e933dc07..a32494887e01 100644
--- a/include/uapi/linux/pkt_cls.h
+++ b/include/uapi/linux/pkt_cls.h
@@ -433,6 +433,17 @@ enum {
433 433
434#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1) 434#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)
435 435
436/* Match-all classifier */
437
438enum {
439 TCA_MATCHALL_UNSPEC,
440 TCA_MATCHALL_CLASSID,
441 TCA_MATCHALL_ACT,
442 __TCA_MATCHALL_MAX,
443};
444
445#define TCA_MATCHALL_MAX (__TCA_MATCHALL_MAX - 1)
446
436/* Extended Matches */ 447/* Extended Matches */
437 448
438struct tcf_ematch_tree_hdr { 449struct tcf_ematch_tree_hdr {