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 @@ -1370,7 +1370,6 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf)
13701370 if (err )
13711371 goto fail ;
13721372
1373- get_cpu ();
13741373 /* Allocate pointers and free them to aura/pool */
13751374 for (qidx = 0 ; qidx < hw -> tot_tx_queues ; qidx ++ ) {
13761375 pool_id = otx2_get_pool_idx (pfvf , AURA_NIX_SQ , qidx );
@@ -1388,13 +1387,14 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf)
13881387 err = otx2_alloc_rbuf (pfvf , pool , & bufptr );
13891388 if (err )
13901389 goto err_mem ;
1390+ get_cpu ();
13911391 pfvf -> hw_ops -> aura_freeptr (pfvf , pool_id , bufptr );
1392+ put_cpu ();
13921393 sq -> sqb_ptrs [sq -> sqb_count ++ ] = (u64 )bufptr ;
13931394 }
13941395 }
13951396
13961397err_mem :
1397- put_cpu ();
13981398 return err ? - ENOMEM : 0 ;
13991399
14001400fail :
You can’t perform that action at this time.
0 commit comments