aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ixgbe/ixgbe.h2
-rw-r--r--drivers/net/ixgbe/ixgbe_ethtool.c9
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c3
3 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 0ea791ae0d14..e98ace8c578d 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -310,6 +310,8 @@ struct ixgbe_adapter {
310 struct work_struct watchdog_task; 310 struct work_struct watchdog_task;
311 struct work_struct sfp_task; 311 struct work_struct sfp_task;
312 struct timer_list sfp_timer; 312 struct timer_list sfp_timer;
313
314 u16 eeprom_version;
313}; 315};
314 316
315enum ixbge_state_t { 317enum ixbge_state_t {
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c
index 14e661e0a250..54d96cb05b48 100644
--- a/drivers/net/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ixgbe/ixgbe_ethtool.c
@@ -679,10 +679,17 @@ static void ixgbe_get_drvinfo(struct net_device *netdev,
679 struct ethtool_drvinfo *drvinfo) 679 struct ethtool_drvinfo *drvinfo)
680{ 680{
681 struct ixgbe_adapter *adapter = netdev_priv(netdev); 681 struct ixgbe_adapter *adapter = netdev_priv(netdev);
682 char firmware_version[32];
682 683
683 strncpy(drvinfo->driver, ixgbe_driver_name, 32); 684 strncpy(drvinfo->driver, ixgbe_driver_name, 32);
684 strncpy(drvinfo->version, ixgbe_driver_version, 32); 685 strncpy(drvinfo->version, ixgbe_driver_version, 32);
685 strncpy(drvinfo->fw_version, "N/A", 32); 686
687 sprintf(firmware_version, "%d.%d-%d",
688 (adapter->eeprom_version & 0xF000) >> 12,
689 (adapter->eeprom_version & 0x0FF0) >> 4,
690 adapter->eeprom_version & 0x000F);
691
692 strncpy(drvinfo->fw_version, firmware_version, 32);
686 strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32); 693 strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32);
687 drvinfo->n_stats = IXGBE_STATS_LEN; 694 drvinfo->n_stats = IXGBE_STATS_LEN;
688 drvinfo->regdump_len = ixgbe_get_regs_len(netdev); 695 drvinfo->regdump_len = ixgbe_get_regs_len(netdev);
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 5db82b5fa9b3..dceae37fd57f 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -4191,6 +4191,9 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
4191 "PCI-Express slot is required.\n"); 4191 "PCI-Express slot is required.\n");
4192 } 4192 }
4193 4193
4194 /* save off EEPROM version number */
4195 hw->eeprom.ops.read(hw, 0x29, &adapter->eeprom_version);
4196
4194 /* reset the hardware with the new settings */ 4197 /* reset the hardware with the new settings */
4195 hw->mac.ops.start_hw(hw); 4198 hw->mac.ops.start_hw(hw);
4196 4199