selftests: mlxsw: Add test cases for devlink-trap policers
Add test cases that verify that each registered packet trap policer: * Honors that imposed limitations of rate and burst size * Able to police trapped packets to the specified rate * Able to police trapped packets to the specified burst size * Able to be unbound from its trap group Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
39defcbba0
commit
9f3e63c5d6
@@ -457,6 +457,12 @@ devlink_trap_group_policer_get()
|
||||
| jq '.[][][]["policer"]'
|
||||
}
|
||||
|
||||
devlink_trap_policer_ids_get()
|
||||
{
|
||||
devlink -j -p trap policer show \
|
||||
| jq '.[]["'$DEVLINK_DEV'"][]["policer"]'
|
||||
}
|
||||
|
||||
devlink_port_by_netdev()
|
||||
{
|
||||
local if_name=$1
|
||||
|
Reference in New Issue
Block a user