]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add forwarding test for RIF MAC profiles
authorDanielle Ratson <danieller@nvidia.com>
Tue, 26 Oct 2021 09:42:23 +0000 (12:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2021 12:35:58 +0000 (13:35 +0100)
commitc4e1a0291d83a1c36063b4985aa350e293249bd4
tree408060db8edb39d0fabb75b0c1e05361af4cba84
parentd05b46ee79577e0ad67aa8b75bc83fc58a68912b
selftests: mlxsw: Add forwarding test for RIF MAC profiles

Verify that MAC profile changes are indeed applied and that packets are
forwarded with the correct source MAC.

Output example:

$ ./rif_mac_profiles.sh
TEST: h1->h2: new mac profile                                       [ OK ]
TEST: h2->h1: new mac profile                                       [ OK ]
TEST: h1->h2: edit mac profile                                      [ OK ]
TEST: h2->h1: edit mac profile                                      [ OK ]

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/rif_mac_profiles.sh [new file with mode: 0755]