Skip to contentSkip to conversation

netronome: fix ipv6 link error

PATCH Applied Arnd Bergmann 2 participants 2 messages Jan 8, 2020 – Jan 9, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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")

---
v2: whitespace fix

---
 drivers/net/ethernet/netronome/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/netronome/Kconfig +1 -0
index bac5be4d4f43..a3f68a718813 100644
@@ -31,6 +31,7 @@ config NFP_APP_FLOWER
 	bool "NFP4000/NFP6000 TC Flower offload support"
 	depends on NFP
 	depends on NET_SWITCHDEV
+	depends on IPV6!=m || NFP=m
 	default y
 	---help---
 	  Enable driver support for TC Flower offload on NFP4000 and NFP6000.
Signature · 1 line
2.20.0
maintainer Applied
#1 lore raw

From: Arnd Bergmann <[email protected]>
Date: Wed, 8 Jan 2020 14:15:15 +0100

Quoted 6 lines

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'

Quoted 7 lines

Add a Kconfig dependency to avoid that configuration.

Fixes 9ea9bfa12240 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw")

---
v2: whitespace fix

Applied.