OSDN Git Service

selftests: mlxsw: Add test for control packets
authorIdo Schimmel <idosch@mellanox.com>
Fri, 29 May 2020 18:36:49 +0000 (21:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 18:49:23 +0000 (11:49 -0700)
commit9959b389779a9e688d1a9272eed6377d999d8739
tree5e4f63e14b15e824e36aefd3e1faf88c2787827c
parent88e2774961d7854628fa9c403166c4162cebc12e
selftests: mlxsw: Add test for control packets

Generate packets matching the various control traps and check that the
traps' stats increase accordingly.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/devlink_trap_control.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/devlink_lib.sh