selftests: forwarding: vxlan_bridge_1d: Add an ECN decap test
authorPetr Machata <petrm@mellanox.com>
Mon, 19 Nov 2018 16:11:24 +0000 (16:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 01:59:44 +0000 (17:59 -0800)
commita0b61f3d8ebfe927d596c1aaca9b6e23bd185f55
treed9b68684c903d6996a88e156266da6e92794a019
parent1e5abfb3ff41a532f687875ada9ea2af7a1069b3
selftests: forwarding: vxlan_bridge_1d: Add an ECN decap test

Test that when decapsulating from VXLAN, the values of inner and outer
TOS are handled appropriately. Because VXLAN driver on its own won't
produce the arbitrary TOS combinations necessary to test this feature,
simply open-code a single ICMP packet and have mausezahn assemble it.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh