OSDN Git Service

selftests: forwarding: Add IPv6 GRE hierarchical tests
authorAmit Cohen <amcohen@nvidia.com>
Fri, 8 Oct 2021 13:12:37 +0000 (16:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 15:40:58 +0000 (16:40 +0100)
commit4b3d967b5cb99a445a2d55478035308f000cd568
tree0be4c4ff06f85e8b8d4b57cf6d4ba50c49fe47ac
parent7df29960fa65bb11a5571468056155ca04d8f6df
selftests: forwarding: Add IPv6 GRE hierarchical tests

Add tests that check IPv6-in-IPv6, IPv4-in-IPv6 and MTU change of GRE
tunnel. The tests use hierarchical model - the tunnel is bound to a device
in a different 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_hier.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/ip6gre_hier_key.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/ip6gre_hier_keys.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/ip6gre_lib.sh