From: Ido Schimmel <ido...@mellanox.com>

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 <ido...@mellanox.com>
Suggested-by: Alex Kushnarov <alexand...@mellanox.com>
---
 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

Reply via email to