diff mbox series

[iproute2-next,v2,3/4] man: tc: Describe qevents

Message ID aa54b0b3a97ae3355b8e91089cd3944ab975347d.1593509090.git.petrm@mellanox.com
State New
Delegated to: David Ahern
Headers show
Series Support qevents | expand

Commit Message

Petr Machata June 30, 2020, 10:14 a.m. UTC
Add some general remarks about qevents.

Signed-off-by: Petr Machata <petrm@mellanox.com>

    - s/early/early_drop/ in the example.

 man/man8/tc.8 | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
diff mbox series


diff --git a/man/man8/tc.8 b/man/man8/tc.8
index e8e0cd0f..eba73dbf 100644
--- a/man/man8/tc.8
+++ b/man/man8/tc.8
@@ -254,6 +254,25 @@  Traffic control filter that matches every packet. See
 .BR tc-matchall (8)
 for details.
+Qdiscs may invoke user-configured actions when certain interesting events
+take place in the qdisc. Each qevent can either be unused, or can have a
+block attached to it. To this block are then attached filters using the "tc
+block BLOCK_IDX" syntax. The block is executed when the qevent associated
+with the attachment point takes place. For example, packet could be
+dropped, or delayed, etc., depending on the qdisc and the qevent in
+For example:
+tc qdisc add dev eth0 root handle 1: red limit 500K avpkt 1K \\
+   qevent early_drop block 10
+tc filter add block 10 matchall action mirred egress mirror dev eth1
 The classless qdiscs are: