diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2008-11-21 20:00:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 20:00:22 -0500 |
commit | 8452759060ad46fc071a7d5bbf1647df5ea2ceab (patch) | |
tree | d6dc357a82e32e1c021773dfe9163e053fbdd711 /drivers/net/e1000e/e1000.h | |
parent | 0285c8dcaeaa73ddadc4f38383e5bbc03c394a29 (diff) |
e1000e: store EEPROM version number to prevent unnecessary NVM reads
Rather than reading the NVM to get the EEPROM version number everytime the
ethool get_drvinfo function is called, read it once during probe and save
it for future reference.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/e1000.h')
-rw-r--r-- | drivers/net/e1000e/e1000.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h index c55fd6fdb91c..473c41479ece 100644 --- a/drivers/net/e1000e/e1000.h +++ b/drivers/net/e1000e/e1000.h | |||
@@ -193,6 +193,7 @@ struct e1000_adapter { | |||
193 | u16 mng_vlan_id; | 193 | u16 mng_vlan_id; |
194 | u16 link_speed; | 194 | u16 link_speed; |
195 | u16 link_duplex; | 195 | u16 link_duplex; |
196 | u16 eeprom_vers; | ||
196 | 197 | ||
197 | spinlock_t tx_queue_lock; /* prevent concurrent tail updates */ | 198 | spinlock_t tx_queue_lock; /* prevent concurrent tail updates */ |
198 | 199 | ||