selftests: loopback.sh: skip this test if the driver does not support
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 3 Jan 2020 07:41:24 +0000 (15:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2020 20:23:34 +0000 (12:23 -0800)
commitcc7e3f63d7299dd1119be39aa187b867d6f8aa17
treec3a9e8bbc1d0d6860ba97ccc5f57387b6b059117
parentcd82dbf0d3fdd2474d169fa62631fa8e12e0311c
selftests: loopback.sh: skip this test if the driver does not support

The loopback feature is only supported on a few drivers like broadcom,
mellanox, etc. The default veth driver has not supported it yet. To avoid
returning failed and making the runner feel confused, let's just skip
the test on drivers that not support loopback.

Fixes: ad11340994d5 ("selftests: Add loopback test")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/loopback.sh