selftests: mlxsw: Add devlink KVD resource test
authorYuval Mintz <yuvalm@mellanox.com>
Sat, 30 Jun 2018 00:48:27 +0000 (02:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 13:06:15 +0000 (22:06 +0900)
commitb030c338116438700fc61fe572d82034f190d3e8
tree18385265b71a7d1377dfba5a1f14f2dbcc61c345
parent5aeba3e89b3ee4e541dc882d23c7332893dd4b5a
selftests: mlxsw: Add devlink KVD resource test

Add a selftest that can be used to perform basic sanity of the devlink
resource API as well as test the behavior of KVD manipulation in the
driver.

This is the first case of a HW-only test - in order to test the devlink
resource a driver capable of exposing resources has to be provided
first.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
[petrm@mellanox.com: Extracted two patches out of this patch. Tweaked
commit message.]
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/spectrum/devlink_resources.sh [new file with mode: 0755]