aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitkhaparde@gmail.com>2010-02-19 08:57:12 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-19 20:11:53 -0500
commit91992e446cadbbde1a304de6954afd715af5121e (patch)
treec35db4f51eee079a19018e251ec4f03a9c410d79 /drivers/net/benet/be.h
parent294aedcf875b982e2d3bd6d2d9b8124ccb163bf6 (diff)
be2net: Maintain tx and rx counters in driver
For certain skews of the BE adapter, H/W Tx and Rx counters could be common for more than one interface. Add Tx and Rx counters in the adapter structure (to maintain stats on a per interfae basis). 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 e3a466545d4e..42c7a2bb844f 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -164,6 +164,7 @@ struct be_drvr_stats {
164 ulong be_tx_jiffies; 164 ulong be_tx_jiffies;
165 u64 be_tx_bytes; 165 u64 be_tx_bytes;
166 u64 be_tx_bytes_prev; 166 u64 be_tx_bytes_prev;
167 u64 be_tx_pkts;
167 u32 be_tx_rate; 168 u32 be_tx_rate;
168 169
169 u32 cache_barrier[16]; 170 u32 cache_barrier[16];
@@ -175,6 +176,7 @@ struct be_drvr_stats {
175 ulong be_rx_jiffies; 176 ulong be_rx_jiffies;
176 u64 be_rx_bytes; 177 u64 be_rx_bytes;
177 u64 be_rx_bytes_prev; 178 u64 be_rx_bytes_prev;
179 u64 be_rx_pkts;
178 u32 be_rx_rate; 180 u32 be_rx_rate;
179 /* number of non ether type II frames dropped where 181 /* number of non ether type II frames dropped where
180 * frame len > length field of Mac Hdr */ 182 * frame len > length field of Mac Hdr */