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)
commit20617717cd219d3c1f798cd13dbce1bcd86a6ece
tree384fc6cd5ca7a5394d1ebafd7be3400921b355e9
parentb442f2ea84624873d538e4c5986d7c0d40883a47
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