selftests: mlxsw: Add one-armed router test
authorIdo Schimmel <idosch@mellanox.com>
Tue, 4 Dec 2018 08:15:14 +0000 (08:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2018 16:36:36 +0000 (08:36 -0800)
commitb6f153d3e5a5bfbda17b997bd9e258143aa11809
tree6715e3567587435f6ed9fa211a505faba06b1334
parent2f4f44946b748918de6345dd12d0c418c0206002
selftests: mlxsw: Add one-armed router test

Construct a "one-armed router" topology and test that packets are
forwarded by the ASIC and that a copy of the packet is sent to the
kernel, which does not forward the packet again.

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