]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnx2x: add a separate GENEVE Kconfig symbol
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Feb 2016 10:36:02 +0000 (11:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 03:48:54 +0000 (22:48 -0500)
commit4fee7dab07bb2c7dfc3369e0f0e28e3fd4fc00c4
treea8c22cdb636bfa15fbb1cf3017378e180cdec2c2
parent5aba8186856981672447d78a634ada8155b86eb6
bnx2x: add a separate GENEVE Kconfig symbol

When CONFIG_GENEVE is built as a loadable module, and bnx2x is built-in,
we get this link error:

drivers/net/built-in.o: In function `bnx2x_open':
:(.text+0x33322): undefined reference to `geneve_get_rx_port'
drivers/net/built-in.o: In function `bnx2x_sp_rtnl_task':
:(.text+0x3e632): undefined reference to `geneve_get_rx_port'

This avoids the problem by adding a separate Kconfig symbol named
CONFIG_BNX2X_GENEVE that is only enabled when the code is
reachable from the driver.

This is the same trick that BNX2X does for VXLAN support, and
is similar to how I40E handles both.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 883ce97d25b0 ("bnx2x: Add Geneve inner-RSS support")
Acked-By: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/Kconfig
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c