From: Alexander Duyck <alexander.h.duyck@redhat.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [RFC v1 1/4] i40e: Remove CONFIG_I40E_VXLAN
Date: Mon, 24 Aug 2015 15:00:50 -0700 [thread overview]
Message-ID: <55DB9412.1020507@redhat.com> (raw)
In-Reply-To: <1440453891-214878-1-git-send-email-anjali.singhai@intel.com>
On 08/24/2015 03:04 PM, Anjali Singhai Jain wrote:
> If the kernel flag CONFIG_VXLAN is true or CONFIG_VXLAN_MODULE is true,
> enable VXLAN offload in the driver.
>
> Signed-off-by: Kiran Patil <kiran.patil@intel.com>
> Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
> ---
> drivers/net/ethernet/intel/Kconfig | 11 -----------
> drivers/net/ethernet/intel/i40e/i40e.h | 4 ----
> drivers/net/ethernet/intel/i40e/i40e_main.c | 14 ++++----------
> 3 files changed, 4 insertions(+), 25 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig
> index 4163b16..061e4e0 100644
> --- a/drivers/net/ethernet/intel/Kconfig
> +++ b/drivers/net/ethernet/intel/Kconfig
> @@ -269,17 +269,6 @@ config I40E
> To compile this driver as a module, choose M here. The module
> will be called i40e.
>
> -config I40E_VXLAN
> - bool "Virtual eXtensible Local Area Network Support"
> - default n
> - depends on I40E && VXLAN && !(I40E=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.
> -
> config I40E_DCB
> bool "Data Center Bridging (DCB) Support"
> default n
> diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
> index c9fa289..257f7d8 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e.h
> +++ b/drivers/net/ethernet/intel/i40e/i40e.h
> @@ -274,11 +274,9 @@ struct i40e_pf {
> u32 fd_atr_cnt;
> u32 fd_tcp_rule;
>
> -#ifdef CONFIG_I40E_VXLAN
> __be16 vxlan_ports[I40E_MAX_PF_UDP_OFFLOAD_PORTS];
> u16 pending_vxlan_bitmap;
>
> -#endif
> enum i40e_interrupt_policy int_policy;
> u16 rx_itr_default;
> u16 tx_itr_default;
> @@ -316,9 +314,7 @@ struct i40e_pf {
> #define I40E_FLAG_FD_ATR_ENABLED BIT_ULL(22)
> #define I40E_FLAG_PTP BIT_ULL(25)
> #define I40E_FLAG_MFP_ENABLED BIT_ULL(26)
> -#ifdef CONFIG_I40E_VXLAN
> #define I40E_FLAG_VXLAN_FILTER_SYNC BIT_ULL(27)
> -#endif
> #define I40E_FLAG_PORT_ID_VALID BIT_ULL(28)
> #define I40E_FLAG_DCB_CAPABLE BIT_ULL(29)
> #define I40E_FLAG_RSS_AQ_CAPABLE BIT_ULL(31)
> diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
> index aef0a4c..05081d1 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e_main.c
> +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
> @@ -28,7 +28,7 @@
> #include "i40e.h"
> #include "i40e_helper.h"
> #include "i40e_diag.h"
> -#ifdef CONFIG_I40E_VXLAN
> +#if defined(CONFIG_VXLAN) || defined(CONFIG_VXLAN_MODULE)
This should probably just be replaced with:
#if IS_ENABLED(CONFIG_VXLAN)
Same goes for the other spots in this patch as well.
- Alex
next prev parent reply other threads:[~2015-08-24 22:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 22:04 [Intel-wired-lan] [RFC v1 1/4] i40e: Remove CONFIG_I40E_VXLAN Anjali Singhai Jain
2015-08-24 22:00 ` Alexander Duyck [this message]
2015-08-24 22:04 ` [Intel-wired-lan] [RFC v1 2/4] geneve: Add geneve udp port offload for ethernet devices Anjali Singhai Jain
2015-08-24 22:59 ` Jesse Gross
2015-08-24 23:03 ` Singhai, Anjali
2015-08-25 0:14 ` Jesse Gross
2015-08-24 22:04 ` [Intel-wired-lan] [RFC v1 3/4] i40e: Generalize the UDP tunnel offload flow Anjali Singhai Jain
2015-08-24 22:04 ` [Intel-wired-lan] [RFC v1 4/4] i40e: geneve tunnel offload support Anjali Singhai Jain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DB9412.1020507@redhat.com \
--to=alexander.h.duyck@redhat.com \
--cc=intel-wired-lan@osuosl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox