selftests: mlxsw: Add rtnetlink tests
authorIdo Schimmel <idosch@mellanox.com>
Wed, 19 Dec 2018 06:08:51 +0000 (06:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 20:28:07 +0000 (12:28 -0800)
commit489c25f9a375ba1e780dcf445ca74f6b3766d1b5
treec73e061039e7a58ebd52b618bfb59ffa49607b29
parentb61cd7c6f992cca57166d0cabe242c49b93609eb
selftests: mlxsw: Add rtnetlink tests

Add a new test that is focused on rtnetlink configuration. Its purpose
is to test valid and invalid (as deemed by mlxsw) configurations and
make sure that they succeed / fail without producing a trace.

Some of the test cases are derived from recent fixes in order to make
sure that the fixed bugs are not introduced again.

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