OSDN Git Service

selftests: forwarding: Add IPv6 GRE flat tests
authorAmit Cohen <amcohen@nvidia.com>
Fri, 8 Oct 2021 13:12:36 +0000 (16:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 15:40:58 +0000 (16:40 +0100)
commit7df29960fa65bb11a5571468056155ca04d8f6df
tree42f1852d24c3881adee07e50aa6652bd4607942f
parentc08d227290f618ada4028f0303743263cc026dd9
selftests: forwarding: Add IPv6 GRE flat tests

Add tests that check IPv6-in-IPv6, IPv4-in-IPv6 and MTU change of GRE
tunnel. The tests use flat model - overlay and underlay share the same VRF.

These tests can be run with TC_FLAG=skip_sw, so then they will verify
that packets go through hardware as part of enacp and decap phases.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/ip6gre_flat.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/ip6gre_flat_key.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/ip6gre_flat_keys.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/ip6gre_lib.sh [new file with mode: 0644]