aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2014-10-04 02:19:11 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-10-16 05:03:39 -0400
commitf6b03c10a1b3f2c98ed23813997cdebef8aabeba (patch)
treec9e12e5611b0fdbc53d0c08c0698491d5ab2734f /drivers/net
parent13cb2dad45cc8c8e350abc84de38449b89629c3c (diff)
fm10k: Add CONFIG_FM10K_VXLAN configuration option
Compiling with CONFIG_FM10K=y and VXLAN=m resulting in linking error: drivers/built-in.o: In function `fm10k_open': (.text+0x1f9d7a): undefined reference to `vxlan_get_rx_port' make: *** [vmlinux] Error 1 The fix follows the same strategy as I40E. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/Kconfig11
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k_netdev.c6
2 files changed, 14 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig
index 6919adb66f53..5b8300a32bf5 100644
--- a/drivers/net/ethernet/intel/Kconfig
+++ b/drivers/net/ethernet/intel/Kconfig
@@ -320,4 +320,15 @@ config FM10K
320 To compile this driver as a module, choose M here. The module 320 To compile this driver as a module, choose M here. The module
321 will be called fm10k. MSI-X interrupt support is required 321 will be called fm10k. MSI-X interrupt support is required
322 322
323config FM10K_VXLAN
324 bool "Virtual eXtensible Local Area Network Support"
325 default n
326 depends on FM10K && VXLAN && !(FM10K=y && VXLAN=m)
327 ---help---
328 This allows one to create VXLAN virtual interfaces that provide
329 Layer 2 Networks over Layer 3 Networks. VXLAN is often used
330 to tunnel virtual network infrastructure in virtualized environments.
331 Say Y here if you want to use Virtual eXtensible Local Area Network
332 (VXLAN) in the driver.
333
323endif # NET_VENDOR_INTEL 334endif # NET_VENDOR_INTEL
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
index b57ea1c09a21..8811364b91cb 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
@@ -20,9 +20,9 @@
20 20
21#include "fm10k.h" 21#include "fm10k.h"
22#include <linux/vmalloc.h> 22#include <linux/vmalloc.h>
23#if IS_ENABLED(CONFIG_VXLAN) 23#if IS_ENABLED(CONFIG_FM10K_VXLAN)
24#include <net/vxlan.h> 24#include <net/vxlan.h>
25#endif /* CONFIG_VXLAN */ 25#endif /* CONFIG_FM10K_VXLAN */
26 26
27/** 27/**
28 * fm10k_setup_tx_resources - allocate Tx resources (Descriptors) 28 * fm10k_setup_tx_resources - allocate Tx resources (Descriptors)
@@ -556,7 +556,7 @@ int fm10k_open(struct net_device *netdev)
556 if (err) 556 if (err)
557 goto err_set_queues; 557 goto err_set_queues;
558 558
559#if IS_ENABLED(CONFIG_VXLAN) 559#if IS_ENABLED(CONFIG_FM10K_VXLAN)
560 /* update VXLAN port configuration */ 560 /* update VXLAN port configuration */
561 vxlan_get_rx_port(netdev); 561 vxlan_get_rx_port(netdev);
562 562