Browse Source

drivers/net: get rid of unnecessary initializations in .get_drvinfo()

Many drivers initialize uselessly n_priv_flags, n_stats, testinfo_len,
eedump_len & regdump_len fields in their .get_drvinfo() ethtool op.
It's not necessary as these fields is filled in ethtool_get_drvinfo().

v2: removed unused variable
v3: removed another unused variable

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ivan Vecera 9 years ago
parent
commit
47ea032533
50 changed files with 0 additions and 113 deletions
  1. 0 3
      drivers/infiniband/hw/nes/nes_nic.c
  2. 0 2
      drivers/net/ethernet/aeroflex/greth.c
  3. 0 1
      drivers/net/ethernet/amd/au1000_eth.c
  4. 0 1
      drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
  5. 0 4
      drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c
  6. 0 4
      drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c
  7. 0 1
      drivers/net/ethernet/atheros/atlx/atl1.c
  8. 0 4
      drivers/net/ethernet/atheros/atlx/atl2.c
  9. 0 2
      drivers/net/ethernet/broadcom/bcm63xx_enet.c
  10. 0 1
      drivers/net/ethernet/broadcom/bcmsysport.c
  11. 0 4
      drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
  12. 0 1
      drivers/net/ethernet/broadcom/genet/bcmgenet.c
  13. 0 1
      drivers/net/ethernet/cavium/liquidio/lio_ethtool.c
  14. 0 1
      drivers/net/ethernet/dec/tulip/de2104x.c
  15. 0 3
      drivers/net/ethernet/emulex/benet/be_ethtool.c
  16. 0 2
      drivers/net/ethernet/freescale/gianfar_ethtool.c
  17. 0 2
      drivers/net/ethernet/freescale/ucc_geth_ethtool.c
  18. 0 1
      drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
  19. 0 1
      drivers/net/ethernet/ibm/emac/core.c
  20. 0 2
      drivers/net/ethernet/intel/e1000/e1000_ethtool.c
  21. 0 2
      drivers/net/ethernet/intel/e1000e/ethtool.c
  22. 0 4
      drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
  23. 0 1
      drivers/net/ethernet/intel/i40e/i40e_ethtool.c
  24. 0 4
      drivers/net/ethernet/intel/igb/igb_ethtool.c
  25. 0 2
      drivers/net/ethernet/intel/igbvf/ethtool.c
  26. 0 3
      drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c
  27. 0 3
      drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
  28. 0 1
      drivers/net/ethernet/marvell/mv643xx_eth.c
  29. 0 3
      drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
  30. 0 2
      drivers/net/ethernet/neterion/s2io.c
  31. 0 4
      drivers/net/ethernet/neterion/vxge/vxge-ethtool.c
  32. 0 4
      drivers/net/ethernet/octeon/octeon_mgmt.c
  33. 0 1
      drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c
  34. 0 2
      drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
  35. 0 2
      drivers/net/ethernet/qlogic/qla3xxx.c
  36. 0 7
      drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c
  37. 0 1
      drivers/net/ethernet/realtek/8139too.c
  38. 0 3
      drivers/net/ethernet/sun/cassini.c
  39. 0 5
      drivers/net/ethernet/tehuti/tehuti.c
  40. 0 1
      drivers/net/ethernet/ti/cpmac.c
  41. 0 1
      drivers/net/ethernet/ti/cpsw.c
  42. 0 1
      drivers/net/ethernet/ti/tlan.c
  43. 0 1
      drivers/net/ethernet/xilinx/xilinx_axienet_main.c
  44. 0 2
      drivers/net/fjes/fjes_ethtool.c
  45. 0 1
      drivers/net/usb/asix_common.c
  46. 0 1
      drivers/net/usb/dm9601.c
  47. 0 1
      drivers/net/usb/mcs7830.c
  48. 0 4
      drivers/net/usb/sr9800.c
  49. 0 4
      drivers/net/vmxnet3/vmxnet3_ethtool.c
  50. 0 1
      drivers/net/wireless/ipw2x00/ipw2200.c

+ 0 - 3
drivers/infiniband/hw/nes/nes_nic.c

@@ -1325,9 +1325,6 @@ static void nes_netdev_get_drvinfo(struct net_device *netdev,
 		 "%u.%u", nesadapter->firmware_version >> 16,
 		 "%u.%u", nesadapter->firmware_version >> 16,
 		 nesadapter->firmware_version & 0x000000ff);
 		 nesadapter->firmware_version & 0x000000ff);
 	strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
 	strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
