From: Yotam Gigi Date: Sun, 5 Feb 2017 07:58:54 +0000 (+0200) Subject: tc: man: matchall: Update examples to include sample X-Git-Tag: v4.11.0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=787317f50a525d3076687371430d9b15b60bb2a3;p=thirdparty%2Fiproute2.git tc: man: matchall: Update examples to include sample 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 Signed-off-by: Yotam Gigi --- diff --git a/man/man8/tc-matchall.8 b/man/man8/tc-matchall.8 index 5aa11dab9..53b2194e0 100644 --- a/man/man8/tc-matchall.8 +++ b/man/man8/tc-matchall.8 @@ -71,6 +71,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