[iproute2,master] devlink: Document zero policer identifier

Message ID 20200623200609.77470-1-idosch@idosch.org
State New
Headers show
Series
  • [iproute2,master] devlink: Document zero policer identifier
Related show

Commit Message

Ido Schimmel June 23, 2020, 8:06 p.m.
From: Ido Schimmel <idosch@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 <idosch@mellanox.com>
Suggested-by: Alex Kushnarov <alexanderk@mellanox.com>
---
 man/man8/devlink-trap.8 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

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