Skip to content
Snippets Groups Projects
Commit cf75c2cf authored by Aastha Mehta's avatar Aastha Mehta
Browse files

debug info about work done in polling function

parent d2b476cc
No related branches found
No related tags found
No related merge requests found
......@@ -3621,6 +3621,7 @@ static int bnx2x_poll(struct napi_struct *napi, int budget)
int was_there_work = 0;
union eth_rx_cqe *cqe = NULL;
struct eth_fast_path_rx_cqe *cqe_fp = NULL;
int total_work_done = 0;
#endif
#ifdef BNX2X_STOP_ON_ERROR
......@@ -3639,6 +3640,7 @@ redo_poll:
was_there_work = bnx2x_has_rx_work(fp);
if (was_there_work)
rx_work_done = bnx2x_rx_int(fp, budget);
total_work_done += rx_work_done;
#else
rx_work_done = (bnx2x_has_rx_work(fp)) ? bnx2x_rx_int(fp, budget) : 0;
#endif
......@@ -3695,16 +3697,16 @@ redo_poll:
#endif
memset(dbg_buff, 0, DBG_BUF_SIZE);
sprintf(dbg_buff,
"REDO POLL rx_work_done: %d, was_there_work: %d"
, rx_work_done, was_there_work);
"REDO POLL work done: %d, total work: %d, was_there_work: %d"
, rx_work_done, total_work_done, was_there_work);
xsl_print_rx_data(bp->dev, fp->index, fp->rx_bd_prod, fp->rx_bd_cons,
fp->rx_comp_prod, fp->rx_comp_cons, dbg_buff);
goto redo_poll;
}
memset(dbg_buff, 0, DBG_BUF_SIZE);
sprintf(dbg_buff, "NAPI COMPLETE work done: %d was there work: %d"
, rx_work_done, was_there_work);
sprintf(dbg_buff, "NAPI COMPLETE work done: %d, total work: %d, was there work: %d"
, rx_work_done, total_work_done, was_there_work);
xsl_print_rx_data(bp->dev, fp->index, fp->rx_bd_prod, fp->rx_bd_cons,
fp->rx_comp_prod, fp->rx_comp_cons, dbg_buff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment