Commit ea217e87 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller

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: 9ea9bfa1 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw")
Acked-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 112463dd
...@@ -31,6 +31,7 @@ config NFP_APP_FLOWER ...@@ -31,6 +31,7 @@ config NFP_APP_FLOWER
bool "NFP4000/NFP6000 TC Flower offload support" bool "NFP4000/NFP6000 TC Flower offload support"
depends on NFP depends on NFP
depends on NET_SWITCHDEV depends on NET_SWITCHDEV
depends on IPV6!=m || NFP=m
default y default y
---help--- ---help---
Enable driver support for TC Flower offload on NFP4000 and NFP6000. Enable driver support for TC Flower offload on NFP4000 and NFP6000.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment