Add matchall support to tc
Subsystems (2)
v2 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.
---v1->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 v2 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 v2 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
A message that is not in the archive (sent off-list or not yet received): CAKoUArmn3uE1F7P_FDAfC+qQ1+RvzBden-yj8gzfO2ptK7F-6Q@mail.gmail.com
Re: [patch iproute2 v2 2/2] tc: man: Add man entry for the matchall classifier.
Quoted 13 lines · Tue, Aug 30, 2016 at 08:00:12PM CEST, [email protected] wrote:
Hi, Jiri,
Only now could review this, so here are some slight comments:
pacets->Shouldbe packets.Quoted 4 lines
+where the second command attaches a matchall filters on it that mirrors the
+pacets to device eth2.
engress->Didyou mean "egress" ?
Quoted 6 lines
man/man8/tc-matchall.8 line 57
Quoted 5 lines
man/man8/tc-matchall.8 new file +4
-0+ +To create engress mirroring from port eth1 to port eth2: +.EX +Again,
pacets->Shouldbe packets.
Will fix and send v3
Quoted 11 lines
man/man8/tc-matchall.8 line 57
Quoted 8 lines
+where the second command attaches a matchall filters on it that mirrors the
man/man8/tc-matchall.8 new file +3
-0+pacets to device eth2. + +Regards,
Rami Rosen