aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_main.c
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/be_main.c
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/be_main.c')
-rw-r--r--drivers/net/benet/be_main.c1
1 files changed, 1 insertions, 0 deletions
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)