OSDN Git Service

selftests: mlxsw: Add test cases for devlink-trap layer 3 drops
authorAmit Cohen <amitc@mellanox.com>
Thu, 7 Nov 2019 16:42:13 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:51:40 +0000 (19:51 -0800)
commitd3e985c917388a719dd17271016219401b994522
treee6d6a20086cf77ff831b84eac8e27893fed8d21a
parentef7f6b16156f2a0d87a7315ede6b776e5280372c
selftests: mlxsw: Add test cases for devlink-trap layer 3 drops

Test that each supported packet trap is triggered under the right
conditions and that packets are indeed dropped and not forwarded.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
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_l3_drops.sh [new file with mode: 0755]