Re: [dpdk-dev] [PATCH 2/2] net/bnxt: fix stat context allocation

2021-10-31 Thread Ajit Khaparde
On Fri, Oct 29, 2021 at 8:30 PM Kalesh A P wrote: > > From: Kalesh AP > > stat_ctx_alloc is called within the context of each rx/tx ring. > i.e from bnxt_alloc_hwrm_rx_ring and bnxt_alloc_hwrm_tx_ring(). > So, there is no need to invoke bnxt_alloc_all_hwrm_stat_ctxs() > from bnxt_start_nic(). > >

[dpdk-dev] [PATCH 2/2] net/bnxt: fix stat context allocation

2021-10-29 Thread Kalesh A P
From: Kalesh AP stat_ctx_alloc is called within the context of each rx/tx ring. i.e from bnxt_alloc_hwrm_rx_ring and bnxt_alloc_hwrm_tx_ring(). So, there is no need to invoke bnxt_alloc_all_hwrm_stat_ctxs() from bnxt_start_nic(). Fixes: 657c2a7f1dd4 ("net/bnxt: create aggregation rings when need