selftests: forwarding: devlink_lib: Allow tests to define devlink device
authorIdo Schimmel <idosch@mellanox.com>
Sat, 17 Aug 2019 13:28:22 +0000 (16:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Aug 2019 19:40:09 +0000 (12:40 -0700)
commitbc030d9c91c3764a143fc3ac4516bbfd330b41ed
treed2d83ecbccb4ded1235c246a9ddfac49483225c6
parent9e087457048884c57c51a32b52d8aa1d9b0d7385
selftests: forwarding: devlink_lib: Allow tests to define devlink device

For tests that create their network interfaces dynamically or do not use
interfaces at all (as with netdevsim) it is useful to define their own
devlink device instead of deriving it from the first network interface.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/devlink_lib.sh