]> 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)
commit7eae9f05a038ec56fd7b2e0f59566126a3918265
treea8c22cdb636bfa15fbb1cf3017378e180cdec2c2
parentb0a89b8b496cc34b52273f1f91d0361f0de7b2ec
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: 3cd0cb25a753 ("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