Skip to content

Commit 094be09

Browse files
Toreg87davem330
authored andcommitted
geneve: fix build with modular IPV6
Commit c40e89f ("geneve: configure MTU based on a lower device") added an IS_ENABLED(CONFIG_IPV6) to geneve, leading to the following link error with CONFIG_GENEVE=y and CONFIG_IPV6=m: drivers/net/geneve.o: In function `geneve_link_config': geneve.c:(.text+0x14c): undefined reference to `rt6_lookup' Fix this by adding a Kconfig dependency and forcing GENEVE to be a module when IPV6 is a module. Fixes: c40e89f ("geneve: configure MTU based on a lower device") Signed-off-by: Tobias Regnery <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c2335d6 commit 094be09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ config VXLAN
198198
config GENEVE
199199
tristate "Generic Network Virtualization Encapsulation"
200200
depends on INET && NET_UDP_TUNNEL
201+
depends on IPV6 || !IPV6
201202
select NET_IP_TUNNEL
202203
select GRO_CELLS
203204
---help---

0 commit comments

Comments
 (0)