aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2009-11-29 12:57:46 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-02 03:50:26 -0500
commit0dffc83e5b831df1df83dfe32a0c267347f9950b (patch)
treedad072dd1c206cdcb0e55ccfa92276a1bca54123 /drivers/net/benet/be.h
parentb7b83ac39a177741a378d728d82e87de9b0a01a5 (diff)
be2net: fix unnecessary access to hardware to get link, port info
Every time while doing ethtool->get_settings we are accessing the hardware to get link status and port information. This is not necessary. We now use the cached copy for this info and update it when the link status changes. From: Suresh R <sureshr@serverengines.com> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r--drivers/net/benet/be.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index d90cc015abb3..12247480a1f8 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -272,6 +272,8 @@ struct be_adapter {
272 u32 cap; 272 u32 cap;
273 u32 rx_fc; /* Rx flow control */ 273 u32 rx_fc; /* Rx flow control */
274 u32 tx_fc; /* Tx flow control */ 274 u32 tx_fc; /* Tx flow control */
275 int link_speed;
276 u8 port_type;
275}; 277};
276 278
277extern const struct ethtool_ops be_ethtool_ops; 279extern const struct ethtool_ops be_ethtool_ops;