OSDN Git Service

selftests: mlxsw: Add blackhole_nexthop trap test
authorIdo Schimmel <idosch@nvidia.com>
Mon, 23 Nov 2020 07:12:30 +0000 (09:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Nov 2020 20:14:56 +0000 (12:14 -0800)
commit84e8feeadcf048903e65b7d82769c58576c506b0
treef99ae11518fbcb2ad42025774bcb7f1627b24ceb
parent37b50e556ef59e7231e8ef71b28b748b0537972b
selftests: mlxsw: Add blackhole_nexthop trap test

Test that packets hitting a blackhole nexthop are trapped to the CPU
when the trap is enabled. Test that packets are not reported when the
trap is disabled.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/mlxsw/devlink_trap_l3_drops.sh