* [Intel-wired-lan] [net-next PATCH] fm10k: remove CONFIG_FM10K_VXLAN in favor of CONFIG_VXLAN
@ 2015-11-06 23:09 Jacob Keller
2015-11-06 23:34 ` Keller, Jacob E
0 siblings, 1 reply; 2+ messages in thread
From: Jacob Keller @ 2015-11-06 23:09 UTC (permalink / raw)
To: intel-wired-lan
There isn't a really compelling reason to keep CONFIG_FM10K_VXLAN around
when we could just check against CONFIG_VXLAN directly.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
---
drivers/net/ethernet/intel/Kconfig | 11 -----------
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c | 8 ++++----
2 files changed, 4 insertions(+), 15 deletions(-)
diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig
index 4163b16489b3..c69e4d241dd0 100644
--- a/drivers/net/ethernet/intel/Kconfig
+++ b/drivers/net/ethernet/intel/Kconfig
@@ -340,15 +340,4 @@ config FM10K
To compile this driver as a module, choose M here. The module
will be called fm10k. MSI-X interrupt support is required
-config FM10K_VXLAN
- bool "Virtual eXtensible Local Area Network Support"
- default n
- depends on FM10K && VXLAN && !(FM10K=y && VXLAN=m)
- ---help---
- This allows one to create VXLAN virtual interfaces that provide
- Layer 2 Networks over Layer 3 Networks. VXLAN is often used
- to tunnel virtual network infrastructure in virtualized environments.
- Say Y here if you want to use Virtual eXtensible Local Area Network
- (VXLAN) in the driver.
-
endif # NET_VENDOR_INTEL
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
index 722ac52d9c96..7ab0e449a586 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
@@ -20,9 +20,9 @@
#include "fm10k.h"
#include <linux/vmalloc.h>
-#if IS_ENABLED(CONFIG_FM10K_VXLAN)
+#if IS_ENABLED(CONFIG_VXLAN)
#include <net/vxlan.h>
-#endif /* CONFIG_FM10K_VXLAN */
+#endif /* CONFIG_VXLAN */
/**
* fm10k_setup_tx_resources - allocate Tx resources (Descriptors)
@@ -556,11 +556,11 @@ int fm10k_open(struct net_device *netdev)
if (err)
goto err_set_queues;
-#if IS_ENABLED(CONFIG_FM10K_VXLAN)
+#if IS_ENABLED(CONFIG_VXLAN)
/* update VXLAN port configuration */
vxlan_get_rx_port(netdev);
+#endif /* CONFIG_VXLAN */
-#endif
fm10k_up(interface);
return 0;
--
2.6.1.264.gbab76a9
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Intel-wired-lan] [net-next PATCH] fm10k: remove CONFIG_FM10K_VXLAN in favor of CONFIG_VXLAN
2015-11-06 23:09 [Intel-wired-lan] [net-next PATCH] fm10k: remove CONFIG_FM10K_VXLAN in favor of CONFIG_VXLAN Jacob Keller
@ 2015-11-06 23:34 ` Keller, Jacob E
0 siblings, 0 replies; 2+ messages in thread
From: Keller, Jacob E @ 2015-11-06 23:34 UTC (permalink / raw)
To: intel-wired-lan
Ignore this patch for now, it's not quite right.
Regards,
Jake
On Fri, 2015-11-06 at 15:09 -0800, Jacob Keller wrote:
> There isn't a really compelling reason to keep CONFIG_FM10K_VXLAN
> around
> when we could just check against CONFIG_VXLAN directly.
>
> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> ---
> ?drivers/net/ethernet/intel/Kconfig??????????????| 11 -----------
> ?drivers/net/ethernet/intel/fm10k/fm10k_netdev.c |??8 ++++----
> ?2 files changed, 4 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/Kconfig
> b/drivers/net/ethernet/intel/Kconfig
> index 4163b16489b3..c69e4d241dd0 100644
> --- a/drivers/net/ethernet/intel/Kconfig
> +++ b/drivers/net/ethernet/intel/Kconfig
> @@ -340,15 +340,4 @@ config FM10K
> ? ??To compile this driver as a module, choose M here. The
> module
> ? ??will be called fm10k.??MSI-X interrupt support is required
> ?
> -config FM10K_VXLAN
> - bool "Virtual eXtensible Local Area Network Support"
> - default n
> - depends on FM10K && VXLAN && !(FM10K=y && VXLAN=m)
> - ---help---
> - ??This allows one to create VXLAN virtual interfaces that
> provide
> - ??Layer 2 Networks over Layer 3 Networks. VXLAN is often
> used
> - ??to tunnel virtual network infrastructure in virtualized
> environments.
> - ??Say Y here if you want to use Virtual eXtensible Local
> Area Network
> - ??(VXLAN) in the driver.
> -
> ?endif # NET_VENDOR_INTEL
> diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
> b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
> index 722ac52d9c96..7ab0e449a586 100644
> --- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
> +++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
> @@ -20,9 +20,9 @@
> ?
> ?#include "fm10k.h"
> ?#include <linux/vmalloc.h>
> -#if IS_ENABLED(CONFIG_FM10K_VXLAN)
> +#if IS_ENABLED(CONFIG_VXLAN)
> ?#include <net/vxlan.h>
> -#endif /* CONFIG_FM10K_VXLAN */
> +#endif /* CONFIG_VXLAN */
> ?
> ?/**
> ? * fm10k_setup_tx_resources - allocate Tx resources (Descriptors)
> @@ -556,11 +556,11 @@ int fm10k_open(struct net_device *netdev)
> ? if (err)
> ? goto err_set_queues;
> ?
> -#if IS_ENABLED(CONFIG_FM10K_VXLAN)
> +#if IS_ENABLED(CONFIG_VXLAN)
> ? /* update VXLAN port configuration */
> ? vxlan_get_rx_port(netdev);
> +#endif /* CONFIG_VXLAN */
> ?
> -#endif
> ? fm10k_up(interface);
> ?
> ? return 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-06 23:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-06 23:09 [Intel-wired-lan] [net-next PATCH] fm10k: remove CONFIG_FM10K_VXLAN in favor of CONFIG_VXLAN Jacob Keller
2015-11-06 23:34 ` Keller, Jacob E
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox