summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/pkt_cls.h
diff options
context:
space:
mode:
authorJiri Pirko2016-07-21 12:03:11 +0200
committerDavid S. Miller2016-07-25 08:11:59 +0200
commitbf3994d2ed310813da28362d87bfe9f0e1c3e37f (patch)
tree5c7becf58d38f2ce5bac1fb702fb013ec4279858 /include/uapi/linux/pkt_cls.h
parentmlxsw: pci: Add max span resources to resources query (diff)
downloadkernel-qcow2-linux-bf3994d2ed310813da28362d87bfe9f0e1c3e37f.tar.gz
kernel-qcow2-linux-bf3994d2ed310813da28362d87bfe9f0e1c3e37f.tar.xz
kernel-qcow2-linux-bf3994d2ed310813da28362d87bfe9f0e1c3e37f.zip
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/pkt_cls.h')
-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 {
#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)
+/* Match-all classifier */
+
+enum {
+ TCA_MATCHALL_UNSPEC,
+ TCA_MATCHALL_CLASSID,
+ TCA_MATCHALL_ACT,
+ __TCA_MATCHALL_MAX,
+};
+
+#define TCA_MATCHALL_MAX (__TCA_MATCHALL_MAX - 1)
+
/* Extended Matches */
struct tcf_ematch_tree_hdr {