selftests: forwarding: Add router test with VID 1
authorIdo Schimmel <idosch@mellanox.com>
Thu, 20 Dec 2018 19:42:37 +0000 (19:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 23:48:54 +0000 (15:48 -0800)
commit03a84ea3d8c537f04b862972e2132dff86a4e93d
tree0d284656b1d2f8431911e6167d9c94f1af93f451
parent29b1e34efd39ee9f6bc2db3fafad0e4615f15475
selftests: forwarding: Add router test with VID 1

Previous patches made it possible to setup VLAN devices with VID 1 over
mlxsw ports. Verify this functionality actually works by conducting a
simple router test over VID 1.

Adding this test as a generic test since it can be run using veth pairs
and it can also be useful for other physical devices where VID 1 was
considered reserved (knowingly or not).

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/router_vid_1.sh [new file with mode: 0755]