OSDN Git Service

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)
commit8e059d64bee4a71064423ed34e04868cff478678
treecbfa7ce4a06cc0393bd422ed7d73b8fae08bb6a7
parent30be4551f9e26292599e666985119a5b559a2e4a
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