-	drvinfo->testinfo_len = 0;
-	drvinfo->eedump_len = 0;
-	drvinfo->regdump_len = 0;
 }
 }
 
 
 
 

+ 0 - 2
drivers/net/ethernet/aeroflex/greth.c

@@ -1141,8 +1141,6 @@ static void greth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *in
 	strlcpy(info->version, "revision: 1.0", sizeof(info->version));
 	strlcpy(info->version, "revision: 1.0", sizeof(info->version));
 	strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info));
 	strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info));
 	strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
 	strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
-	info->eedump_len = 0;
-	info->regdump_len = sizeof(struct greth_regs);
 }
 }
 
 
 static void greth_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *p)
 static void greth_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *p)

+ 0 - 1
drivers/net/ethernet/amd/au1000_eth.c

@@ -714,7 +714,6 @@ au1000_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	snprintf(info->bus_info, sizeof(info->bus_info), "%s %d", DRV_NAME,
 	snprintf(info->bus_info, sizeof(info->bus_info), "%s %d", DRV_NAME,
 		 aup->mac_id);
 		 aup->mac_id);
-	info->regdump_len = 0;
 }
 }
 
 
 static void au1000_set_msglevel(struct net_device *dev, u32 value)
 static void au1000_set_msglevel(struct net_device *dev, u32 value)

+ 0 - 1
drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c

@@ -375,7 +375,6 @@ static void xgbe_get_drvinfo(struct net_device *netdev,
 		 XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER),
 		 XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER),
 		 XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID),
 		 XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID),
 		 XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER));
 		 XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER));
-	drvinfo->n_stats = XGBE_STATS_COUNT;
 }
 }
 
 
 static u32 xgbe_get_msglevel(struct net_device *netdev)
 static u32 xgbe_get_msglevel(struct net_device *netdev)

+ 0 - 4
drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c

@@ -233,10 +233,6 @@ static void atl1c_get_drvinfo(struct net_device *netdev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = 0;
-	drvinfo->testinfo_len = 0;
-	drvinfo->regdump_len = atl1c_get_regs_len(netdev);
-	drvinfo->eedump_len = atl1c_get_eeprom_len(netdev);
 }
 }
 
 
 static void atl1c_get_wol(struct net_device *netdev,
 static void atl1c_get_wol(struct net_device *netdev,

+ 0 - 4
drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c

@@ -316,10 +316,6 @@ static void atl1e_get_drvinfo(struct net_device *netdev,
 	strlcpy(drvinfo->fw_version, "L1e", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "L1e", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = 0;
-	drvinfo->testinfo_len = 0;
-	drvinfo->regdump_len = atl1e_get_regs_len(netdev);
-	drvinfo->eedump_len = atl1e_get_eeprom_len(netdev);
 }
 }
 
 
 static void atl1e_get_wol(struct net_device *netdev,
 static void atl1e_get_wol(struct net_device *netdev,

+ 0 - 1
drivers/net/ethernet/atheros/atlx/atl1.c

@@ -3388,7 +3388,6 @@ static void atl1_get_drvinfo(struct net_device *netdev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->eedump_len = ATL1_EEDUMP_LEN;
 }
 }
 
 
 static void atl1_get_wol(struct net_device *netdev,
 static void atl1_get_wol(struct net_device *netdev,

+ 0 - 4
drivers/net/ethernet/atheros/atlx/atl2.c

@@ -2030,10 +2030,6 @@ static void atl2_get_drvinfo(struct net_device *netdev,
 	strlcpy(drvinfo->fw_version, "L2", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "L2", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = 0;
-	drvinfo->testinfo_len = 0;
-	drvinfo->regdump_len = atl2_get_regs_len(netdev);
-	drvinfo->eedump_len = atl2_get_eeprom_len(netdev);
 }
 }
 
 
 static void atl2_get_wol(struct net_device *netdev,
 static void atl2_get_wol(struct net_device *netdev,

+ 0 - 2
drivers/net/ethernet/broadcom/bcm63xx_enet.c

@@ -1333,7 +1333,6 @@ static void bcm_enet_get_drvinfo(struct net_device *netdev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
 	strlcpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = BCM_ENET_STATS_LEN;
 }
 }
 
 
 static int bcm_enet_get_sset_count(struct net_device *netdev,
 static int bcm_enet_get_sset_count(struct net_device *netdev,
@@ -2597,7 +2596,6 @@ static void bcm_enetsw_get_drvinfo(struct net_device *netdev,
 	strncpy(drvinfo->version, bcm_enet_driver_version, 32);
 	strncpy(drvinfo->version, bcm_enet_driver_version, 32);
 	strncpy(drvinfo->fw_version, "N/A", 32);
 	strncpy(drvinfo->fw_version, "N/A", 32);
 	strncpy(drvinfo->bus_info, "bcm63xx", 32);
 	strncpy(drvinfo->bus_info, "bcm63xx", 32);
-	drvinfo->n_stats = BCM_ENETSW_STATS_LEN;
 }
 }
 
 
 static void bcm_enetsw_get_ethtool_stats(struct net_device *netdev,
 static void bcm_enetsw_get_ethtool_stats(struct net_device *netdev,

+ 0 - 1
drivers/net/ethernet/broadcom/bcmsysport.c

@@ -287,7 +287,6 @@ static void bcm_sysport_get_drvinfo(struct net_device *dev,
 	strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
 	strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
 	strlcpy(info->version, "0.1", sizeof(info->version));
 	strlcpy(info->version, "0.1", sizeof(info->version));
 	strlcpy(info->bus_info, "platform", sizeof(info->bus_info));
 	strlcpy(info->bus_info, "platform", sizeof(info->bus_info));
-	info->n_stats = BCM_SYSPORT_STATS_LEN;
 }
 }
 
 
 static u32 bcm_sysport_get_msglvl(struct net_device *dev)
 static u32 bcm_sysport_get_msglvl(struct net_device *dev)

+ 0 - 4
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c

@@ -1090,10 +1090,6 @@ static void bnx2x_get_drvinfo(struct net_device *dev,
 	bnx2x_fill_fw_str(bp, info->fw_version, sizeof(info->fw_version));
 	bnx2x_fill_fw_str(bp, info->fw_version, sizeof(info->fw_version));
 
 
 	strlcpy(info->bus_info, pci_name(bp->pdev), sizeof(info->bus_info));
 	strlcpy(info->bus_info, pci_name(bp->pdev), sizeof(info->bus_info));
-	info->n_stats = BNX2X_NUM_STATS;
-	info->testinfo_len = BNX2X_NUM_TESTS(bp);
-	info->eedump_len = bp->common.flash_size;
-	info->regdump_len = bnx2x_get_regs_len(dev);
 }
 }
 
 
 static void bnx2x_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
 static void bnx2x_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)

+ 0 - 1
drivers/net/ethernet/broadcom/genet/bcmgenet.c

@@ -793,7 +793,6 @@ static void bcmgenet_get_drvinfo(struct net_device *dev,
 {
 {
 	strlcpy(info->driver, "bcmgenet", sizeof(info->driver));
 	strlcpy(info->driver, "bcmgenet", sizeof(info->driver));
 	strlcpy(info->version, "v2.0", sizeof(info->version));
 	strlcpy(info->version, "v2.0", sizeof(info->version));
-	info->n_stats = BCMGENET_STATS_LEN;
 }
 }
 
 
 static int bcmgenet_get_sset_count(struct net_device *dev, int string_set)
 static int bcmgenet_get_sset_count(struct net_device *dev, int string_set)

+ 0 - 1
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c

@@ -153,7 +153,6 @@ lio_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
 	strncpy(drvinfo->fw_version, oct->fw_info.liquidio_firmware_version,
 	strncpy(drvinfo->fw_version, oct->fw_info.liquidio_firmware_version,
 		ETHTOOL_FWVERS_LEN);
 		ETHTOOL_FWVERS_LEN);
 	strncpy(drvinfo->bus_info, pci_name(oct->pci_dev), 32);
 	strncpy(drvinfo->bus_info, pci_name(oct->pci_dev), 32);
-	drvinfo->regdump_len = OCT_ETHTOOL_REGDUMP_LEN;
 }
 }
 
 
 static void
 static void

+ 0 - 1
drivers/net/ethernet/dec/tulip/de2104x.c

@@ -1597,7 +1597,6 @@ static void de_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *info)
 	strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
 	strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->bus_info, pci_name(de->pdev), sizeof(info->bus_info));
 	strlcpy(info->bus_info, pci_name(de->pdev), sizeof(info->bus_info));
-	info->eedump_len = DE_EEPROM_SIZE;
 }
 }
 
 
 static int de_get_regs_len(struct net_device *dev)
 static int de_get_regs_len(struct net_device *dev)

+ 0 - 3
drivers/net/ethernet/emulex/benet/be_ethtool.c

@@ -234,9 +234,6 @@ static void be_get_drvinfo(struct net_device *netdev,
 
 
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->testinfo_len = 0;
-	drvinfo->regdump_len = 0;
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 static u32 lancer_cmd_get_file_len(struct be_adapter *adapter, u8 *file_name)
 static u32 lancer_cmd_get_file_len(struct be_adapter *adapter, u8 *file_name)

+ 0 - 2
drivers/net/ethernet/freescale/gianfar_ethtool.c

@@ -182,8 +182,6 @@ static void gfar_gdrvinfo(struct net_device *dev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, "N/A", sizeof(drvinfo->bus_info));
 	strlcpy(drvinfo->bus_info, "N/A", sizeof(drvinfo->bus_info));
-	drvinfo->regdump_len = 0;
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 
 

+ 0 - 2
drivers/net/ethernet/freescale/ucc_geth_ethtool.c

@@ -351,8 +351,6 @@ uec_get_drvinfo(struct net_device *netdev,
 	strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
 	strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info));
 	strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info));
-	drvinfo->eedump_len = 0;
-	drvinfo->regdump_len = uec_get_regs_len(netdev);
 }
 }
 
 
 #ifdef CONFIG_PM
 #ifdef CONFIG_PM

+ 0 - 1
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c

@@ -682,7 +682,6 @@ static void hns_nic_get_drvinfo(struct net_device *net_dev,
 	drvinfo->bus_info[ETHTOOL_BUSINFO_LEN - 1] = '\0';
 	drvinfo->bus_info[ETHTOOL_BUSINFO_LEN - 1] = '\0';
 
 
 	strncpy(drvinfo->fw_version, "N/A", ETHTOOL_FWVERS_LEN);
 	strncpy(drvinfo->fw_version, "N/A", ETHTOOL_FWVERS_LEN);
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 /**
 /**

+ 0 - 1
drivers/net/ethernet/ibm/emac/core.c

@@ -2204,7 +2204,6 @@ static void emac_ethtool_get_drvinfo(struct net_device *ndev,
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	snprintf(info->bus_info, sizeof(info->bus_info), "PPC 4xx EMAC-%d %s",
 	snprintf(info->bus_info, sizeof(info->bus_info), "PPC 4xx EMAC-%d %s",
 		 dev->cell_index, dev->ofdev->dev.of_node->full_name);
 		 dev->cell_index, dev->ofdev->dev.of_node->full_name);
-	info->regdump_len = emac_ethtool_get_regs_len(ndev);
 }
 }
 
 
 static const struct ethtool_ops emac_ethtool_ops = {
 static const struct ethtool_ops emac_ethtool_ops = {

+ 0 - 2
drivers/net/ethernet/intel/e1000/e1000_ethtool.c

@@ -559,8 +559,6 @@ static void e1000_get_drvinfo(struct net_device *netdev,
 
 
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->regdump_len = e1000_get_regs_len(netdev);
-	drvinfo->eedump_len = e1000_get_eeprom_len(netdev);
 }
 }
 
 
 static void e1000_get_ringparam(struct net_device *netdev,
 static void e1000_get_ringparam(struct net_device *netdev,

+ 0 - 2
drivers/net/ethernet/intel/e1000e/ethtool.c

@@ -648,8 +648,6 @@ static void e1000_get_drvinfo(struct net_device *netdev,
 
 
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->regdump_len = e1000_get_regs_len(netdev);
-	drvinfo->eedump_len = e1000_get_eeprom_len(netdev);
 }
 }
 
 
 static void e1000_get_ringparam(struct net_device *netdev,
 static void e1000_get_ringparam(struct net_device *netdev,

+ 0 - 4
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c

@@ -515,10 +515,6 @@ static void fm10k_get_drvinfo(struct net_device *dev,
 		sizeof(info->version) - 1);
 		sizeof(info->version) - 1);
 	strncpy(info->bus_info, pci_name(interface->pdev),
 	strncpy(info->bus_info, pci_name(interface->pdev),
 		sizeof(info->bus_info) - 1);
 		sizeof(info->bus_info) - 1);
-
-	info->n_stats = fm10k_get_sset_count(dev, ETH_SS_STATS);
-
-	info->regdump_len = fm10k_get_regs_len(dev);
 }
 }
 
 
 static void fm10k_get_pauseparam(struct net_device *dev,
 static void fm10k_get_pauseparam(struct net_device *dev,

+ 0 - 1
drivers/net/ethernet/intel/i40e/i40e_ethtool.c

@@ -1126,7 +1126,6 @@ static void i40e_get_drvinfo(struct net_device *netdev,
 		sizeof(drvinfo->fw_version));
 		sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, pci_name(pf->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(pf->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_priv_flags = I40E_PRIV_FLAGS_STR_LEN;
 }
 }
 
 
 static void i40e_get_ringparam(struct net_device *netdev,
 static void i40e_get_ringparam(struct net_device *netdev,

+ 0 - 4
drivers/net/ethernet/intel/igb/igb_ethtool.c

@@ -842,10 +842,6 @@ static void igb_get_drvinfo(struct net_device *netdev,
 		sizeof(drvinfo->fw_version));
 		sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = IGB_STATS_LEN;
-	drvinfo->testinfo_len = IGB_TEST_LEN;
-	drvinfo->regdump_len = igb_get_regs_len(netdev);
-	drvinfo->eedump_len = igb_get_eeprom_len(netdev);
 }
 }
 
 
 static void igb_get_ringparam(struct net_device *netdev,
 static void igb_get_ringparam(struct net_device *netdev,

+ 0 - 2
drivers/net/ethernet/intel/igbvf/ethtool.c

@@ -196,8 +196,6 @@ static void igbvf_get_drvinfo(struct net_device *netdev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->regdump_len = igbvf_get_regs_len(netdev);
-	drvinfo->eedump_len = igbvf_get_eeprom_len(netdev);
 }
 }
 
 
 static void igbvf_get_ringparam(struct net_device *netdev,
 static void igbvf_get_ringparam(struct net_device *netdev,

+ 0 - 3
drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c

@@ -479,9 +479,6 @@ ixgb_get_drvinfo(struct net_device *netdev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = IXGB_STATS_LEN;
-	drvinfo->regdump_len = ixgb_get_regs_len(netdev);
-	drvinfo->eedump_len = ixgb_get_eeprom_len(netdev);
 }
 }
 
 
 static void
 static void

+ 0 - 3
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

@@ -943,9 +943,6 @@ static void ixgbe_get_drvinfo(struct net_device *netdev,
 
 
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = IXGBE_STATS_LEN;
-	drvinfo->testinfo_len = IXGBE_TEST_LEN;
-	drvinfo->regdump_len = ixgbe_get_regs_len(netdev);
 }
 }
 
 
 static void ixgbe_get_ringparam(struct net_device *netdev,
 static void ixgbe_get_ringparam(struct net_device *netdev,

+ 0 - 1
drivers/net/ethernet/marvell/mv643xx_eth.c

@@ -1586,7 +1586,6 @@ static void mv643xx_eth_get_drvinfo(struct net_device *dev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, "platform", sizeof(drvinfo->bus_info));
 	strlcpy(drvinfo->bus_info, "platform", sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = ARRAY_SIZE(mv643xx_eth_stats);
 }
 }
 
 
 static int mv643xx_eth_nway_reset(struct net_device *dev)
 static int mv643xx_eth_nway_reset(struct net_device *dev)

+ 0 - 3
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c

@@ -95,9 +95,6 @@ mlx4_en_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo)
 		(u16) (mdev->dev->caps.fw_ver & 0xffff));
 		(u16) (mdev->dev->caps.fw_ver & 0xffff));
 	strlcpy(drvinfo->bus_info, pci_name(mdev->dev->persist->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(mdev->dev->persist->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = 0;
-	drvinfo->regdump_len = 0;
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 static const char mlx4_en_priv_flags[][ETH_GSTRING_LEN] = {
 static const char mlx4_en_priv_flags[][ETH_GSTRING_LEN] = {

+ 0 - 2
drivers/net/ethernet/neterion/s2io.c

@@ -5389,8 +5389,6 @@ static void s2io_ethtool_gdrvinfo(struct net_device *dev,
 	strlcpy(info->driver, s2io_driver_name, sizeof(info->driver));
 	strlcpy(info->driver, s2io_driver_name, sizeof(info->driver));
 	strlcpy(info->version, s2io_driver_version, sizeof(info->version));
 	strlcpy(info->version, s2io_driver_version, sizeof(info->version));
 	strlcpy(info->bus_info, pci_name(sp->pdev), sizeof(info->bus_info));
 	strlcpy(info->bus_info, pci_name(sp->pdev), sizeof(info->bus_info));
-	info->regdump_len = XENA_REG_SPACE;
-	info->eedump_len = XENA_EEPROM_SPACE;
 }
 }
 
 
 /**
 /**

+ 0 - 4
drivers/net/ethernet/neterion/vxge/vxge-ethtool.c

@@ -105,10 +105,6 @@ static void vxge_ethtool_gdrvinfo(struct net_device *dev,
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->fw_version, vdev->fw_version, sizeof(info->fw_version));
 	strlcpy(info->fw_version, vdev->fw_version, sizeof(info->fw_version));
 	strlcpy(info->bus_info, pci_name(vdev->pdev), sizeof(info->bus_info));
 	strlcpy(info->bus_info, pci_name(vdev->pdev), sizeof(info->bus_info));
-	info->regdump_len = sizeof(struct vxge_hw_vpath_reg)
-				* vdev->no_of_vpath;
-
-	info->n_stats = STAT_LEN;
 }
 }
 
 
 /**
 /**

+ 0 - 4
drivers/net/ethernet/octeon/octeon_mgmt.c

@@ -1344,10 +1344,6 @@ static void octeon_mgmt_get_drvinfo(struct net_device *netdev,
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
 	strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
 	strlcpy(info->bus_info, "N/A", sizeof(info->bus_info));
 	strlcpy(info->bus_info, "N/A", sizeof(info->bus_info));
-	info->n_stats = 0;
-	info->testinfo_len = 0;
-	info->regdump_len = 0;
-	info->eedump_len = 0;
 }
 }
 
 
 static int octeon_mgmt_get_settings(struct net_device *netdev,
 static int octeon_mgmt_get_settings(struct net_device *netdev,

+ 0 - 1
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c

@@ -164,7 +164,6 @@ static void pch_gbe_get_drvinfo(struct net_device *netdev,
 	strlcpy(drvinfo->version, pch_driver_version, sizeof(drvinfo->version));
 	strlcpy(drvinfo->version, pch_driver_version, sizeof(drvinfo->version));
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->regdump_len = pch_gbe_get_regs_len(netdev);
 }
 }
 
 
 /**
 /**

+ 0 - 2
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c

@@ -93,8 +93,6 @@ netxen_nic_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo)
 
 
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->regdump_len = NETXEN_NIC_REGS_LEN;
-	drvinfo->eedump_len = netxen_nic_get_eeprom_len(dev);
 }
 }
 
 
 static int
 static int

+ 0 - 2
drivers/net/ethernet/qlogic/qla3xxx.c

@@ -1736,8 +1736,6 @@ static void ql_get_drvinfo(struct net_device *ndev,
 		sizeof(drvinfo->version));
 		sizeof(drvinfo->version));
 	strlcpy(drvinfo->bus_info, pci_name(qdev->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(qdev->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->regdump_len = 0;
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 static u32 ql_get_msglevel(struct net_device *ndev)
 static u32 ql_get_msglevel(struct net_device *ndev)

+ 0 - 7
drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c

@@ -415,13 +415,6 @@ static void ql_get_drvinfo(struct net_device *ndev,
 		 (qdev->fw_rev_id & 0x000000ff));
 		 (qdev->fw_rev_id & 0x000000ff));
 	strlcpy(drvinfo->bus_info, pci_name(qdev->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(qdev->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = 0;
-	drvinfo->testinfo_len = 0;
-	if (!test_bit(QL_FRC_COREDUMP, &qdev->flags))
-		drvinfo->regdump_len = sizeof(struct ql_mpi_coredump);
-	else
-		drvinfo->regdump_len = sizeof(struct ql_reg_dump);
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 static void ql_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)
 static void ql_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)

+ 0 - 1
drivers/net/ethernet/realtek/8139too.c

@@ -2388,7 +2388,6 @@ static void rtl8139_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *
 	strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
 	strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 	strlcpy(info->bus_info, pci_name(tp->pci_dev), sizeof(info->bus_info));
 	strlcpy(info->bus_info, pci_name(tp->pci_dev), sizeof(info->bus_info));
-	info->regdump_len = tp->regs_len;
 }
 }
 
 
 static int rtl8139_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
 static int rtl8139_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)

+ 0 - 3
drivers/net/ethernet/sun/cassini.c

@@ -4529,9 +4529,6 @@ static void cas_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info
 	strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
 	strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
 	strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
 	strlcpy(info->bus_info, pci_name(cp->pdev), sizeof(info->bus_info));
 	strlcpy(info->bus_info, pci_name(cp->pdev), sizeof(info->bus_info));
-	info->regdump_len = cp->casreg_len < CAS_MAX_REGS ?
-		cp->casreg_len : CAS_MAX_REGS;
-	info->n_stats = CAS_NUM_STAT_KEYS;
 }
 }
 
 
 static int cas_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
 static int cas_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)

+ 0 - 5
drivers/net/ethernet/tehuti/tehuti.c

@@ -2182,11 +2182,6 @@ bdx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->bus_info, pci_name(priv->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(priv->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-
-	drvinfo->n_stats = ((priv->stats_flag) ? ARRAY_SIZE(bdx_stat_names) : 0);
-	drvinfo->testinfo_len = 0;
-	drvinfo->regdump_len = 0;
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 /*
 /*

+ 0 - 1
drivers/net/ethernet/ti/cpmac.c

@@ -899,7 +899,6 @@ static void cpmac_get_drvinfo(struct net_device *dev,
 	strlcpy(info->driver, "cpmac", sizeof(info->driver));
 	strlcpy(info->driver, "cpmac", sizeof(info->driver));
 	strlcpy(info->version, CPMAC_VERSION, sizeof(info->version));
 	strlcpy(info->version, CPMAC_VERSION, sizeof(info->version));
 	snprintf(info->bus_info, sizeof(info->bus_info), "%s", "cpmac");
 	snprintf(info->bus_info, sizeof(info->bus_info), "%s", "cpmac");
-	info->regdump_len = 0;
 }
 }
 
 
 static const struct ethtool_ops cpmac_ethtool_ops = {
 static const struct ethtool_ops cpmac_ethtool_ops = {

+ 0 - 1
drivers/net/ethernet/ti/cpsw.c

@@ -1784,7 +1784,6 @@ static void cpsw_get_drvinfo(struct net_device *ndev,
 	strlcpy(info->driver, "cpsw", sizeof(info->driver));
 	strlcpy(info->driver, "cpsw", sizeof(info->driver));
 	strlcpy(info->version, "1.0", sizeof(info->version));
 	strlcpy(info->version, "1.0", sizeof(info->version));
 	strlcpy(info->bus_info, priv->pdev->name, sizeof(info->bus_info));
 	strlcpy(info->bus_info, priv->pdev->name, sizeof(info->bus_info));
-	info->regdump_len = cpsw_get_regs_len(ndev);
 }
 }
 
 
 static u32 cpsw_get_msglevel(struct net_device *ndev)
 static u32 cpsw_get_msglevel(struct net_device *ndev)

+ 0 - 1
drivers/net/ethernet/ti/tlan.c

@@ -791,7 +791,6 @@ static void tlan_get_drvinfo(struct net_device *dev,
 			sizeof(info->bus_info));
 			sizeof(info->bus_info));
 	else
 	else
 		strlcpy(info->bus_info, "EISA",	sizeof(info->bus_info));
 		strlcpy(info->bus_info, "EISA",	sizeof(info->bus_info));
-	info->eedump_len = TLAN_EEPROM_SIZE;
 }
 }
 
 
 static int tlan_get_eeprom_len(struct net_device *dev)
 static int tlan_get_eeprom_len(struct net_device *dev)

+ 0 - 1
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

@@ -1135,7 +1135,6 @@ static void axienet_ethtools_get_drvinfo(struct net_device *ndev,
 {
 {
 	strlcpy(ed->driver, DRIVER_NAME, sizeof(ed->driver));
 	strlcpy(ed->driver, DRIVER_NAME, sizeof(ed->driver));
 	strlcpy(ed->version, DRIVER_VERSION, sizeof(ed->version));
 	strlcpy(ed->version, DRIVER_VERSION, sizeof(ed->version));
-	ed->regdump_len = sizeof(u32) * AXIENET_REGS_N;
 }
 }
 
 
 /**
 /**

+ 0 - 2
drivers/net/fjes/fjes_ethtool.c

@@ -105,8 +105,6 @@ static void fjes_get_drvinfo(struct net_device *netdev,
 	strlcpy(drvinfo->fw_version, "none", sizeof(drvinfo->fw_version));
 	strlcpy(drvinfo->fw_version, "none", sizeof(drvinfo->fw_version));
 	snprintf(drvinfo->bus_info, sizeof(drvinfo->bus_info),
 	snprintf(drvinfo->bus_info, sizeof(drvinfo->bus_info),
 		 "platform:%s", plat_dev->name);
 		 "platform:%s", plat_dev->name);
-	drvinfo->regdump_len = 0;
-	drvinfo->eedump_len = 0;
 }
 }
 
 
 static int fjes_get_settings(struct net_device *netdev,
 static int fjes_get_settings(struct net_device *netdev,

+ 0 - 1
drivers/net/usb/asix_common.c

@@ -588,7 +588,6 @@ void asix_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *info)
 	usbnet_get_drvinfo(net, info);
 	usbnet_get_drvinfo(net, info);
 	strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver));
 	strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver));
 	strlcpy(info->version, DRIVER_VERSION, sizeof(info->version));
 	strlcpy(info->version, DRIVER_VERSION, sizeof(info->version));
-	info->eedump_len = AX_EEPROM_LEN;
 }
 }
 
 
 int asix_set_mac_address(struct net_device *net, void *p)
 int asix_set_mac_address(struct net_device *net, void *p)

+ 0 - 1
drivers/net/usb/dm9601.c

@@ -258,7 +258,6 @@ static void dm9601_get_drvinfo(struct net_device *net,
 {
 {
 	/* Inherit standard device info */
 	/* Inherit standard device info */
 	usbnet_get_drvinfo(net, info);
 	usbnet_get_drvinfo(net, info);
-	info->eedump_len = DM_EEPROM_LEN;
 }
 }
 
 
 static u32 dm9601_get_link(struct net_device *net)
 static u32 dm9601_get_link(struct net_device *net)

+ 0 - 1
drivers/net/usb/mcs7830.c

@@ -445,7 +445,6 @@ static int mcs7830_get_regs_len(struct net_device *net)
 static void mcs7830_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *drvinfo)
 static void mcs7830_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *drvinfo)
 {
 {
 	usbnet_get_drvinfo(net, drvinfo);
 	usbnet_get_drvinfo(net, drvinfo);
-	drvinfo->regdump_len = mcs7830_get_regs_len(net);
 }
 }
 
 
 static void mcs7830_get_regs(struct net_device *net, struct ethtool_regs *regs, void *data)
 static void mcs7830_get_regs(struct net_device *net, struct ethtool_regs *regs, void *data)

+ 0 - 4
drivers/net/usb/sr9800.c

@@ -470,14 +470,10 @@ static int sr_get_eeprom(struct net_device *net,
 static void sr_get_drvinfo(struct net_device *net,
 static void sr_get_drvinfo(struct net_device *net,
 				 struct ethtool_drvinfo *info)
 				 struct ethtool_drvinfo *info)
 {
 {
-	struct usbnet *dev = netdev_priv(net);
-	struct sr_data *data = (struct sr_data *)&dev->data;
-
 	/* Inherit standard device info */
 	/* Inherit standard device info */
 	usbnet_get_drvinfo(net, info);
 	usbnet_get_drvinfo(net, info);
 	strncpy(info->driver, DRIVER_NAME, sizeof(info->driver));
 	strncpy(info->driver, DRIVER_NAME, sizeof(info->driver));
 	strncpy(info->version, DRIVER_VERSION, sizeof(info->version));
 	strncpy(info->version, DRIVER_VERSION, sizeof(info->version));
-	info->eedump_len = data->eeprom_len;
 }
 }
 
 
 static u32 sr_get_link(struct net_device *net)
 static u32 sr_get_link(struct net_device *net)

+ 0 - 4
drivers/net/vmxnet3/vmxnet3_ethtool.c

@@ -214,10 +214,6 @@ vmxnet3_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
 
 
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
 		sizeof(drvinfo->bus_info));
 		sizeof(drvinfo->bus_info));
-	drvinfo->n_stats = vmxnet3_get_sset_count(netdev, ETH_SS_STATS);
-	drvinfo->testinfo_len = 0;
-	drvinfo->eedump_len   = 0;
-	drvinfo->regdump_len  = vmxnet3_get_regs_len(netdev);
 }
 }
 
 
 
 

+ 0 - 1
drivers/net/wireless/ipw2x00/ipw2200.c

@@ -10470,7 +10470,6 @@ static void ipw_ethtool_get_drvinfo(struct net_device *dev,
 		 vers, date);
 		 vers, date);
 	strlcpy(info->bus_info, pci_name(p->pci_dev),
 	strlcpy(info->bus_info, pci_name(p->pci_dev),
 		sizeof(info->bus_info));
 		sizeof(info->bus_info));
-	info->eedump_len = IPW_EEPROM_IMAGE_SIZE;
 }
 }
 
 
 static u32 ipw_ethtool_get_link(struct net_device *dev)
 static u32 ipw_ethtool_get_link(struct net_device *dev)