File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/net/ethernet/marvell/octeontx2/nic Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1316,7 +1316,6 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf)
13161316 if (err )
13171317 goto fail ;
13181318
1319- get_cpu ();
13201319 /* Allocate pointers and free them to aura/pool */
13211320 for (qidx = 0 ; qidx < hw -> tx_queues ; qidx ++ ) {
13221321 pool_id = otx2_get_pool_idx (pfvf , AURA_NIX_SQ , qidx );
@@ -1334,13 +1333,14 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf)
13341333 err = otx2_alloc_rbuf (pfvf , pool , & bufptr );
13351334 if (err )
13361335 goto err_mem ;
1336+ get_cpu ();
13371337 pfvf -> hw_ops -> aura_freeptr (pfvf , pool_id , bufptr );
1338+ put_cpu ();
13381339 sq -> sqb_ptrs [sq -> sqb_count ++ ] = (u64 )bufptr ;
13391340 }
13401341 }
13411342
13421343err_mem :
1343- put_cpu ();
13441344 return err ? - ENOMEM : 0 ;
13451345
13461346fail :
You can’t perform that action at this time.
0 commit comments