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)
1370
1370
if (err )
1371
1371
goto fail ;
1372
1372
1373
- get_cpu ();
1374
1373
/* Allocate pointers and free them to aura/pool */
1375
1374
for (qidx = 0 ; qidx < hw -> tot_tx_queues ; qidx ++ ) {
1376
1375
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)
1388
1387
err = otx2_alloc_rbuf (pfvf , pool , & bufptr );
1389
1388
if (err )
1390
1389
goto err_mem ;
1390
+ get_cpu ();
1391
1391
pfvf -> hw_ops -> aura_freeptr (pfvf , pool_id , bufptr );
1392
+ put_cpu ();
1392
1393
sq -> sqb_ptrs [sq -> sqb_count ++ ] = (u64 )bufptr ;
1393
1394
}
1394
1395
}
1395
1396
1396
1397
err_mem :
1397
- put_cpu ();
1398
1398
return err ? - ENOMEM : 0 ;
1399
1399
1400
1400
fail :
You can’t perform that action at this time.
0 commit comments