summaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/e1000.h
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2008-11-21 17:00:22 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-21 17:00:22 -0800
commit8452759060ad46fc071a7d5bbf1647df5ea2ceab (patch)
treed6dc357a82e32e1c021773dfe9163e053fbdd711 /drivers/net/e1000e/e1000.h
parent0285c8dcaeaa73ddadc4f38383e5bbc03c394a29 (diff)
downloadop-kernel-dev-8452759060ad46fc071a7d5bbf1647df5ea2ceab.zip
op-kernel-dev-8452759060ad46fc071a7d5bbf1647df5ea2ceab.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h
index c55fd6f..473c414 100644
--- a/drivers/net/e1000e/e1000.h
+++ b/drivers/net/e1000e/e1000.h
@@ -193,6 +193,7 @@ struct e1000_adapter {
u16 mng_vlan_id;
u16 link_speed;
u16 link_duplex;
+ u16 eeprom_vers;
spinlock_t tx_queue_lock; /* prevent concurrent tail updates */
OpenPOWER on IntegriCloud