]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: spectrum: Add a test for VxLAN flooding with IPv6
authorAmit Cohen <amcohen@nvidia.com>
Thu, 23 Dec 2021 07:29:59 +0000 (09:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2021 11:24:01 +0000 (11:24 +0000)
commit9cce9ab35395ded653673a862c3c0dde332bd4fa
treef9a8b037c2c3af7b8729307b4e5ae7d44c3c7af0
parent7642ef1bff9f49bf11f5d7c28e3bb2c9dbe371f2
selftests: mlxsw: spectrum: Add a test for VxLAN flooding with IPv6

The device stores flood records in a singly linked list where each
record stores up to X IP addresses of remote VTEPs.

The number of records is changed according to ASIC type and address
family.

Add a test which is similar to the existing IPv4 test to check IPv6.
The test is dedicated for Spectrum-1 switches, which support up to five
IPv6 addresses in one record.

The test verifies that packets are correctly flooded in various cases such
as deletion of a record in the middle of the list.

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/spectrum/vxlan_flooding_ipv6.sh [new file with mode: 0755]