]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add a test case for MAC profiles consolidation
authorDanielle Ratson <danieller@nvidia.com>
Tue, 14 Dec 2021 10:21:37 +0000 (12:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Dec 2021 12:56:10 +0000 (12:56 +0000)
commitd751c727e390f6130889ba099196e2b88c3d1057
tree384fc6cd5ca7a5394d1ebafd7be3400921b355e9
parent8da06901f7798b259c61a3385b621ee50a8c313f
selftests: mlxsw: Add a test case for MAC profiles consolidation

Add a test case to cover the bug fixed by the previous patch.

Edit the MAC address of one netdev so that it matches the MAC address of
the second netdev. Verify that the two MAC profiles were consolidated by
testing that the MAC profiles occupancy decreased by one.

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_occ.sh