mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-12 12:11:48 +00:00
![]() Add ability to associate a policer with a trap group. The policer can be unbound by using the 'nopolicer' keyword. In which case, the value encoded in the 'DEVLINK_ATTR_TRAP_POLICER_ID' attribute will be '0'. This is consistent with ip-link 'nomaster' keyword and the 'IFLA_MASTER' attribute. Example: # devlink trap group set netdevsim/netdevsim10 group l3_drops policer 2 # devlink -jp trap group show netdevsim/netdevsim10 group l3_drops { "trap_group": { "netdevsim/netdevsim10": [ { "name": "l3_drops", "generic": true, "policer": 2 } ] } } # devlink trap group set netdevsim/netdevsim10 group l3_drops nopolicer # devlink -jp trap group show netdevsim/netdevsim10 group l3_drops { "trap_group": { "netdevsim/netdevsim10": [ { "name": "l3_drops", "generic": true } ] } } Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David Ahern <dsahern@gmail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
devlink.c | ||
Makefile | ||
mnlg.c | ||
mnlg.h |