aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2009-11-29 12:57:22 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-02 03:50:26 -0500
commitb7b83ac39a177741a378d728d82e87de9b0a01a5 (patch)
tree7295526e0706d01e50f700c593920bed7fa2def7 /drivers/net/benet
parentca66ef500b874de4bf58e05f9d18ccdce64eabbc (diff)
be2net: Add be_rx_polls counter
Add be_rx_polls to count number of times NAPI called rx poll function. Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be.h2
-rw-r--r--drivers/net/benet/be_ethtool.c2
-rw-r--r--drivers/net/benet/be_main.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index dc7c19e49111..d90cc015abb3 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -170,7 +170,7 @@ struct be_drvr_stats {
170 u32 cache_barrier[16]; 170 u32 cache_barrier[16];
171 171
172 u32 be_ethrx_post_fail;/* number of ethrx buffer alloc failures */ 172 u32 be_ethrx_post_fail;/* number of ethrx buffer alloc failures */
173 u32 be_polls; /* number of times NAPI called poll function */ 173 u32 be_rx_polls; /* number of times NAPI called poll function */
174 u32 be_rx_events; /* number of ucast rx completion events */ 174 u32 be_rx_events; /* number of ucast rx completion events */
175 u32 be_rx_compl; /* number of rx completion entries processed */ 175 u32 be_rx_compl; /* number of rx completion entries processed */
176 ulong be_rx_jiffies; 176 ulong be_rx_jiffies;
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index 9eabed4e3b92..3c05f2b99ab6 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -55,7 +55,7 @@ static const struct be_ethtool_stat et_stats[] = {
55 {DRVSTAT_INFO(be_tx_stops)}, 55 {DRVSTAT_INFO(be_tx_stops)},
56 {DRVSTAT_INFO(be_fwd_reqs)}, 56 {DRVSTAT_INFO(be_fwd_reqs)},
57 {DRVSTAT_INFO(be_tx_wrbs)}, 57 {DRVSTAT_INFO(be_tx_wrbs)},
58 {DRVSTAT_INFO(be_polls)}, 58 {DRVSTAT_INFO(be_rx_polls)},
59 {DRVSTAT_INFO(be_tx_events)}, 59 {DRVSTAT_INFO(be_tx_events)},
60 {DRVSTAT_INFO(be_rx_events)}, 60 {DRVSTAT_INFO(be_rx_events)},
61 {DRVSTAT_INFO(be_tx_compl)}, 61 {DRVSTAT_INFO(be_tx_compl)},
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 10262fab686b..f3e97ab3321d 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -1381,6 +1381,7 @@ int be_poll_rx(struct napi_struct *napi, int budget)
1381 struct be_eth_rx_compl *rxcp; 1381 struct be_eth_rx_compl *rxcp;
1382 u32 work_done; 1382 u32 work_done;
1383 1383
1384 adapter->stats.drvr_stats.be_rx_polls++;
1384 for (work_done = 0; work_done < budget; work_done++) { 1385 for (work_done = 0; work_done < budget; work_done++) {
1385 rxcp = be_rx_compl_get(adapter); 1386 rxcp = be_rx_compl_get(adapter);
1386 if (!rxcp) 1387 if (!rxcp)