Skip to content

Commit

Permalink
geneve: fix build with modular IPV6
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Toreg87 authored and davem330 committed Apr 27, 2018
1 parent c2335d6 commit 094be09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ config VXLAN
config GENEVE
tristate "Generic Network Virtualization Encapsulation"
depends on INET && NET_UDP_TUNNEL
depends on IPV6 || !IPV6
select NET_IP_TUNNEL
select GRO_CELLS
---help---
Expand Down

0 comments on commit 094be09

Please sign in to comment.