net/mlx5e: skip loopback selftest with !CONFIG_INET
commitd709b2a186761bc038c99c2f744c7218f2d249bd
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 Nov 2016 21:05:39 +0000 (30 22:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 16:55:57 +0000 (2 11:55 -0500)
tree8052df8e2f2942ffbef5f2b75af3c53e3239bcc0
parent366cbf2f46048d70005c6c33dc289330f24b54b0
net/mlx5e: skip loopback selftest with !CONFIG_INET

When CONFIG_INET is disabled, the new selftest results in a link
error:

drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.o: In function `mlx5e_test_loopback':
en_selftest.c:(.text.mlx5e_test_loopback+0x2ec): undefined reference to `ip_send_check'
en_selftest.c:(.text.mlx5e_test_loopback+0x34c): undefined reference to `udp4_hwcsum'

This hides the specific test in that configuration.

Fixes: 0952da791c97 ("net/mlx5e: Add support for loopback selftest")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c