]> git.baikalelectronics.ru Git - 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)
commitd51e7a4ae34f2497b66afe49be9f67e26323c0d4
treea8c22cdb636bfa15fbb1cf3017378e180cdec2c2
parent2c7782a0edecbcd703b4b913ea10f06689c22f0b
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: a99bf3a26e66 ("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