net/intel: remove driver versions from Intel drivers
Subsystems (2)
PATCH v2 1/1 net/intel: remove driver versions from Intel drivers
As with other networking drivers, remove the unnecessary driver version from the Intel drivers. The ethtool driver information and module version will then report the kernel version instead.
For ixgbe, i40e and ice drivers, the driver passes the driver version to the firmware to confirm that we are up and running. So we now pass the value of UTS_RELEASE to the firmware.
---
v2: fixed Co-developed-by: tag
drivers/net/ethernet/intel/e100.c | 6 +---- drivers/net/ethernet/intel/e1000/e1000.h | 1 - .../net/ethernet/intel/e1000/e1000_ethtool.c | 2 -- drivers/net/ethernet/intel/e1000/e1000_main.c | 5 +---- drivers/net/ethernet/intel/e1000e/e1000.h | 1 - drivers/net/ethernet/intel/e1000e/ethtool.c | 2 -- drivers/net/ethernet/intel/e1000e/netdev.c | 8 +------ drivers/net/ethernet/intel/fm10k/fm10k.h | 1 - .../net/ethernet/intel/fm10k/fm10k_ethtool.c | 2 -- drivers/net/ethernet/intel/fm10k/fm10k_main.c | 5 +---- drivers/net/ethernet/intel/i40e/i40e.h | 1 - .../net/ethernet/intel/i40e/i40e_ethtool.c | 2 -- drivers/net/ethernet/intel/i40e/i40e_main.c | 22 +++++-------------- drivers/net/ethernet/intel/iavf/iavf.h | 1 - .../net/ethernet/intel/iavf/iavf_ethtool.c | 1 - drivers/net/ethernet/intel/iavf/iavf_main.c | 14 +----------- drivers/net/ethernet/intel/iavf/iavf_type.h | 8 ------- drivers/net/ethernet/intel/ice/ice.h | 1 - drivers/net/ethernet/intel/ice/ice_ethtool.c | 1 - drivers/net/ethernet/intel/ice/ice_main.c | 22 ++++++------------- drivers/net/ethernet/intel/igb/igb.h | 1 - drivers/net/ethernet/intel/igb/igb_ethtool.c | 1 - drivers/net/ethernet/intel/igb/igb_main.c | 11 +--------- drivers/net/ethernet/intel/igbvf/ethtool.c | 2 -- drivers/net/ethernet/intel/igbvf/igbvf.h | 1 - drivers/net/ethernet/intel/igbvf/netdev.c | 5 +---- drivers/net/ethernet/intel/igc/igc.h | 1 - drivers/net/ethernet/intel/igc/igc_ethtool.c | 1 - drivers/net/ethernet/intel/igc/igc_main.c | 7 +----- drivers/net/ethernet/intel/ixgb/ixgb.h | 1 - .../net/ethernet/intel/ixgb/ixgb_ethtool.c | 2 -- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 6 +---- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 1 - .../net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 2 -- drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 3 ++- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 10 ++++----- drivers/net/ethernet/intel/ixgbevf/ethtool.c | 2 -- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 1 - .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 7 +----- 39 files changed, 29 insertions(+), 142 deletions(-)
drivers/net/ethernet/intel/e100.c +1 -5
@@ -150,8 +150,6 @@#define DRV_NAME "e100" -#define DRV_EXT "-NAPI" -#define DRV_VERSION "3.5.24-k2"DRV_EXT#define DRV_DESCRIPTION "Intel(R) PRO/100 Network Driver"#define DRV_COPYRIGHT "Copyright(c) 1999-2006 Intel Corporation"
@@ -165,7 +163,6 @@MODULE_DESCRIPTION (DRV_DESCRIPTION );MODULE_AUTHOR (DRV_COPYRIGHT );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );MODULE_FIRMWARE (FIRMWARE_D101M );MODULE_FIRMWARE (FIRMWARE_D101S );MODULE_FIRMWARE (FIRMWARE_D102E );
@@ -2430,7 +2427,6 @@ static void e100_get_drvinfo(struct net_device *netdev, {struct nic *nic =netdev_priv (netdev);strlcpy (info->driver,DRV_NAME ,sizeof (info->driver)); -strlcpy (info->version,DRV_VERSION ,sizeof (info->version));strlcpy (info->bus_info,pci_name (nic->pdev),sizeof (info->bus_info)); }
@@ -3167,7 +3163,7 @@ static struct pci_driver e100_driver = {static int __init e100_init_module (void ) {if (((1 << debug) -1 ) &NETIF_MSG_DRV ) { -pr_info ("%s, %s\n" ,DRV_DESCRIPTION ,DRV_VERSION ); +pr_info ("%s\n" ,DRV_DESCRIPTION );pr_info ("%s\n" ,DRV_COPYRIGHT ); }return pci_register_driver (&e100_driver);
drivers/net/ethernet/intel/e1000/e1000.h +0 -1
@@ -330,7 +330,6 @@ struct net_device *e1000_get_hw_dev(struct e1000_hw *hw); dev_err(&adapter->pdev->dev, format, ## arg) extern char e1000_driver_name[]; -extern const char e1000_driver_version[]; int e1000_open(struct net_device *netdev); int e1000_close(struct net_device *netdev);
drivers/net/ethernet/intel/e1000/e1000_ethtool.c +0 -2
@@ -533,8 +533,6 @@ static void e1000_get_drvinfo(struct net_device *netdev,strlcpy (drvinfo->driver, e1000_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, e1000_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),sizeof (drvinfo->bus_info));
drivers/net/ethernet/intel/e1000/e1000_main.c +1 -4
@@ -10,8 +10,6 @@char e1000_driver_name[] ="e1000" ;static char e1000_driver_string[] ="Intel(R) PRO/1000 Network Driver" ; -#define DRV_VERSION "7.3.21-k8-NAPI" -const char e1000_driver_version[] =DRV_VERSION ;static const char e1000_copyright[] ="Copyright (c) 1999-2006 Intel Corporation." ;/* e1000_pci_tbl - PCI Device ID Table
@@ -196,7 +194,6 @@ static struct pci_driver e1000_driver = {MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/1000 Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)static int debug =-1 ;
@@ -223,7 +220,7 @@ struct net_device *e1000_get_hw_dev(struct e1000_hw *hw)static int __init e1000_init_module (void ) {int ret; -pr_info ("%s - version %s\n" , e1000_driver_string, e1000_driver_version); +pr_info ("%s\n" , e1000_driver_string);pr_info ("%s\n" , e1000_copyright);
drivers/net/ethernet/intel/e1000e/e1000.h +0 -1
@@ -460,7 +460,6 @@ enum latency_range { };extern char e1000e_driver_name[]; -extern const char e1000e_driver_version[];void e1000e_check_options (struct e1000_adapter *adapter);void e1000e_set_ethtool_ops (struct net_device *netdev);
drivers/net/ethernet/intel/e1000e/ethtool.c +0 -2
@@ -633,8 +633,6 @@ static void e1000_get_drvinfo(struct net_device *netdev,struct e1000_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, e1000e_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, e1000e_driver_version, -sizeof (drvinfo->version));/* EEPROM image version # is reported as firmware version # for * PCI-E controllers
drivers/net/ethernet/intel/e1000e/netdev.c +1 -7
@@ -28,11 +28,7 @@#include "e1000.h" -#define DRV_EXTRAVERSION "-k" - -#define DRV_VERSION "3.2.6" DRV_EXTRAVERSIONchar e1000e_driver_name[] ="e1000e" ; -const char e1000e_driver_version[] =DRV_VERSION ;#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)static int debug =-1 ;
@@ -7803,8 +7799,7 @@ static struct pci_driver e1000_driver = {**/ static int __init e1000_init_module (void ) { -pr_info ("Intel(R) PRO/1000 Network Driver - %s\n" , - e1000e_driver_version); +pr_info ("Intel(R) PRO/1000 Network Driver\n" );pr_info ("Copyright(c) 1999 - 2015 Intel Corporation.\n" );return pci_register_driver (&e1000_driver);
@@ -7826,6 +7821,5 @@ module_exit(e1000_exit_module);MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/1000 Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );/* netdev.c */
drivers/net/ethernet/intel/fm10k/fm10k.h +0 -1
@@ -476,7 +476,6 @@ struct fm10k_cb {/* main */ extern char fm10k_driver_name[]; -extern const char fm10k_driver_version[];int fm10k_init_queueing_scheme (struct fm10k_intfc *interface);void fm10k_clear_queueing_scheme (struct fm10k_intfc *interface);__be16 fm10k_tx_encap_offload (struct sk_buff *skb);
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +0 -2
@@ -449,8 +449,6 @@ static void fm10k_get_drvinfo(struct net_device *dev,strncpy (info->driver, fm10k_driver_name,sizeof (info->driver) -1 ); -strncpy (info->version, fm10k_driver_version, -sizeof (info->version) -1 );strncpy (info->bus_info,pci_name (interface->pdev),sizeof (info->bus_info) -1 ); }
drivers/net/ethernet/intel/fm10k/fm10k_main.c +1 -4
@@ -11,9 +11,7 @@#include "fm10k.h" -#define DRV_VERSION "0.27.1-k"#define DRV_SUMMARY "Intel(R) Ethernet Switch Host Interface Driver" -const char fm10k_driver_version[] =DRV_VERSION ;char fm10k_driver_name[] ="fm10k" ;static const char fm10k_driver_string[] =DRV_SUMMARY ; static const char fm10k_copyright[] =
@@ -22,7 +20,6 @@ static const char fm10k_copyright[] =MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );/* single workqueue for entire fm10k driver */ struct workqueue_struct *fm10k_workqueue;
@@ -35,7 +32,7 @@ struct workqueue_struct *fm10k_workqueue;**/ static int __init fm10k_init_module (void ) { -pr_info ("%s - version %s\n" , fm10k_driver_string, fm10k_driver_version); +pr_info ("%s\n" , fm10k_driver_string);pr_info ("%s\n" , fm10k_copyright);/* create driver workqueue */
drivers/net/ethernet/intel/i40e/i40e.h +0 -1
@@ -972,7 +972,6 @@ static inline void i40e_write_fd_input_set(struct i40e_pf *pf,int i40e_up (struct i40e_vsi *vsi);void i40e_down (struct i40e_vsi *vsi);extern const char i40e_driver_name[]; -extern const char i40e_driver_version_str[];void i40e_do_reset_safe (struct i40e_pf *pf,u32 reset_flags);void i40e_do_reset (struct i40e_pf *pf,u32 reset_flags,bool lock_acquired);int i40e_config_rss (struct i40e_vsi *vsi,u8 *seed,u8 *lut,u16 lut_size);
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +0 -2
@@ -1893,8 +1893,6 @@ static void i40e_get_drvinfo(struct net_device *netdev,struct i40e_pf *pf = vsi->back;strlcpy (drvinfo->driver, i40e_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, i40e_driver_version_str, -sizeof (drvinfo->version));strlcpy (drvinfo->fw_version,i40e_nvm_version_str (&pf->hw),sizeof (drvinfo->fw_version)); strlcpy(drvinfo->bus_info, pci_name(pf->pdev),
drivers/net/ethernet/intel/i40e/i40e_main.c +6 -16
@@ -5,6 +5,7 @@#include <linux/of_net.h> #include <linux/pci.h> #include <linux/bpf.h> +#include <linux/vermagic.h> /* Local includes */ #include "i40e.h"
@@ -23,15 +24,6 @@ const char i40e_driver_name[] = "i40e";static const char i40e_driver_string[] ="Intel(R) Ethernet Connection XL710 Network Driver" ; -#define DRV_KERN "-k" - -#define DRV_VERSION_MAJOR 2 -#define DRV_VERSION_MINOR 8 -#define DRV_VERSION_BUILD 20 -#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ - __stringify(DRV_VERSION_MINOR) "." \ - __stringify(DRV_VERSION_BUILD) DRV_KERN -const char i40e_driver_version_str[] =DRV_VERSION ;static const char i40e_copyright[] ="Copyright (c) 2013 - 2019 Intel Corporation." ;/* a bit of forward declarations */
@@ -101,7 +93,6 @@ MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all), Debug mask (0x8XXXXXXXMODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Ethernet Connection XL710 Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );static struct workqueue_struct *i40e_wq;
@@ -9840,11 +9831,11 @@ static void i40e_send_version(struct i40e_pf *pf) {struct i40e_driver_version dv; - dv.major_version =DRV_VERSION_MAJOR ; - dv.minor_version =DRV_VERSION_MINOR ; - dv.build_version =DRV_VERSION_BUILD ; + dv.major_version =0xff ; + dv.minor_version =0xff ; + dv.build_version =0xff ; dv.subbuild_version =0 ; -strlcpy (dv.driver_string,DRV_VERSION ,sizeof (dv.driver_string)); +strlcpy (dv.driver_string,UTS_RELEASE ,sizeof (dv.driver_string));i40e_aq_send_driver_version (&pf->hw, &dv,NULL ); }
@@ -15771,8 +15762,7 @@ static struct pci_driver i40e_driver = {**/ static int __init i40e_init_module (void ) { -pr_info ("%s: %s - version %s\n" , i40e_driver_name, - i40e_driver_string, i40e_driver_version_str); +pr_info ("%s: %s\n" , i40e_driver_name, i40e_driver_string);pr_info ("%s: %s\n" , i40e_driver_name, i40e_copyright);/* There is no need to throttle the number of active tasks because
drivers/net/ethernet/intel/iavf/iavf.h +0 -1
@@ -357,7 +357,6 @@ struct iavf_device {/* needed by iavf_ethtool.c */ extern char iavf_driver_name[]; -extern const char iavf_driver_version[];extern struct workqueue_struct *iavf_wq;int iavf_up (struct iavf_adapter *adapter);
drivers/net/ethernet/intel/iavf/iavf_ethtool.c +0 -1
@@ -560,7 +560,6 @@ static void iavf_get_drvinfo(struct net_device *netdev,struct iavf_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, iavf_driver_name,32 ); -strlcpy (drvinfo->version, iavf_driver_version,32 );strlcpy (drvinfo->fw_version,"N/A" ,4 );strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),32 ); drvinfo->n_priv_flags =IAVF_PRIV_FLAGS_STR_LEN ;
drivers/net/ethernet/intel/iavf/iavf_main.c +1 -13
@@ -21,16 +21,6 @@ char iavf_driver_name[] = "iavf";static const char iavf_driver_string[] ="Intel(R) Ethernet Adaptive Virtual Function Network Driver" ; -#define DRV_KERN "-k" - -#define DRV_VERSION_MAJOR 3 -#define DRV_VERSION_MINOR 2 -#define DRV_VERSION_BUILD 3 -#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ - __stringify(DRV_VERSION_MINOR) "." \ - __stringify(DRV_VERSION_BUILD) \ - DRV_KERN -const char iavf_driver_version[] =DRV_VERSION ;static const char iavf_copyright[] ="Copyright (c) 2013 - 2018 Intel Corporation." ;
@@ -57,7 +47,6 @@ MODULE_ALIAS("i40evf");MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Ethernet Adaptive Virtual Function Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );static const struct net_device_ops iavf_netdev_ops;struct workqueue_struct *iavf_wq;
@@ -3967,8 +3956,7 @@ static int __init iavf_init_module(void) {int ret; -pr_info ("iavf: %s - version %s\n" , iavf_driver_string, - iavf_driver_version); +pr_info ("iavf: %s\n" , iavf_driver_string);pr_info ("%s\n" , iavf_copyright);
drivers/net/ethernet/intel/iavf/iavf_type.h +0 -8
@@ -192,14 +192,6 @@ struct iavf_hw {char err_str[16 ]; }; -struct iavf_driver_version { -u8 major_version; -u8 minor_version; -u8 build_version; -u8 subbuild_version; -u8 driver_string[32 ]; -}; -/* RX Descriptors */ union iavf_16byte_rx_desc { struct {
drivers/net/ethernet/intel/ice/ice.h +0 -1
@@ -53,7 +53,6 @@#include "ice_sriov.h" #include "ice_xsk.h" -extern const char ice_drv_ver[];#define ICE_BAR0 0#define ICE_REQ_DESC_MULTIPLE 32#define ICE_MIN_NUM_DESC 64
drivers/net/ethernet/intel/ice/ice_ethtool.c +0 -1
@@ -174,7 +174,6 @@ ice_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)u16 oem_build;strscpy (drvinfo->driver,KBUILD_MODNAME ,sizeof (drvinfo->driver)); -strscpy (drvinfo->version, ice_drv_ver,sizeof (drvinfo->version));/* Display NVM version (from which the firmware version can be * determined) which contains more pertinent information.
drivers/net/ethernet/intel/ice/ice_main.c +7 -15
@@ -5,21 +5,14 @@#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/vermagic.h> #include "ice.h" #include "ice_base.h" #include "ice_lib.h" #include "ice_dcb_lib.h" #include "ice_dcb_nl.h" -#define DRV_VERSION_MAJOR 0 -#define DRV_VERSION_MINOR 8 -#define DRV_VERSION_BUILD 2 - -#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ - __stringify(DRV_VERSION_MINOR) "." \ - __stringify(DRV_VERSION_BUILD) "-k"#define DRV_SUMMARY "Intel(R) Ethernet Connection E800 Series Linux Driver" -const char ice_drv_ver[] =DRV_VERSION ;static const char ice_driver_string[] =DRV_SUMMARY ;static const char ice_copyright[] ="Copyright (c) 2018, Intel Corporation." ;
@@ -30,7 +23,6 @@ static const char ice_copyright[] = "Copyright (c) 2018, Intel Corporation.";MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );MODULE_FIRMWARE (ICE_DDP_PKG_FILE );static int debug =-1 ;
@@ -3116,11 +3108,11 @@ static enum ice_status ice_send_version(struct ice_pf *pf) {struct ice_driver_ver dv; - dv.major_ver =DRV_VERSION_MAJOR ; - dv.minor_ver =DRV_VERSION_MINOR ; - dv.build_ver =DRV_VERSION_BUILD ; + dv.major_ver =0xff ; + dv.minor_ver =0xff ; + dv.build_ver =0xff ; dv.subbuild_ver =0 ; -strscpy ((char *)dv.driver_string,DRV_VERSION , +strscpy ((char *)dv.driver_string,UTS_RELEASE ,sizeof (dv.driver_string));return ice_aq_send_driver_ver (&pf->hw, &dv,NULL ); }
@@ -3359,7 +3351,7 @@ ice_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent) err =ice_send_version (pf);if (err) {dev_err (dev,"probe failed sending driver version %s. error: %d\n" , - ice_drv_ver, err); +UTS_RELEASE , err); goto err_alloc_sw_unroll; }
@@ -3684,7 +3676,7 @@ static int __init ice_module_init(void) {int status; -pr_info ("%s - version %s\n" , ice_driver_string, ice_drv_ver); +pr_info ("%s\n" , ice_driver_string);pr_info ("%s\n" , ice_copyright); ice_wq =alloc_workqueue ("%s" ,WQ_MEM_RECLAIM ,0 ,KBUILD_MODNAME );
drivers/net/ethernet/intel/igb/igb.h +0 -1
@@ -642,7 +642,6 @@ enum igb_boards { };extern char igb_driver_name[]; -extern char igb_driver_version[];int igb_open (struct net_device *netdev);int igb_close (struct net_device *netdev);
drivers/net/ethernet/intel/igb/igb_ethtool.c +0 -1
@@ -850,7 +850,6 @@ static void igb_get_drvinfo(struct net_device *netdev,struct igb_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, igb_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, igb_driver_version,sizeof (drvinfo->version));/* EEPROM image version # is reported as firmware version # for * 82575 controllers
drivers/net/ethernet/intel/igb/igb_main.c +1 -10
@@ -38,12 +38,6 @@#include <linux/i2c.h> #include "igb.h" -#define MAJ 5 -#define MIN 6 -#define BUILD 0 -#define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \ -__stringify(BUILD) "-k" -enum queue_mode {QUEUE_MODE_STRICT_PRIORITY ,QUEUE_MODE_STREAM_RESERVATION ,
@@ -55,7 +49,6 @@ enum tx_queue_prio { };char igb_driver_name[] ="igb" ; -char igb_driver_version[] =DRV_VERSION ;static const char igb_driver_string[] ="Intel(R) Gigabit Ethernet Network Driver" ; static const char igb_copyright[] =
@@ -240,7 +233,6 @@ static struct pci_driver igb_driver = {MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Gigabit Ethernet Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)static int debug =-1 ;
@@ -666,8 +658,7 @@ static int __init igb_init_module(void) {int ret; -pr_info ("%s - version %s\n" , - igb_driver_string, igb_driver_version); +pr_info ("%s\n" , igb_driver_string);pr_info ("%s\n" , igb_copyright);#ifdef CONFIG_IGB_DCA
drivers/net/ethernet/intel/igbvf/ethtool.c +0 -2
@@ -170,8 +170,6 @@ static void igbvf_get_drvinfo(struct net_device *netdev,struct igbvf_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, igbvf_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, igbvf_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),sizeof (drvinfo->bus_info)); }
drivers/net/ethernet/intel/igbvf/igbvf.h +0 -1
@@ -281,7 +281,6 @@ enum igbvf_state_t { };extern char igbvf_driver_name[]; -extern const char igbvf_driver_version[];void igbvf_check_options (struct igbvf_adapter *);void igbvf_set_ethtool_ops (struct net_device *);
drivers/net/ethernet/intel/igbvf/netdev.c +1 -4
@@ -24,9 +24,7 @@#include "igbvf.h" -#define DRV_VERSION "2.4.0-k"char igbvf_driver_name[] ="igbvf" ; -const char igbvf_driver_version[] =DRV_VERSION ;static const char igbvf_driver_string[] ="Intel(R) Gigabit Virtual Function Network Driver" ; static const char igbvf_copyright[] =
@@ -2987,7 +2985,7 @@ static int __init igbvf_init_module(void) {int ret; -pr_info ("%s - version %s\n" , igbvf_driver_string, igbvf_driver_version); +pr_info ("%s\n" , igbvf_driver_string);pr_info ("%s\n" , igbvf_copyright); ret =pci_register_driver (&igbvf_driver);
@@ -3011,6 +3009,5 @@ module_exit(igbvf_exit_module);MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Gigabit Virtual Function Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );/* netdev.c */
drivers/net/ethernet/intel/igc/igc.h +0 -1
@@ -238,7 +238,6 @@ void igc_rings_dump(struct igc_adapter *adapter);void igc_regs_dump (struct igc_adapter *adapter);extern char igc_driver_name[]; -extern char igc_driver_version[];#define IGC_REGS_LEN 740
drivers/net/ethernet/intel/igc/igc_ethtool.c +0 -1
@@ -129,7 +129,6 @@ static void igc_get_drvinfo(struct net_device *netdev,struct igc_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, igc_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, igc_driver_version,sizeof (drvinfo->version));/* add fw_version here */ strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
drivers/net/ethernet/intel/igc/igc_main.c +1 -6
@@ -17,7 +17,6 @@#include "igc_hw.h" #include "igc_tsn.h" -#define DRV_VERSION "0.0.1-k"#define DRV_SUMMARY "Intel(R) 2.5G Ethernet Linux Driver"#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)
@@ -27,12 +26,10 @@ static int debug = -1;MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );module_param (debug, int,0 );MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)" );char igc_driver_name[] ="igc" ; -char igc_driver_version[] =DRV_VERSION ;static const char igc_driver_string[] =DRV_SUMMARY ;static const char igc_copyright[] ="Copyright(c) 2018 Intel Corporation." ;
@@ -5444,9 +5441,7 @@ static int __init igc_init_module(void) {int ret; -pr_info ("%s - version %s\n" , - igc_driver_string, igc_driver_version); - +pr_info ("%s\n" , igc_driver_string);pr_info ("%s\n" , igc_copyright); ret =pci_register_driver (&igc_driver);
drivers/net/ethernet/intel/ixgb/ixgb.h +0 -1
@@ -163,7 +163,6 @@ enum ixgb_state_t {void ixgb_check_options (struct ixgb_adapter *adapter);void ixgb_set_ethtool_ops (struct net_device *netdev);extern char ixgb_driver_name[]; -extern const char ixgb_driver_version[];void ixgb_set_speed_duplex (struct net_device *netdev);
drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c +0 -2
@@ -458,8 +458,6 @@ ixgb_get_drvinfo(struct net_device *netdev,strlcpy (drvinfo->driver, ixgb_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, ixgb_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),sizeof (drvinfo->bus_info)); }
drivers/net/ethernet/intel/ixgb/ixgb_main.c +1 -5
@@ -9,9 +9,6 @@char ixgb_driver_name[] ="ixgb" ;static char ixgb_driver_string[] ="Intel(R) PRO/10GbE Network Driver" ; -#define DRIVERNAPI "-NAPI" -#define DRV_VERSION "1.0.135-k2" DRIVERNAPI -const char ixgb_driver_version[] =DRV_VERSION ;static const char ixgb_copyright[] ="Copyright (c) 1999-2008 Intel Corporation." ;#define IXGB_CB_LENGTH 256
@@ -103,7 +100,6 @@ static struct pci_driver ixgb_driver = {MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/10GbE Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)static int debug =-1 ;
@@ -120,7 +116,7 @@ MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");static int __init ixgb_init_module (void ) { -pr_info ("%s - version %s\n" , ixgb_driver_string, ixgb_driver_version); +pr_info ("%s\n" , ixgb_driver_string);pr_info ("%s\n" , ixgb_copyright);return pci_register_driver (&ixgb_driver);
drivers/net/ethernet/intel/ixgbe/ixgbe.h +0 -1
@@ -847,7 +847,6 @@ extern const struct dcbnl_rtnl_ops ixgbe_dcbnl_ops;#endif extern char ixgbe_driver_name[]; -extern const char ixgbe_driver_version[];#ifdef IXGBE_FCOE extern char ixgbe_default_device_descr[];#endif /* IXGBE_FCOE */
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +0 -2
@@ -1004,8 +1004,6 @@ static void ixgbe_get_drvinfo(struct net_device *netdev,struct ixgbe_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, ixgbe_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, ixgbe_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->fw_version, adapter->eeprom_id,sizeof (drvinfo->fw_version));
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c +2 -1
@@ -5,6 +5,7 @@#include <linux/if_ether.h> #include <linux/gfp.h> #include <linux/if_vlan.h> +#include <linux/vermagic.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_device.h> #include <scsi/fc/fc_fs.h>
@@ -1001,7 +1002,7 @@ int ixgbe_fcoe_get_hbainfo(struct net_device *netdev,sizeof (info->driver_version),"%s v%s" , ixgbe_driver_name, - ixgbe_driver_version); + UTS_RELEASE);/* Firmware Version */ strlcpy (info->firmware_version, adapter->eeprom_id,sizeof (info->firmware_version));
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +4 -6
@@ -28,6 +28,7 @@#include <linux/bpf_trace.h> #include <linux/atomic.h> #include <linux/numa.h> +#include <linux/vermagic.h> #include <scsi/fc/fc_fcoe.h> #include <net/udp_tunnel.h> #include <net/pkt_cls.h>
@@ -56,8 +57,6 @@ char ixgbe_default_device_descr[] =static char ixgbe_default_device_descr[] ="Intel(R) 10 Gigabit Network Connection" ;#endif -#define DRV_VERSION "5.1.0-k" -const char ixgbe_driver_version[] =DRV_VERSION ;static const char ixgbe_copyright[] ="Copyright (c) 1999-2016 Intel Corporation." ;
@@ -165,7 +164,6 @@ MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) 10 Gigabit PCI Express Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );static struct workqueue_struct *ixgbe_wq;
@@ -11160,8 +11158,8 @@ static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent)*/ if (hw->mac.ops.set_fw_drv_ver) hw->mac.ops.set_fw_drv_ver (hw,0xFF ,0xFF ,0xFF ,0xFF , -sizeof (ixgbe_driver_version) -1 , - ixgbe_driver_version); +sizeof (UTS_RELEASE ) -1 , +UTS_RELEASE );/* add san mac addr to netdev */ ixgbe_add_sanmac_netdev (netdev);
@@ -11518,7 +11516,7 @@ static struct pci_driver ixgbe_driver = {static int __init ixgbe_init_module (void ) {int ret; -pr_info ("%s - version %s\n" , ixgbe_driver_string, ixgbe_driver_version); +pr_info ("%s\n" , ixgbe_driver_string);pr_info ("%s\n" , ixgbe_copyright); ixgbe_wq =create_singlethread_workqueue (ixgbe_driver_name);
drivers/net/ethernet/intel/ixgbevf/ethtool.c +0 -2
@@ -218,8 +218,6 @@ static void ixgbevf_get_drvinfo(struct net_device *netdev,struct ixgbevf_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, ixgbevf_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, ixgbevf_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),sizeof (drvinfo->bus_info));
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +0 -1
@@ -440,7 +440,6 @@ extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops;/* needed by ethtool.c */ extern const char ixgbevf_driver_name[]; -extern const char ixgbevf_driver_version[];int ixgbevf_open (struct net_device *netdev);int ixgbevf_close (struct net_device *netdev);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +1 -6
@@ -38,8 +38,6 @@ const char ixgbevf_driver_name[] = "ixgbevf";static const char ixgbevf_driver_string[] ="Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver" ; -#define DRV_VERSION "4.1.0-k" -const char ixgbevf_driver_version[] =DRV_VERSION ;static char ixgbevf_copyright[] ="Copyright (c) 2009 - 2018 Intel Corporation." ;
@@ -81,7 +79,6 @@ MODULE_DEVICE_TABLE(pci, ixgbevf_pci_tbl);MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) 10 Gigabit Virtual Function Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)static int debug =-1 ;
@@ -4893,9 +4890,7 @@ static struct pci_driver ixgbevf_driver = {**/ static int __init ixgbevf_init_module (void ) { -pr_info ("%s - version %s\n" , ixgbevf_driver_string, - ixgbevf_driver_version); - +pr_info ("%s\n" , ixgbevf_driver_string);pr_info ("%s\n" , ixgbevf_copyright); ixgbevf_wq =create_singlethread_workqueue (ixgbevf_driver_name);if (!ixgbevf_wq) {
Signature · 1 line
2.24.1
Allan
PATCH v2 1/1 net/intel: remove driver versions from Intel drivers
Quoted 11 lines
-----Original Message-----
From: Kirsher, Jeffrey T <[email protected]>
Sent: Tuesday, March 10, 2020 4:23 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Kirsher, Jeffrey T <[email protected]>; Allan, Bruce W <[email protected]>; Brandeburg, Jesse <[email protected]>; Loktionov, Aleksandr <[email protected]>; Liedtke, Kevin D <[email protected]>; Rowden, Aaron F <[email protected]>; Keller, Jacob E <[email protected]>
Subject: [next-queue v2] net/intel: remove driver versions from Intel drivers
Quoted 3 lines
As with other networking drivers, remove the unnecessary driver version from the Intel drivers. The ethtool driver information and module version will then report the kernel version instead.
The version is still logged in the kernel logfile when the driver is loaded (at least it is in ice). Is that still needed/wanted? Seems redundant to me.
Quoted 4 lines
For ixgbe, i40e and ice drivers, the driver passes the driver version to the firmware to confirm that we are up and running. So we now pass the value of
UTS_RELEASEto the firmware.
The driver version is sent to the firmware not just to confirm the driver is active. With ice, the firmware receives from the driver the major, minor and build version numbers along with a driver_version string and sends the driver_version string to the BMC. Please explain in the commit description what the BMC does with the driver_version string and why setting the major, minor and build versions to 0xff is appropriate.
Quoted 993 lines
CC Bruce Allan <[email protected]>CC Jesse Brandeburg <[email protected]>CC Alek Loktionov <[email protected]>CC Kevin Liedtke <[email protected]>CC Aaron Rowden <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>Co-developed-by Jacob Keller <[email protected]>---
v2: fixed Co-developed-by: tagdrivers/net/ethernet/intel/e100.c | 6 +---- drivers/net/ethernet/intel/e1000/e1000.h | 1 - .../net/ethernet/intel/e1000/e1000_ethtool.c | 2 -- drivers/net/ethernet/intel/e1000/e1000_main.c | 5 +---- drivers/net/ethernet/intel/e1000e/e1000.h | 1 - drivers/net/ethernet/intel/e1000e/ethtool.c | 2 -- drivers/net/ethernet/intel/e1000e/netdev.c | 8 +------ drivers/net/ethernet/intel/fm10k/fm10k.h | 1 - .../net/ethernet/intel/fm10k/fm10k_ethtool.c | 2 -- drivers/net/ethernet/intel/fm10k/fm10k_main.c | 5 +---- drivers/net/ethernet/intel/i40e/i40e.h | 1 - .../net/ethernet/intel/i40e/i40e_ethtool.c | 2 -- drivers/net/ethernet/intel/i40e/i40e_main.c | 22 +++++-------------- drivers/net/ethernet/intel/iavf/iavf.h | 1 - .../net/ethernet/intel/iavf/iavf_ethtool.c | 1 - drivers/net/ethernet/intel/iavf/iavf_main.c | 14 +----------- drivers/net/ethernet/intel/iavf/iavf_type.h | 8 ------- drivers/net/ethernet/intel/ice/ice.h | 1 - drivers/net/ethernet/intel/ice/ice_ethtool.c | 1 - drivers/net/ethernet/intel/ice/ice_main.c | 22 ++++++------------- drivers/net/ethernet/intel/igb/igb.h | 1 - drivers/net/ethernet/intel/igb/igb_ethtool.c | 1 - drivers/net/ethernet/intel/igb/igb_main.c | 11 +--------- drivers/net/ethernet/intel/igbvf/ethtool.c | 2 -- drivers/net/ethernet/intel/igbvf/igbvf.h | 1 - drivers/net/ethernet/intel/igbvf/netdev.c | 5 +---- drivers/net/ethernet/intel/igc/igc.h | 1 - drivers/net/ethernet/intel/igc/igc_ethtool.c | 1 - drivers/net/ethernet/intel/igc/igc_main.c | 7 +----- drivers/net/ethernet/intel/ixgb/ixgb.h | 1 - .../net/ethernet/intel/ixgb/ixgb_ethtool.c | 2 -- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 6 +---- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 1 - .../net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 2 -- drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 3 ++- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 10 ++++----- drivers/net/ethernet/intel/ixgbevf/ethtool.c | 2 -- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 1 - .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 7 +----- 39 files changed, 29 insertions(+), 142 deletions(-)drivers/net/ethernet/intel/e100.c +0
-2@@ -150,8 +150,6 @@#define DRV_NAME "e100" -#define DRV_EXT "-NAPI" -#define DRV_VERSION "3.5.24-k2"DRV_EXT#define DRV_DESCRIPTION "Intel(R) PRO/100 Network Driver"#define DRV_COPYRIGHT "Copyright(c) 1999-2006 IntelCorporation"
drivers/net/ethernet/intel/e100.c +0
-2@@ -165,7 +163,6 @@MODULE_DESCRIPTION (DRV_DESCRIPTION );MODULE_AUTHOR (DRV_COPYRIGHT );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );MODULE_FIRMWARE (FIRMWARE_D101M );MODULE_FIRMWARE (FIRMWARE_D101S );MODULE_FIRMWARE (FIRMWARE_D102E );@@ -2430,7 +2427,6 @@ static void e100_get_drvinfo(struct net_device *netdev, {struct nic *nic =netdev_priv (netdev);strlcpy (info->driver,DRV_NAME ,sizeof (info->driver)); -strlcpy (info->version,DRV_VERSION ,sizeof (info->version));strlcpy (info->bus_info,pci_name (nic->pdev),sizeof (info->bus_info));}
drivers/net/ethernet/intel/e100.c +1
-1@@ -3167,7 +3163,7 @@ static struct pci_driver e100_driver = {static int __init e100_init_module (void ) {if (((1 << debug) -1 ) &NETIF_MSG_DRV ) { -pr_info ("%s, %s\n" ,DRV_DESCRIPTION ,DRV_VERSION ); +pr_info ("%s\n" ,DRV_DESCRIPTION );pr_info ("%s\n" ,DRV_COPYRIGHT ); }return pci_register_driver (&e100_driver);drivers/net/ethernet/intel/e1000/e1000.h +0
-1@@ -330,7 +330,6 @@ struct net_device *e1000_get_hw_dev(struct e1000_hw *hw); dev_err(&adapter->pdev->dev, format, ## arg) extern char e1000_driver_name[]; -extern const char e1000_driver_version[]; int e1000_open(struct net_device *netdev);int
e1000_close(struct net_device *netdev);drivers/net/ethernet/intel/e1000/e1000_ethtool.c +0
-2@@ -533,8 +533,6 @@ static void e1000_get_drvinfo(struct net_device *netdev,strlcpy (drvinfo->driver, e1000_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, e1000_driver_version, -sizeof (drvinfo->version)); strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),drivers/net/ethernet/intel/e1000/e1000_ethtool.c +0
-0sizeof(drvinfo->bus_info));drivers/net/ethernet/intel/e1000/e1000_main.c +0
-2@@ -10,8 +10,6 @@char e1000_driver_name[] ="e1000" ;static char e1000_driver_string[] ="Intel(R) PRO/1000 Network Driver" ; -#define DRV_VERSION "7.3.21-k8-NAPI" -const char e1000_driver_version[] =DRV_VERSION ; static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation.";/*
e1000_pci_tbl- PCI Device ID Tabledrivers/net/ethernet/intel/e1000/e1000_main.c +0
-1@@ -196,7 +194,6 @@ static struct pci_driver e1000_driver = {MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/1000 Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV |NETIF_MSG_PROBE |NETIF_MSG_LINK )static int debug = -1;
drivers/net/ethernet/intel/e1000/e1000_main.c +1
-1@@ -223,7 +220,7 @@ struct net_device *e1000_get_hw_dev(struct e1000_hw *hw)static int __init e1000_init_module (void ) {int ret; -pr_info ("%s - version %s\n" , e1000_driver_string, e1000_driver_version); +pr_info ("%s\n" , e1000_driver_string);drivers/net/ethernet/intel/e1000/e1000_main.c +0
-0pr_info ("%s\n" , e1000_copyright);drivers/net/ethernet/intel/e1000e/e1000.h +0
-1@@ -460,7 +460,6 @@ enum latency_range { };extern char e1000e_driver_name[]; -extern const char e1000e_driver_version[];void e1000e_check_options (struct e1000_adapter *adapter);void e1000e_set_ethtool_ops (struct net_device *netdev);drivers/net/ethernet/intel/e1000e/ethtool.c +0
-2@@ -633,8 +633,6 @@ static void e1000_get_drvinfo(struct net_device *netdev, struct e1000_adapter *adapter = netdev_priv(netdev);strlcpy (drvinfo->driver, e1000e_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, e1000e_driver_version, -sizeof (drvinfo->version));/* EEPROM image version # is reported as firmware version # for drivers/net/ethernet/intel/e1000e/ethtool.c +0
-0* PCI-E controllers drivers/net/ethernet/intel/e1000e/netdev.c +0
-4@@ -28,11 +28,7 @@#include "e1000.h" -#define DRV_EXTRAVERSION "-k" - -#define DRV_VERSION "3.2.6" DRV_EXTRAVERSIONchar e1000e_driver_name[] ="e1000e" ; -const char e1000e_driver_version[] =DRV_VERSION ;#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV |NETIF_MSG_PROBE |NETIF_MSG_LINK )static int debug = -1;
drivers/net/ethernet/intel/e1000e/netdev.c +1
-3@@ -7803,8 +7799,7 @@ static struct pci_driver e1000_driver = {**/ static int __init e1000_init_module (void ) { -pr_info ("Intel(R) PRO/1000 Network Driver - %s\n" , - e1000e_driver_version); +pr_info ("Intel(R) PRO/1000 Network Driver\n" );pr_info ("Copyright(c) 1999 - 2015 Intel Corporation.\n" );return pci_register_driver (&e1000_driver);@@ -7826,6 +7821,5 @@ module_exit(e1000_exit_module);MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/1000 Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );/* netdev.c */ drivers/net/ethernet/intel/fm10k/fm10k.h +0
-1@@ -476,7 +476,6 @@ struct fm10k_cb {/* main */ extern char fm10k_driver_name[]; -extern const char fm10k_driver_version[];int fm10k_init_queueing_scheme (struct fm10k_intfc *interface);void fm10k_clear_queueing_scheme (struct fm10k_intfc *interface);__be16 fm10k_tx_encap_offload (struct sk_buff *skb);drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +0
-2@@ -449,8 +449,6 @@ static void fm10k_get_drvinfo(struct net_device *dev,strncpy (info->driver, fm10k_driver_name,sizeof (info->driver) -1 ); -strncpy (info->version, fm10k_driver_version, -sizeof (info->version) -1 );strncpy (info->bus_info,pci_name (interface->pdev),sizeof (info->bus_info) -1 ); }drivers/net/ethernet/intel/fm10k/fm10k_main.c +0
-1@@ -11,9 +11,7 @@#include "fm10k.h" -#define DRV_VERSION "0.27.1-k"#define DRV_SUMMARY "Intel(R) Ethernet Switch Host InterfaceDriver"
drivers/net/ethernet/intel/fm10k/fm10k_main.c +1
-3-const char fm10k_driver_version[] =DRV_VERSION ;char fm10k_driver_name[] ="fm10k" ;static const char fm10k_driver_string[] =DRV_SUMMARY ; static const char fm10k_copyright[] =@@ -22,7 +20,6 @@ static const char fm10k_copyright[] =MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );/* single workqueue for entire fm10k driver */ struct workqueue_struct *fm10k_workqueue;@@ -35,7 +32,7 @@ struct workqueue_struct *fm10k_workqueue;**/ static int __init fm10k_init_module (void ) { -pr_info ("%s - version %s\n" , fm10k_driver_string, fm10k_driver_version); +pr_info ("%s\n" , fm10k_driver_string);pr_info ("%s\n" , fm10k_copyright);drivers/net/ethernet/intel/fm10k/fm10k_main.c +0
-0/* create driver workqueue */ drivers/net/ethernet/intel/i40e/i40e.h +0
-1@@ -972,7 +972,6 @@ static inline void i40e_write_fd_input_set(structi40e_pf *pf, int i40e_up(struct i40e_vsi *vsi);void i40e_down (struct i40e_vsi *vsi);extern const char i40e_driver_name[]; -extern const char i40e_driver_version_str[];void i40e_do_reset_safe (struct i40e_pf *pf,u32 reset_flags);void i40e_do_reset (struct i40e_pf *pf,u32 reset_flags,bool lock_acquired);int
i40e_config_rss(struct i40e_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);drivers/net/ethernet/intel/i40e/i40e_ethtool.c +0
-2@@ -1893,8 +1893,6 @@ static void i40e_get_drvinfo(struct net_device *netdev, struct i40e_pf *pf = vsi->back;strlcpy (drvinfo->driver, i40e_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, i40e_driver_version_str, -sizeof (drvinfo->version));strlcpy (drvinfo->fw_version,i40e_nvm_version_str (&pf->hw),sizeof (drvinfo->fw_version));drivers/net/ethernet/intel/i40e/i40e_ethtool.c +0
-0strlcpy(drvinfo->bus_info, pci_name(pf->pdev),drivers/net/ethernet/intel/i40e/i40e_main.c +1
-9@@ -5,6 +5,7 @@#include <linux/of_net.h> #include <linux/pci.h> #include <linux/bpf.h> +#include <linux/vermagic.h> /* Local includes */ #include "i40e.h" @@ -23,15 +24,6 @@ const char i40e_driver_name[] = "i40e";static const char i40e_driver_string[] ="Intel(R) Ethernet Connection XL710 Network Driver" ; -#define DRV_KERN "-k" - -#define DRV_VERSION_MAJOR 2 -#define DRV_VERSION_MINOR 8 -#define DRV_VERSION_BUILD 20 -#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ - __stringify(DRV_VERSION_MINOR) "." \ - __stringify(DRV_VERSION_BUILD) DRV_KERN -const char i40e_driver_version_str[] =DRV_VERSION ; static const char i40e_copyright[] = "Copyright (c) 2013 - 2019 Intel Corporation.";/* a bit of forward declarations */
drivers/net/ethernet/intel/i40e/i40e_main.c +0
-0@@ -101,7 +93,6 @@ MODULE_PARM_DESC(debug, "Debug level(0=none,...,16=all), Debug mask (0x8XXXXXXX
MODULE_AUTHOR("Intel Corporation, <e1000-
devel at lists.sourceforge.net>");
MODULE_DESCRIPTION("Intel(R) Ethernet Connection XL710 Network
Driver");
MODULE_LICENSE("GPL v2");drivers/net/ethernet/intel/i40e/i40e_main.c +5
-7-MODULE_VERSION (DRV_VERSION );static struct workqueue_struct *i40e_wq;@@ -9840,11 +9831,11 @@ static void i40e_send_version(struct i40e_pf *pf) {struct i40e_driver_version dv; - dv.major_version =DRV_VERSION_MAJOR ; - dv.minor_version =DRV_VERSION_MINOR ; - dv.build_version =DRV_VERSION_BUILD ; + dv.major_version =0xff ; + dv.minor_version =0xff ; + dv.build_version =0xff ; dv.subbuild_version =0 ; -strlcpy (dv.driver_string,DRV_VERSION ,sizeof (dv.driver_string)); +strlcpy (dv.driver_string,UTS_RELEASE ,sizeof (dv.driver_string));i40e_aq_send_driver_version (&pf->hw, &dv,NULL ); }@@ -15771,8 +15762,7 @@ static struct pci_driver i40e_driver = {**/ static int __init i40e_init_module (void ) { -pr_info ("%s: %s - version %s\n" , i40e_driver_name, - i40e_driver_string, i40e_driver_version_str); +pr_info ("%s: %s\n" , i40e_driver_name, i40e_driver_string);pr_info ("%s: %s\n" , i40e_driver_name, i40e_copyright);/* There is no need to throttle the number of active tasks because drivers/net/ethernet/intel/iavf/iavf.h +0
-1@@ -357,7 +357,6 @@ struct iavf_device {/* needed by iavf_ethtool.c */ extern char iavf_driver_name[]; -extern const char iavf_driver_version[];extern struct workqueue_struct *iavf_wq;int iavf_up (struct iavf_adapter *adapter);drivers/net/ethernet/intel/iavf/iavf_ethtool.c +0
-1@@ -560,7 +560,6 @@ static void iavf_get_drvinfo(struct net_device *netdev,struct iavf_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, iavf_driver_name,32 ); -strlcpy (drvinfo->version, iavf_driver_version,32 );strlcpy (drvinfo->fw_version,"N/A" ,4 );strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),32 ); drvinfo->n_priv_flags =IAVF_PRIV_FLAGS_STR_LEN ;drivers/net/ethernet/intel/iavf/iavf_main.c +0
-11@@ -21,16 +21,6 @@ char iavf_driver_name[] = "iavf";static const char iavf_driver_string[] ="Intel(R) Ethernet Adaptive Virtual Function Network Driver" ; -#define DRV_KERN "-k" - -#define DRV_VERSION_MAJOR 3 -#define DRV_VERSION_MINOR 2 -#define DRV_VERSION_BUILD 3 -#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ - __stringify(DRV_VERSION_MINOR) "." \ - __stringify(DRV_VERSION_BUILD) \ - DRV_KERN -const char iavf_driver_version[] =DRV_VERSION ;static const char iavf_copyright[] ="Copyright (c) 2013 - 2018 Intel Corporation." ;@@ -57,7 +47,6 @@ MODULE_ALIAS("i40evf");MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) Ethernet Adaptive Virtual Function Network Driver");MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );static const struct net_device_ops iavf_netdev_ops;struct
workqueue_struct*iavf_wq;drivers/net/ethernet/intel/iavf/iavf_main.c +1
-2@@ -3967,8 +3956,7 @@ static int __init iavf_init_module(void) {int ret; -pr_info ("iavf: %s - version %s\n" , iavf_driver_string, - iavf_driver_version); +pr_info ("iavf: %s\n" , iavf_driver_string);pr_info ("%s\n" , iavf_copyright);drivers/net/ethernet/intel/iavf/iavf_type.h +0
-8@@ -192,14 +192,6 @@ struct iavf_hw {char err_str[16 ]; }; -struct iavf_driver_version { -u8 major_version; -u8 minor_version; -u8 build_version; -u8 subbuild_version; -u8 driver_string[32 ]; -}; -/* RX Descriptors */ union iavf_16byte_rx_desc { struct {drivers/net/ethernet/intel/ice/ice.h +0
-1@@ -53,7 +53,6 @@#include "ice_sriov.h" #include "ice_xsk.h" -extern const char ice_drv_ver[];#define ICE_BAR0 0#define ICE_REQ_DESC_MULTIPLE 32#define ICE_MIN_NUM_DESC 64drivers/net/ethernet/intel/ice/ice_ethtool.c +0
-1@@ -174,7 +174,6 @@ ice_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) u16 oem_build;strscpy (drvinfo->driver,KBUILD_MODNAME ,sizeof (drvinfo->driver)); -strscpy (drvinfo->version, ice_drv_ver,sizeof (drvinfo->version));/* Display NVM version (from which the firmware version can be drivers/net/ethernet/intel/ice/ice_ethtool.c +0
-0* determined) which contains more pertinent information. drivers/net/ethernet/intel/ice/ice_main.c +1
-7@@ -5,21 +5,14 @@#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/vermagic.h> #include "ice.h" #include "ice_base.h" #include "ice_lib.h" #include "ice_dcb_lib.h" #include "ice_dcb_nl.h" -#define DRV_VERSION_MAJOR 0 -#define DRV_VERSION_MINOR 8 -#define DRV_VERSION_BUILD 2 - -#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ - __stringify(DRV_VERSION_MINOR) "." \ - __stringify(DRV_VERSION_BUILD) "-k"#define DRV_SUMMARY "Intel(R) Ethernet Connection E800 SeriesLinux Driver"
drivers/net/ethernet/intel/ice/ice_main.c +0
-2-const char ice_drv_ver[] =DRV_VERSION ;static const char ice_driver_string[] =DRV_SUMMARY ;static const char ice_copyright[] ="Copyright (c) 2018, Intel Corporation." ;@@ -30,7 +23,6 @@ static const char ice_copyright[] = "Copyright (c) 2018, Intel Corporation.";MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );MODULE_FIRMWARE (ICE_DDP_PKG_FILE );static int debug = -1;
drivers/net/ethernet/intel/ice/ice_main.c +4
-4@@ -3116,11 +3108,11 @@ static enum ice_status ice_send_version(struct ice_pf *pf) {struct ice_driver_ver dv; - dv.major_ver =DRV_VERSION_MAJOR ; - dv.minor_ver =DRV_VERSION_MINOR ; - dv.build_ver =DRV_VERSION_BUILD ; + dv.major_ver =0xff ; + dv.minor_ver =0xff ; + dv.build_ver =0xff ; dv.subbuild_ver =0 ; -strscpy ((char *)dv.driver_string,DRV_VERSION , +strscpy ((char *)dv.driver_string,UTS_RELEASE ,sizeof (dv.driver_string));return ice_aq_send_driver_ver (&pf->hw, &dv,NULL );}
drivers/net/ethernet/intel/ice/ice_main.c +1
-1@@ -3359,7 +3351,7 @@ ice_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent) err =ice_send_version (pf);if (err) { dev_err(dev, "probe failed sending driver version %s. error: %d\n", - ice_drv_ver, err); + UTS_RELEASE, err); goto err_alloc_sw_unroll;drivers/net/ethernet/intel/ice/ice_main.c +1
-1}@@ -3684,7 +3676,7 @@ static int __init ice_module_init(void) {int status; -pr_info ("%s - version %s\n" , ice_driver_string, ice_drv_ver); +pr_info ("%s\n" , ice_driver_string);pr_info ("%s\n" , ice_copyright); ice_wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 0,
KBUILD_MODNAME);drivers/net/ethernet/intel/igb/igb.h +0
-1@@ -642,7 +642,6 @@ enum igb_boards { };extern char igb_driver_name[]; -extern char igb_driver_version[];int igb_open (struct net_device *netdev);int igb_close (struct net_device *netdev);drivers/net/ethernet/intel/igb/igb_ethtool.c +0
-1@@ -850,7 +850,6 @@ static void igb_get_drvinfo(struct net_device *netdev,struct igb_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, igb_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, igb_driver_version,sizeof (drvinfo->version));/* EEPROM image version # is reported as firmware version # for * 82575 controllers drivers/net/ethernet/intel/igb/igb_main.c +0
-8@@ -38,12 +38,6 @@#include <linux/i2c.h> #include "igb.h" -#define MAJ 5 -#define MIN 6 -#define BUILD 0 -#define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \ -__stringify(BUILD) "-k" -enum queue_mode {QUEUE_MODE_STRICT_PRIORITY ,QUEUE_MODE_STREAM_RESERVATION ,@@ -55,7 +49,6 @@ enum tx_queue_prio { };char igb_driver_name[] ="igb" ; -char igb_driver_version[] =DRV_VERSION ;static const char igb_driver_string[] ="Intel(R) Gigabit Ethernet Network Driver" ; static const char igb_copyright[] =@@ -240,7 +233,6 @@ static struct pci_driver igb_driver = { MODULE_AUTHOR("Intel Corporation, <e1000- devel at lists.sourceforge.net>"); MODULE_DESCRIPTION("Intel(R) Gigabit Ethernet Network Driver");MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)
static int debug = -1;drivers/net/ethernet/intel/igb/igb_main.c +1
-2@@ -666,8 +658,7 @@ static int __init igb_init_module(void) {int ret; -pr_info ("%s - version %s\n" , - igb_driver_string, igb_driver_version); +pr_info ("%s\n" , igb_driver_string);pr_info ("%s\n" , igb_copyright);#ifdef CONFIG_IGB_DCA drivers/net/ethernet/intel/igbvf/ethtool.c +0
-2@@ -170,8 +170,6 @@ static void igbvf_get_drvinfo(struct net_device *netdev, struct igbvf_adapter *adapter = netdev_priv(netdev);strlcpy (drvinfo->driver, igbvf_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, igbvf_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),sizeof (drvinfo->bus_info));}
drivers/net/ethernet/intel/igbvf/igbvf.h +0
-1@@ -281,7 +281,6 @@ enum igbvf_state_t { };extern char igbvf_driver_name[]; -extern const char igbvf_driver_version[];void igbvf_check_options (struct igbvf_adapter *);void igbvf_set_ethtool_ops (struct net_device *);drivers/net/ethernet/intel/igbvf/netdev.c +1
-4@@ -24,9 +24,7 @@#include "igbvf.h" -#define DRV_VERSION "2.4.0-k"char igbvf_driver_name[] ="igbvf" ; -const char igbvf_driver_version[] =DRV_VERSION ;static const char igbvf_driver_string[] ="Intel(R) Gigabit Virtual Function Network Driver" ; static const char igbvf_copyright[] =@@ -2987,7 +2985,7 @@ static int __init igbvf_init_module(void) {int ret; -pr_info ("%s - version %s\n" , igbvf_driver_string, igbvf_driver_version); +pr_info ("%s\n" , igbvf_driver_string);pr_info ("%s\n" , igbvf_copyright); ret =pci_register_driver (&igbvf_driver);@@ -3011,6 +3009,5 @@ module_exit(igbvf_exit_module); MODULE_AUTHOR("Intel Corporation, <e1000- devel at lists.sourceforge.net>"); MODULE_DESCRIPTION("Intel(R) Gigabit Virtual Function Network Driver");MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );/*
netdev.c*/drivers/net/ethernet/intel/igc/igc.h +0
-1@@ -238,7 +238,6 @@ void igc_rings_dump(struct igc_adapter *adapter);void igc_regs_dump (struct igc_adapter *adapter);extern char igc_driver_name[]; -extern char igc_driver_version[];#define IGC_REGS_LEN 740drivers/net/ethernet/intel/igc/igc_ethtool.c +0
-1@@ -129,7 +129,6 @@ static void igc_get_drvinfo(struct net_device *netdev,struct igc_adapter *adapter =netdev_priv (netdev);strlcpy (drvinfo->driver, igc_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, igc_driver_version,sizeof (drvinfo->version));/* add fw_version here */ strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),drivers/net/ethernet/intel/igc/igc_main.c +0
-1@@ -17,7 +17,6 @@#include "igc_hw.h" #include "igc_tsn.h" -#define DRV_VERSION "0.0.1-k"#define DRV_SUMMARY "Intel(R) 2.5G Ethernet Linux Driver"#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV | NETIF_MSG_PROBE |
NETIF_MSG_LINK)drivers/net/ethernet/intel/igc/igc_main.c +1
-5@@ -27,12 +26,10 @@ static int debug = -1;MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );module_param (debug, int,0 );MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)" );char igc_driver_name[] ="igc" ; -char igc_driver_version[] =DRV_VERSION ;static const char igc_driver_string[] =DRV_SUMMARY ;static const char igc_copyright[] ="Copyright(c) 2018 Intel Corporation." ;@@ -5444,9 +5441,7 @@ static int __init igc_init_module(void) {int ret; -pr_info ("%s - version %s\n" , - igc_driver_string, igc_driver_version); - +pr_info ("%s\n" , igc_driver_string);pr_info ("%s\n" , igc_copyright); ret =pci_register_driver (&igc_driver);drivers/net/ethernet/intel/ixgb/ixgb.h +0
-1@@ -163,7 +163,6 @@ enum ixgb_state_t {void ixgb_check_options (struct ixgb_adapter *adapter);void ixgb_set_ethtool_ops (struct net_device *netdev);extern char ixgb_driver_name[]; -extern const char ixgb_driver_version[];void ixgb_set_speed_duplex (struct net_device *netdev);drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c +0
-2@@ -458,8 +458,6 @@ ixgb_get_drvinfo(struct net_device *netdev,strlcpy (drvinfo->driver, ixgb_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, ixgb_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),sizeof (drvinfo->bus_info)); }drivers/net/ethernet/intel/ixgb/ixgb_main.c +0
-3@@ -9,9 +9,6 @@char ixgb_driver_name[] ="ixgb" ;static char ixgb_driver_string[] ="Intel(R) PRO/10GbE Network Driver" ; -#define DRIVERNAPI "-NAPI" -#define DRV_VERSION "1.0.135-k2" DRIVERNAPI -const char ixgb_driver_version[] =DRV_VERSION ; static const char ixgb_copyright[] = "Copyright (c) 1999-2008 Intel Corporation.";#define
IXGB_CB_LENGTH256drivers/net/ethernet/intel/ixgb/ixgb_main.c +0
-1@@ -103,7 +100,6 @@ static struct pci_driver ixgb_driver = {MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) PRO/10GbE Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV |NETIF_MSG_PROBE |NETIF_MSG_LINK )static int debug = -1;
drivers/net/ethernet/intel/ixgb/ixgb_main.c +1
-1@@ -120,7 +116,7 @@ MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");static int __init ixgb_init_module (void ) { -pr_info ("%s - version %s\n" , ixgb_driver_string, ixgb_driver_version); +pr_info ("%s\n" , ixgb_driver_string);pr_info ("%s\n" , ixgb_copyright);drivers/net/ethernet/intel/ixgb/ixgb_main.c +0
-0return pci_register_driver (&ixgb_driver);drivers/net/ethernet/intel/ixgbe/ixgbe.h +0
-1@@ -847,7 +847,6 @@ extern const struct dcbnl_rtnl_ops ixgbe_dcbnl_ops;#endif extern char ixgbe_driver_name[]; -extern const char ixgbe_driver_version[];#ifdef IXGBE_FCOE extern char ixgbe_default_device_descr[];#endif /* IXGBE_FCOE */ drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +0
-2@@ -1004,8 +1004,6 @@ static void ixgbe_get_drvinfo(struct net_device *netdev, struct ixgbe_adapter *adapter = netdev_priv(netdev);strlcpy (drvinfo->driver, ixgbe_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, ixgbe_driver_version, -sizeof (drvinfo->version)); strlcpy(drvinfo->fw_version, adapter->eeprom_id,drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +0
-0sizeof(drvinfo->fw_version));drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c +2
-1@@ -5,6 +5,7 @@#include <linux/if_ether.h> #include <linux/gfp.h> #include <linux/if_vlan.h> +#include <linux/vermagic.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_device.h> #include <scsi/fc/fc_fs.h> @@ -1001,7 +1002,7 @@ int ixgbe_fcoe_get_hbainfo(struct net_device *netdev,sizeof (info->driver_version),"%s v%s" , ixgbe_driver_name, - ixgbe_driver_version); + UTS_RELEASE);/* Firmware Version */ strlcpy(info->firmware_version, adapter->eeprom_id,drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c +0
-0sizeof(info->firmware_version));drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +3
-5@@ -28,6 +28,7 @@#include <linux/bpf_trace.h> #include <linux/atomic.h> #include <linux/numa.h> +#include <linux/vermagic.h> #include <scsi/fc/fc_fcoe.h> #include <net/udp_tunnel.h> #include <net/pkt_cls.h> @@ -56,8 +57,6 @@ char ixgbe_default_device_descr[] =static char ixgbe_default_device_descr[] ="Intel(R) 10 Gigabit Network Connection" ;#endif -#define DRV_VERSION "5.1.0-k" -const char ixgbe_driver_version[] =DRV_VERSION ;static const char ixgbe_copyright[] ="Copyright (c) 1999-2016 Intel Corporation." ;@@ -165,7 +164,6 @@ MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) 10 Gigabit PCI Express Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );static struct workqueue_struct *ixgbe_wq;@@ -11160,8 +11158,8 @@ static int ixgbe_probe(struct pci_dev *pdev, conststruct pci_device_id *ent) */ if (hw->mac.ops.set_fw_drv_ver) hw->mac.ops.set_fw_drv_ver (hw,0xFF ,0xFF ,0xFF ,0xFF , -sizeof (ixgbe_driver_version) -1 , - ixgbe_driver_version); +sizeof (UTS_RELEASE ) -1 , +UTS_RELEASE );/* add san mac addr to netdev */ drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +1
-1ixgbe_add_sanmac_netdev (netdev);@@ -11518,7 +11516,7 @@ static struct pci_driver ixgbe_driver = {static int __init ixgbe_init_module (void ) {int ret; -pr_info ("%s - version %s\n" , ixgbe_driver_string, ixgbe_driver_version); +pr_info ("%s\n" , ixgbe_driver_string);pr_info ("%s\n" , ixgbe_copyright); ixgbe_wq =create_singlethread_workqueue (ixgbe_driver_name);drivers/net/ethernet/intel/ixgbevf/ethtool.c +0
-2@@ -218,8 +218,6 @@ static void ixgbevf_get_drvinfo(struct net_device *netdev, struct ixgbevf_adapter *adapter = netdev_priv(netdev);strlcpy (drvinfo->driver, ixgbevf_driver_name,sizeof (drvinfo->driver)); -strlcpy (drvinfo->version, ixgbevf_driver_version, -sizeof (drvinfo->version));strlcpy (drvinfo->bus_info,pci_name (adapter->pdev),sizeof (drvinfo->bus_info));drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +0
-1@@ -440,7 +440,6 @@ extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops;/* needed by ethtool.c */ extern const char ixgbevf_driver_name[]; -extern const char ixgbevf_driver_version[];int ixgbevf_open (struct net_device *netdev);int
ixgbevf_close(struct net_device *netdev);drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +0
-3@@ -38,8 +38,6 @@ const char ixgbevf_driver_name[] = "ixgbevf";static const char ixgbevf_driver_string[] ="Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver" ; -#define DRV_VERSION "4.1.0-k" -const char ixgbevf_driver_version[] =DRV_VERSION ;static char ixgbevf_copyright[] ="Copyright (c) 2009 - 2018 Intel Corporation." ;@@ -81,7 +79,6 @@ MODULE_DEVICE_TABLE(pci, ixgbevf_pci_tbl);MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION ("Intel(R) 10 Gigabit Virtual Function Network Driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV |NETIF_MSG_PROBE |NETIF_MSG_LINK )static int debug = -1;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +1
-4@@ -4893,9 +4890,7 @@ static struct pci_driver ixgbevf_driver = {**/ static int __init ixgbevf_init_module (void ) { -pr_info ("%s - version %s\n" , ixgbevf_driver_string, - ixgbevf_driver_version); - +pr_info ("%s\n" , ixgbevf_driver_string);pr_info ("%s\n" , ixgbevf_copyright); ixgbevf_wq =create_singlethread_workqueue (ixgbevf_driver_name);if (!ixgbevf_wq) { --2.24.1
PATCH v2 1/1 net/intel: remove driver versions from Intel drivers
Quoted 12 lines · Bruce W
Quoted 12 lines
-----Original Message-----
From: Kirsher, Jeffrey T <[email protected]>
Sent: Tuesday, March 10, 2020 4:23 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Kirsher, Jeffrey T <[email protected]>; Allan, Bruce W <[email protected]>; Brandeburg, Jesse <[email protected]>; Loktionov, Aleksandr <[email protected]>; Liedtke, Kevin D <[email protected]>; Rowden, Aaron F <[email protected]>; Keller, Jacob E <[email protected]>
Subject: [next-queue v2] net/intel: remove driver versions from Intel drivers
Quoted 7 lines
Quoted 3 lines
As with other networking drivers, remove the unnecessary driver version from the Intel drivers. The ethtool driver information and module version will then report the kernel version instead.
The version is still logged in the kernel logfile when the driver is loaded (at least it is in ice). Is that still needed/wanted? Seems redundant to me.
FYI - I was "strongly encouraged" to remove the print from ionic's init function, and you may get this feedback as well.
sln
Signature · 2 lines
============================================== Mr. Shannon Nelson Parents can't afford to be squeamish.
kbuild test robot
build botI love your patch! Perhaps something to improve:
Hi Jeff,
I love your patch! Perhaps something to improve:
[auto build test WARNING on jkirsher-next-queue/dev-queue]
[cannot apply to v5.6-rc5 next-20200310]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Jeff-Kirsher/net-intel-remove-driver-versions-from-Intel-drivers/20200311-072658 base: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue config: ia64-allyesconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag
All warnings (new ones prefixed by >>):
In file included from include/linux/module.h:30,
from drivers/net/ethernet/intel/ice/ice.h:10, from drivers/net/ethernet/intel/ice/ice_main.c:9:
>> arch/ia64/include/asm/module.h:30: warning: "MODULE_ARCH_VERMAGIC" redefined
30 | #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY \
| In file included from drivers/net/ethernet/intel/ice/ice_main.c:8:
include/linux/vermagic.h:28: note: this is the location of the previous definition
28 | #define MODULE_ARCH_VERMAGIC ""
|
vim +/MODULE_ARCH_VERMAGIC +30 arch/ia64/include/asm/module.h
^1da177e4c3f41 include/asm-ia64/module.h Linus Torvalds 2005-04-16 28
^1da177e4c3f41 include/asm-ia64/module.h Linus Torvalds 2005-04-16 29 #define MODULE_PROC_FAMILY "ia64" 1bb4996bcebca1 include/asm-ia64/module.h Andi Kleen 2006-09-26 @30 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY \ 1bb4996bcebca1 include/asm-ia64/module.h Andi Kleen 2006-09-26 31 "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)
^1da177e4c3f41 include/asm-ia64/module.h Linus Torvalds 2005-04-16 32
:::::: The code at line 30 was first introduced by commit
:::::: 1bb4996bcebca1cde49d964b4e012699ce180e61 [PATCH] Move compiler check for modules to ia64 only
:::::: TO: Andi Kleen <[email protected]>
:::::: CC: Andi Kleen <[email protected]>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
kbuild test robot
build botI love your patch! Perhaps something to improve:
Hi Jeff,
I love your patch! Perhaps something to improve:
[auto build test WARNING on jkirsher-next-queue/dev-queue]
[cannot apply to v5.6-rc5 next-20200310]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Jeff-Kirsher/net-intel-remove-driver-versions-from-Intel-drivers/20200311-072658 base: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
All warnings (new ones prefixed by >>):
In file included from include/linux/module.h:30,
from drivers/net/ethernet/intel/ice/ice.h:10, from drivers/net/ethernet/intel/ice/ice_main.c:9:
>> arch/xtensa/include/asm/module.h:16: warning: "MODULE_ARCH_VERMAGIC" redefined
16 | #define MODULE_ARCH_VERMAGIC "xtensa-" __stringify(XCHAL_CORE_ID) " "
|
In file included from drivers/net/ethernet/intel/ice/ice_main.c:8:
include/linux/vermagic.h:28: note: this is the location of the previous definition
28 | #define MODULE_ARCH_VERMAGIC ""
|
vim +/MODULE_ARCH_VERMAGIC +16 arch/xtensa/include/asm/module.h
9a8fd558990215 include/asm-xtensa/module.h Chris Zankel 2005-06-23 153b4a49e21b0d8a include/asm-xtensa/module.h Chris Zankel 2008-01-07 @16 #define MODULE_ARCH_VERMAGIC "xtensa-" __stringify(XCHAL_CORE_ID) " " 3b4a49e21b0d8a include/asm-xtensa/module.h Chris Zankel 2008-01-07 17
:::::: The code at line 16 was first introduced by commit
:::::: 3b4a49e21b0d8a69629623815a8caff3eb4cf9f7 [XTENSA] Fix modules for non-exec processor configurations
:::::: TO: Chris Zankel <[email protected]>
:::::: CC: Chris Zankel <[email protected]>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org