netronome: fix ipv6 link error
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Jan 2020 13:15:15 +0000 (14:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jan 2020 00:06:29 +0000 (16:06 -0800)
commitea217e874aef6aa523331a9b5a8d49223460cf3e
treea1c65a0895033f348c8d71fc706d571a3e77cce0
parent112463ddbe82f8d1f98bfb7f943e1ed3c08bc56a
netronome: fix ipv6 link error

When the driver is built-in but ipv6 is a module, the flower
support produces a link error:

drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.o: In function `nfp_tunnel_keep_alive_v6':
tunnel_conf.c:(.text+0x2aa8): undefined reference to `nd_tbl'

Add a Kconfig dependency to avoid that configuration.

Fixes: 9ea9bfa12240 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw")
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/Kconfig