Thread (9 messages) flat view 9 messages, 3 authors, 2017-02-06
STALE3484d REVIEWED: 1 (0M)

1 review trailer.

[PATCH iproute2/net-next 3/3] tc: man: matchall: Update examples to include sample

From: Yotam Gigi <hidden>
Date: 2017-02-05 07:56:45
Subsystem: the rest · Maintainer: Linus Torvalds

Add an example of packet sampling to the tc-matchall man page examples
section. The example uses the matchall classifier and the sample action to
create packet sampling on a port.

Reviewed-by: Jiri Pirko <redacted>
Signed-off-by: Yotam Gigi <redacted>
---
 man/man8/tc-matchall.8 | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff --git a/man/man8/tc-matchall.8 b/man/man8/tc-matchall.8
index f920922..799350a 100644
--- a/man/man8/tc-matchall.8
+++ b/man/man8/tc-matchall.8
@@ -70,6 +70,16 @@ that replaces the root qdisc on device
 where the second command attaches a matchall filters on it that mirrors the
 packets to device eth2.
 
+To sample one of every 100 packets flowing into interface eth0 to psample group
+12:
+.RS
+.EX
+
+tc qdisc add dev eth0 handle ffff: ingress
+tc filter add dev eth0 parent ffff: matchall \\
+     action sample rate 100 group 12
+.EE
+.RE
 
 .EE
 .SH SEE ALSO
-- 
2.4.11
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help