aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2009-11-29 17:57:46 +0000
committerDavid S. Miller <davem@davemloft.net>2009-12-02 00:50:26 -0800
commit0dffc83e5b831df1df83dfe32a0c267347f9950b (patch)
treedad072dd1c206cdcb0e55ccfa92276a1bca54123 /drivers/net/benet/be.h
parentb7b83ac39a177741a378d728d82e87de9b0a01a5 (diff)
downloadkernel_samsung_crespo-0dffc83e5b831df1df83dfe32a0c267347f9950b.zip
kernel_samsung_crespo-0dffc83e5b831df1df83dfe32a0c267347f9950b.tar.gz
kernel_samsung_crespo-0dffc83e5b831df1df83dfe32a0c267347f9950b.tar.bz2
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 d90cc01..1224748 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -272,6 +272,8 @@ struct be_adapter {
u32 cap;
u32 rx_fc; /* Rx flow control */
u32 tx_fc; /* Tx flow control */
+ int link_speed;
+ u8 port_type;
};
extern const struct ethtool_ops be_ethtool_ops;