]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: vxlan: Make the test more flexible for future use
authorAmit Cohen <amcohen@nvidia.com>
Thu, 23 Dec 2021 07:29:55 +0000 (09:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2021 11:24:00 +0000 (11:24 +0000)
commitaace46cc7b725f77c492745af6ee1c50725fe211
treecbfa7ce4a06cc0393bd422ed7d73b8fae08bb6a7
parent714c55f6e80a5c6f00b0d3c1f4deece1f9d40913
selftests: mlxsw: vxlan: Make the test more flexible for future use

vxlan.sh cases are dedicated to test VxLAN with IPv4 underlay.
The main changes to test IPv6 underlay are IP addresses and some flags.

Add variables to define all the values which supposed to be different
for IPv6 testing, set them to use the existing values by default.

The next patch will define the new added variables in a separated file,
so the same tests can be used for IPv6 also.

Rename some functions to include "ipv4", so the next patch will add
equivalent functions for IPv6.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/vxlan.sh