Add matchall support to tc
Subsystems (2)
v3 cover Add matchall support to tc
From: Jiri Pirko <[email protected]>
Yotam says:
Add the matchall classifier support to tc and added the specific man pages.
---v2->v3:
-fixed couple of typos in man pagesv1->v2:
-fixed couple of checkpatch issues
Yotam Gigi (2):
tc: Add support for the matchall traffic classifier.
tc: man: Add man entry for the matchall classifier.
man/man8/Makefile | 2 +- man/man8/tc-matchall.8 | 76 ++++++++++++++++++++++++++ man/man8/tc.8 | 5 ++ tc/Makefile | 1 + tc/f_matchall.c | 143 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 226 insertions(+), 1 deletion(-) create mode 100644 man/man8/tc-matchall.8 create mode 100644 tc/f_matchall.c
Signature · 1 line
2.5.5
PATCH v3 1/2 tc: Add support for the matchall traffic classifier.
From: Yotam Gigi <[email protected]>
The matchall classifier matches every packet and allows the user to apply actions on it. In addition, it supports the skip_sw and skip_hw (as can be found on u32 and flower filter) that direct the kernel to skip the software/hardware processing of the actions.
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.
--- tc/Makefile | 1 + tc/f_matchall.c | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 tc/f_matchall.c
tc/Makefile +1 -0
@@ -67,6 +67,7 @@ TCMODULES += q_pie.o TCMODULES += q_hhf.o TCMODULES += q_clsact.o TCMODULES += e_bpf.o +TCMODULES += f_matchall.o ifeq ($(TC_CONFIG_IPSET), y) ifeq ($(TC_CONFIG_XT), y)
tc/f_matchall.c new file +143 -0
143 lines not on this page · raw message
Signature · 1 line
2.5.5
PATCH v3 2/2 tc: man: Add man entry for the matchall classifier.
In reply to Jiri PirkoFrom: Yotam Gigi <[email protected]>
In addition to providing information about the mathcall filter and its configurations, the man entry contains examples for creating port mirorring entries.
--- man/man8/Makefile | 2 +- man/man8/tc-matchall.8 | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ man/man8/tc.8 | 5 ++++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 man/man8/tc-matchall.8
man/man8/Makefile +1 -1
@@ -14,7 +14,7 @@ MAN8PAGES = $(TARGETS) ip.8 arpd.8 lnstat.8 routel.8 rtacct.8 rtmon.8 rtpr.8 ss. tipc.8 tipc-bearer.8 tipc-link.8 tipc-media.8 tipc-nametable.8 \ tipc-node.8 tipc-socket.8 \ tc-basic.8 tc-cgroup.8 tc-flow.8 tc-flower.8 tc-fw.8 tc-route.8 \ - tc-tcindex.8 tc-u32.8 \ + tc-tcindex.8 tc-u32.8 tc-matchall.8 \ tc-connmark.8 tc-csum.8 tc-mirred.8 tc-nat.8 tc-pedit.8 tc-police.8 \ tc-simple.8 tc-skbedit.8 tc-vlan.8 tc-xt.8 \ devlink.8 devlink-dev.8 devlink-monitor.8 devlink-port.8 devlink-sb.8
man/man8/tc-matchall.8 new file +76 -0
76 lines not on this page · raw message
man/man8/tc.8 +5 -0
@@ -187,6 +187,11 @@ u32 Generic filtering on arbitrary packet data, assisted by syntax to abstract common operations. See .BR tc-u32 (8) for details. +.TP +matchall +Traffic control filter that matches every packet. See +.BR tc-matchall (8) +for details. .SH CLASSLESS QDISCS The classless qdiscs are:
Signature · 1 line
2.5.5
Quoted 15 lines · On Wed, 31 Aug 2016 09:28:25 +0200 Jiri Pirko <[email protected]> wrote:
From: Jiri Pirko <[email protected]>
Yotam says:
Add the matchall classifier support to tc and added the specific man pages.---
v2->v3:
-fixed couple of typos in man pagesv1->v2:
-fixed couple of checkpatch issuesYotam Gigi (2):
tc: Add support for the matchall traffic classifier.
tc: man: Add man entry for the matchall classifier.
Quoted 9 lines
man/man8/Makefile | 2 +- man/man8/tc-matchall.8 | 76 ++++++++++++++++++++++++++ man/man8/tc.8 | 5 ++ tc/Makefile | 1 + tc/f_matchall.c | 143 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 226 insertions(+), 1 deletion(-) create mode 100644 man/man8/tc-matchall.8 create mode 100644 tc/f_matchall.c
Both applied to master