[iproute2 master] devlink: Document zero policer identifier

From: Ido Schimmel <hidden>
Date: 2020-06-23 21:40:39
Subsystem: the rest · Maintainer: Linus Torvalds

From: Ido Schimmel <redacted>

When setting a policer to a trap group, a value of "0" will unbind the
currently bound policer from the group.

The behavior is intentional and tested in kernel selftests, so document
it.

Signed-off-by: Ido Schimmel <redacted>
Suggested-by: Alex Kushnarov <redacted>
---
 man/man8/devlink-trap.8 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/man/man8/devlink-trap.8 b/man/man8/devlink-trap.8
index 1e69342758d5..f5e66412f1b7 100644
--- a/man/man8/devlink-trap.8
+++ b/man/man8/devlink-trap.8
@@ -118,7 +118,8 @@ skipped.
 
 .TP
 .BI policer " POLICER"
-packet trap policer. The policer to bind to the packet trap group.
+packet trap policer. The policer to bind to the packet trap group. A value of
+"0" will unbind the currently bound policer.
 
 .TP
 .B nopolicer
-- 
2.26.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help