Commit b7b83ac3 authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller

be2net: Add be_rx_polls counter

Add be_rx_polls to count number of times NAPI called rx poll function.
Signed-off-by: default avatarAjit Khaparde <ajitk@serverengines.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca66ef50
...@@ -170,7 +170,7 @@ struct be_drvr_stats { ...@@ -170,7 +170,7 @@ struct be_drvr_stats {
u32 cache_barrier[16]; u32 cache_barrier[16];
u32 be_ethrx_post_fail;/* number of ethrx buffer alloc failures */ u32 be_ethrx_post_fail;/* number of ethrx buffer alloc failures */
u32 be_polls; /* number of times NAPI called poll function */ u32 be_rx_polls; /* number of times NAPI called poll function */
u32 be_rx_events; /* number of ucast rx completion events */ u32 be_rx_events; /* number of ucast rx completion events */
u32 be_rx_compl; /* number of rx completion entries processed */ u32 be_rx_compl; /* number of rx completion entries processed */
ulong be_rx_jiffies; ulong be_rx_jiffies;
......
...@@ -55,7 +55,7 @@ static const struct be_ethtool_stat et_stats[] = { ...@@ -55,7 +55,7 @@ static const struct be_ethtool_stat et_stats[] = {
{DRVSTAT_INFO(be_tx_stops)}, {DRVSTAT_INFO(be_tx_stops)},
{DRVSTAT_INFO(be_fwd_reqs)}, {DRVSTAT_INFO(be_fwd_reqs)},
{DRVSTAT_INFO(be_tx_wrbs)}, {DRVSTAT_INFO(be_tx_wrbs)},
{DRVSTAT_INFO(be_polls)}, {DRVSTAT_INFO(be_rx_polls)},
{DRVSTAT_INFO(be_tx_events)}, {DRVSTAT_INFO(be_tx_events)},
{DRVSTAT_INFO(be_rx_events)}, {DRVSTAT_INFO(be_rx_events)},
{DRVSTAT_INFO(be_tx_compl)}, {DRVSTAT_INFO(be_tx_compl)},
......
...@@ -1381,6 +1381,7 @@ int be_poll_rx(struct napi_struct *napi, int budget) ...@@ -1381,6 +1381,7 @@ int be_poll_rx(struct napi_struct *napi, int budget)
struct be_eth_rx_compl *rxcp; struct be_eth_rx_compl *rxcp;
u32 work_done; u32 work_done;
adapter->stats.drvr_stats.be_rx_polls++;
for (work_done = 0; work_done < budget; work_done++) { for (work_done = 0; work_done < budget; work_done++) {
rxcp = be_rx_compl_get(adapter); rxcp = be_rx_compl_get(adapter);
if (!rxcp) if (!rxcp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment