]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a062dd86cc9dfd1c20570c0a0a3df0de686ad9a
treec3a9e8bbc1d0d6860ba97ccc5f57387b6b059117
parentf765f7130a9b5b36326d7935719dabfef7f2f97e
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: 33a4ee2c1a9b ("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