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

add indexes in NIC datastructure for async implementation

parent 28a4eede
No related branches found
No related tags found
No related merge requests found
......@@ -589,6 +589,16 @@ struct bnx2x_fastpath {
u16 rx_comp_prod;
u16 rx_comp_cons;
u16 rx_sge_prod;
#ifdef CONFIG_XEN_SME
u16 hwi_bd_prod;
u16 hwi_bd_cons;
u16 hwi_comp_prod;
u16 hwi_comp_cons;
u16 swi_bd_prod;
u16 swi_bd_cons;
u16 swi_comp_prod;
u16 swi_comp_cons;
#endif
/* The last maximal completed SGE */
u16 last_max_sge;
__le16 *rx_cons_sb;
......
......@@ -4609,6 +4609,16 @@ static int bnx2x_alloc_rx_bds(struct bnx2x_fastpath *fp,
bnx2x_fp_stats(bp, fp)->eth_q_stats.rx_skb_alloc_failed += failure_cnt;
#ifdef CONFIG_XEN_SME
fp->hwi_bd_prod = fp->rx_bd_prod;
fp->hwi_bd_cons = fp->rx_bd_cons;
fp->hwi_comp_prod = fp->rx_comp_prod;
fp->hwi_comp_cons = fp->rx_comp_cons;
fp->swi_bd_prod = fp->rx_bd_prod;
fp->swi_bd_cons = fp->rx_bd_cons;
fp->swi_comp_prod = fp->rx_comp_prod;
fp->swi_comp_cons = fp->rx_comp_cons;
#endif
return i - failure_cnt;
}
......
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