selftests: mlxsw: Test RIF's reference count when joining a LAG
authorIdo Schimmel <idosch@nvidia.com>
Sun, 6 Dec 2020 08:22:22 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2020 03:22:14 +0000 (19:22 -0800)
commit23fb55526d80122710c28cb6be0e5dba65a6a3f1
tree2a71753e488128c0bdfff0cd144a07f91ed05c5b
parent31e1de4f1242f338eaa62cc53d582116c83b9dd0
selftests: mlxsw: Test RIF's reference count when joining a LAG

Test that the reference count of a router interface (RIF) configured for
a LAG is incremented / decremented when ports join / leave the LAG. Use
the offload indication on routes configured on the RIF to understand if
it was created / destroyed.

The test fails without the previous patch.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/rtnetlink.sh