Skip to content

Commit d8682e1

Browse files
Vasu Devgregkh
authored andcommitted
i40e: adds FCoE configure option
commit 776d4e9 upstream. Adds FCoE config option I40E_FCOE, so that FCoE can be enabled as needed but otherwise have it disabled by default. This also eliminate multiple FCoE config checks, instead now just one config check for CONFIG_I40E_FCOE. The I40E FCoE was added with 3.17 kernel and therefore this patch shall be applied to stable 3.17 kernel also. Signed-off-by: Vasu Dev <vasu.dev@intel.com> Tested-by: Jim Young <jamesx.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 87a1898 commit d8682e1

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎drivers/net/ethernet/intel/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,17 @@ config I40E_DCB
281281

282282
If unsure, say N.
283283

284+
config I40E_FCOE
285+
bool "Fibre Channel over Ethernet (FCoE)"
286+
default n
287+
depends on I40E && DCB && FCOE
288+
---help---
289+
Say Y here if you want to use Fibre Channel over Ethernet (FCoE)
290+
in the driver. This will create new netdev for exclusive FCoE
291+
use with XL710 FCoE offloads enabled.
292+
293+
If unsure, say N.
294+
284295
config I40EVF
285296
tristate "Intel(R) XL710 X710 Virtual Function Ethernet support"
286297
depends on PCI_MSI

‎drivers/net/ethernet/intel/i40e/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ i40e-objs := i40e_main.o \
4444
i40e_virtchnl_pf.o
4545

4646
i40e-$(CONFIG_I40E_DCB) += i40e_dcb.o i40e_dcb_nl.o
47-
i40e-$(CONFIG_FCOE:m=y) += i40e_fcoe.o
47+
i40e-$(CONFIG_I40E_FCOE) += i40e_fcoe.o

‎drivers/net/ethernet/intel/i40e/i40e_osdep.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ do { \
7878
} while (0)
7979

8080
typedef enum i40e_status_code i40e_status;
81-
#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
81+
#ifdef CONFIG_I40E_FCOE
8282
#define I40E_FCOE
83-
#endif /* CONFIG_FCOE or CONFIG_FCOE_MODULE */
83+
#endif
8484
#endif /* _I40E_OSDEP_H_ */

0 commit comments

Comments
 (0)