aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/intel/Kconfig9
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e.h4
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_configfs.c4
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c8
4 files changed, 17 insertions, 8 deletions
diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig
index f4ff465584a0..7216a5370a1f 100644
--- a/drivers/net/ethernet/intel/Kconfig
+++ b/drivers/net/ethernet/intel/Kconfig
@@ -303,6 +303,15 @@ config I40E_FCOE
303 303
304 If unsure, say N. 304 If unsure, say N.
305 305
306config I40E_CONFIGFS_FS
307 bool "Config File System Support (configfs)"
308 default n
309 depends on I40E && CONFIGFS_FS && !(I40E=y && CONFIGFS_FS=m)
310 ---help---
311 Provides support for the configfs file system for additional
312 driver configuration. Say Y here if you want to use the
313 configuration file system in the driver.
314
306config I40EVF 315config I40EVF
307 tristate "Intel(R) XL710 X710 Virtual Function Ethernet support" 316 tristate "Intel(R) XL710 X710 Virtual Function Ethernet support"
308 depends on PCI_MSI 317 depends on PCI_MSI
diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
index 1e9576bb911e..5761917734dc 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -741,10 +741,10 @@ int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
741void i40e_ptp_init(struct i40e_pf *pf); 741void i40e_ptp_init(struct i40e_pf *pf);
742void i40e_ptp_stop(struct i40e_pf *pf); 742void i40e_ptp_stop(struct i40e_pf *pf);
743int i40e_is_vsi_uplink_mode_veb(struct i40e_vsi *vsi); 743int i40e_is_vsi_uplink_mode_veb(struct i40e_vsi *vsi);
744#if IS_ENABLED(CONFIG_CONFIGFS_FS) 744#if IS_ENABLED(CONFIG_I40E_CONFIGFS_FS)
745int i40e_configfs_init(void); 745int i40e_configfs_init(void);
746void i40e_configfs_exit(void); 746void i40e_configfs_exit(void);
747#endif /* CONFIG_CONFIGFS_FS */ 747#endif /* CONFIG_I40E_CONFIGFS_FS */
748i40e_status i40e_get_npar_bw_setting(struct i40e_pf *pf); 748i40e_status i40e_get_npar_bw_setting(struct i40e_pf *pf);
749i40e_status i40e_set_npar_bw_setting(struct i40e_pf *pf); 749i40e_status i40e_set_npar_bw_setting(struct i40e_pf *pf);
750i40e_status i40e_commit_npar_bw_setting(struct i40e_pf *pf); 750i40e_status i40e_commit_npar_bw_setting(struct i40e_pf *pf);
diff --git a/drivers/net/ethernet/intel/i40e/i40e_configfs.c b/drivers/net/ethernet/intel/i40e/i40e_configfs.c
index 3af4f14559d7..d3cdfc24d5bf 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_configfs.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_configfs.c
@@ -27,7 +27,7 @@
27#include <linux/configfs.h> 27#include <linux/configfs.h>
28#include "i40e.h" 28#include "i40e.h"
29 29
30#if IS_ENABLED(CONFIG_CONFIGFS_FS) 30#if IS_ENABLED(CONFIG_I40E_CONFIGFS_FS)
31 31
32/** 32/**
33 * configfs structure for i40e 33 * configfs structure for i40e
@@ -351,4 +351,4 @@ void i40e_configfs_exit(void)
351{ 351{
352 configfs_unregister_subsystem(&i40e_cfgfs_group_subsys); 352 configfs_unregister_subsystem(&i40e_cfgfs_group_subsys);
353} 353}
354#endif /* IS_ENABLED(CONFIG_CONFIGFS_FS) */ 354#endif /* IS_ENABLED(CONFIG_I40E_CONFIGFS_FS) */
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 2757926f7805..aadc60432980 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -10108,9 +10108,9 @@ static int __init i40e_init_module(void)
10108 i40e_driver_string, i40e_driver_version_str); 10108 i40e_driver_string, i40e_driver_version_str);
10109 pr_info("%s: %s\n", i40e_driver_name, i40e_copyright); 10109 pr_info("%s: %s\n", i40e_driver_name, i40e_copyright);
10110 10110
10111#if IS_ENABLED(CONFIG_CONFIGFS_FS) 10111#if IS_ENABLED(CONFIG_I40E_CONFIGFS_FS)
10112 i40e_configfs_init(); 10112 i40e_configfs_init();
10113#endif /* CONFIG_CONFIGFS_FS */ 10113#endif /* CONFIG_I40E_CONFIGFS_FS */
10114 i40e_dbg_init(); 10114 i40e_dbg_init();
10115 return pci_register_driver(&i40e_driver); 10115 return pci_register_driver(&i40e_driver);
10116} 10116}
@@ -10126,8 +10126,8 @@ static void __exit i40e_exit_module(void)
10126{ 10126{
10127 pci_unregister_driver(&i40e_driver); 10127 pci_unregister_driver(&i40e_driver);
10128 i40e_dbg_exit(); 10128 i40e_dbg_exit();
10129#if IS_ENABLED(CONFIG_CONFIGFS_FS) 10129#if IS_ENABLED(CONFIG_I40E_CONFIGFS_FS)
10130 i40e_configfs_exit(); 10130 i40e_configfs_exit();
10131#endif /* CONFIG_CONFIGFS_FS */ 10131#endif /* CONFIG_I40E_CONFIGFS_FS */
10132} 10132}
10133module_exit(i40e_exit_module); 10133module_exit(i40e_exit_module);