qlcnic: Fix build failure due to undefined reference to `vxlan_get_rx_port'
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Tue, 1 Apr 2014 20:29:32 +0000 (16:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Apr 2014 21:38:05 +0000 (17:38 -0400)
commit7f1f6056f2f7293d5108eda905af42df58b78370
treed068839ba32e1f17839f02d0c688761d1d097f17
parent408eccce32044ee3285a7f6a812723ba3540c3e7
qlcnic: Fix build failure due to undefined reference to `vxlan_get_rx_port'

Commit 2b3d7b758c687("qlcnic: Add VXLAN Rx offload support") uses
vxlan_get_rx_port() which caused build failure when VXLAN=m.

This patch fixes the build failure by adding dependency on VXLAN
in Kconfig of qlcnic module and use vxlan_get_rx_port() and support
code accordingly.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/Kconfig
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c