]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Add VxLAN tests with a VLAN-unaware bridge for IPv6
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Dec 2021 14:49:44 +0000 (16:49 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Dec 2021 01:14:32 +0000 (17:14 -0800)
commitc1e2938833c017e42e68fa9ead3cf024e8b6b563
tree8cfc6173a2960a02b5b9ec84303c2410695519e3
parent0f2f4545f3ef582ecddf9d2a286d5089c4f48cc3
selftests: forwarding: Add VxLAN tests with a VLAN-unaware bridge for IPv6

Add tests similar to vxlan_bridge_1d.sh and vxlan_bridge_1d_port_8472.sh.

The tests set up a topology with three VxLAN endpoints: one
"local", possibly offloaded, and two "remote", formed using veth pairs
and likely purely software bridges. The "local" endpoint is connected to
host systems by a VLAN-unaware bridge.

Since VxLAN tunnels must be unique per namespace, each of the "remote"
endpoints is in its own namespace. H3 forms the bridge between the three
domains.

Send IPv4 packets and IPv6 packets with IPv6 underlay.
Use `TC_FLAG`, which is defined in `forwarding.config` file, for TC
checks. `TC_FLAG` allows testing that on HW datapath, the traffic
actually goes through HW.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/vxlan_bridge_1d_port_8472_ipv6.sh [new file with mode: 0755]