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

disable unnecessary code in core

parent 092a8ac4
No related branches found
No related tags found
No related merge requests found
......@@ -3723,13 +3723,11 @@ static int bnx2x_poll(struct napi_struct *napi, int budget)
#ifdef CONFIG_XEN_SME
#if 0
char dbg_buff[DBG_BUF_SIZE];
#endif
int was_there_work = 0;
union eth_rx_cqe *cqe = NULL;
struct eth_fast_path_rx_cqe *cqe_fp = NULL;
#endif
int was_there_work = 0;
int total_work_done = 0;
// u16 tmp_swi_bd_prod, tmp_swi_bd_cons, tmp_swi_comp_prod, tmp_swi_comp_cons;
// u16 tmp_hwi_bd_prod, tmp_hwi_bd_cons, tmp_hwi_comp_prod, tmp_hwi_comp_cons;
#endif
#ifdef BNX2X_STOP_ON_ERROR
......@@ -3780,13 +3778,13 @@ static int bnx2x_poll(struct napi_struct *napi, int budget)
#ifdef CONFIG_XEN_SME
if (lnk_intercept_rx_path) {
if (!bnx2x_has_tx_work(fp)) {
napi_complete(napi);
#if 0
// TODO: check if this should be after napi complete
cqe = &fp->rx_comp_ring[RCQ_BD(fp->swi_comp_cons)];
cqe_fp = &cqe->fast_path_cqe;
napi_complete(napi);
#if 0
tmp_swi_bd_prod = fp->swi_bd_prod;
tmp_swi_bd_cons = fp->swi_bd_cons;
tmp_swi_comp_prod = fp->swi_comp_prod;
......
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