@@ -1263,11 +1263,11 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
12631263{
12641264 oct_ipsec_main_t * im = & oct_ipsec_main ;
12651265 oct_txq_t * ctq = vnet_dev_get_tx_queue_data (txq );
1266+ u64 aura_handle = ctq -> aura_handle ;
12661267 vnet_dev_t * dev = txq -> port -> dev ;
12671268 oct_device_t * cd = vnet_dev_get_data (dev );
12681269 u32 current_sq0 , current_sq1 , current_sq2 , current_sq3 ;
12691270 u64 sq_handle0 , sq_handle1 , sq_handle2 , sq_handle3 ;
1270- u64 aura_handle0 , aura_handle1 , aura_handle2 , aura_handle3 ;
12711271 u32 sa0_index , sa1_index , sa2_index , sa3_index ;
12721272 u32 current_sa0_index = ~0 , current_sa1_index = ~0 ;
12731273 u32 current_sa2_index = ~0 , current_sa3_index = ~0 ;
@@ -1297,11 +1297,6 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
12971297 sq_handle2 = 0 ;
12981298 sq_handle3 = 0 ;
12991299
1300- aura_handle0 = 0 ;
1301- aura_handle1 = 0 ;
1302- aura_handle2 = 0 ;
1303- aura_handle3 = 0 ;
1304-
13051300 current_sq0 = ~0 ;
13061301 current_sq1 = ~0 ;
13071302 current_sq2 = ~0 ;
@@ -1441,7 +1436,6 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
14411436 ctq = cd -> ctqs [sq0 ];
14421437 sq = & ctq -> sq ;
14431438 sq_handle0 = sq -> qid ;
1444- aura_handle0 = ctq -> aura_handle ;
14451439 n_left0 = oct_check_fc_nix (sq , & ctq -> cached_pkts , n_packets >> 2 );
14461440 current_sq0 = sq0 ;
14471441 }
@@ -1450,7 +1444,6 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
14501444 ctq = cd -> ctqs [sq1 ];
14511445 sq = & ctq -> sq ;
14521446 sq_handle1 = sq -> qid ;
1453- aura_handle1 = ctq -> aura_handle ;
14541447 n_left1 = oct_check_fc_nix (sq , & ctq -> cached_pkts , n_packets >> 2 );
14551448 current_sq1 = sq1 ;
14561449 }
@@ -1459,7 +1452,6 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
14591452 ctq = cd -> ctqs [sq2 ];
14601453 sq = & ctq -> sq ;
14611454 sq_handle2 = sq -> qid ;
1462- aura_handle2 = ctq -> aura_handle ;
14631455 n_left2 = oct_check_fc_nix (sq , & ctq -> cached_pkts , n_packets >> 2 );
14641456 current_sq2 = sq2 ;
14651457 }
@@ -1468,7 +1460,6 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
14681460 ctq = cd -> ctqs [sq3 ];
14691461 sq = & ctq -> sq ;
14701462 sq_handle3 = sq -> qid ;
1471- aura_handle3 = ctq -> aura_handle ;
14721463 n_left3 = oct_check_fc_nix (sq , & ctq -> cached_pkts , n_packets >> 2 );
14731464 current_sq3 = sq3 ;
14741465 }
@@ -1480,13 +1471,13 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
14801471 lmt_arg = ROC_CN10K_CPT_LMT_ARG | (uint64_t ) core_lmt_id ;
14811472 if (quad_bit == 0x0F )
14821473 {
1483- oct_prepare_ipsec_inst (vm , b [0 ], sq_handle0 , aura_handle0 ,
1474+ oct_prepare_ipsec_inst (vm , b [0 ], sq_handle0 , aura_handle ,
14841475 & pkt_meta [0 ], & inst0 , & n_dwords [0 ], sess0 );
1485- oct_prepare_ipsec_inst (vm , b [1 ], sq_handle1 , aura_handle1 ,
1476+ oct_prepare_ipsec_inst (vm , b [1 ], sq_handle1 , aura_handle ,
14861477 & pkt_meta [1 ], & inst1 , & n_dwords [1 ], sess1 );
1487- oct_prepare_ipsec_inst (vm , b [2 ], sq_handle2 , aura_handle2 ,
1478+ oct_prepare_ipsec_inst (vm , b [2 ], sq_handle2 , aura_handle ,
14881479 & pkt_meta [2 ], & inst2 , & n_dwords [2 ], sess2 );
1489- oct_prepare_ipsec_inst (vm , b [3 ], sq_handle3 , aura_handle3 ,
1480+ oct_prepare_ipsec_inst (vm , b [3 ], sq_handle3 , aura_handle ,
14901481 & pkt_meta [3 ], & inst3 , & n_dwords [3 ], sess3 );
14911482
14921483 oct_submit_quad_packets (lmt_arg , cd , & inst0 , & inst1 , & inst2 , & inst3 ,
@@ -1502,7 +1493,7 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
15021493 {
15031494 if (n_left0 )
15041495 {
1505- oct_prepare_ipsec_inst (vm , b [0 ], sq_handle0 , aura_handle0 ,
1496+ oct_prepare_ipsec_inst (vm , b [0 ], sq_handle0 , aura_handle ,
15061497 & pkt_meta [0 ], & inst0 , & n_dwords [0 ],
15071498 sess0 ),
15081499 roc_lmt_mov_seg ((void * ) lmt_line [count ], & inst0 , 4 );
@@ -1516,7 +1507,7 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
15161507 }
15171508 if (n_left1 )
15181509 {
1519- oct_prepare_ipsec_inst (vm , b [1 ], sq_handle1 , aura_handle1 ,
1510+ oct_prepare_ipsec_inst (vm , b [1 ], sq_handle1 , aura_handle ,
15201511 & pkt_meta [1 ], & inst1 , & n_dwords [1 ],
15211512 sess1 );
15221513 roc_lmt_mov_seg ((void * ) lmt_line [count ], & inst1 , 4 );
@@ -1532,7 +1523,7 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
15321523 }
15331524 if (n_left2 )
15341525 {
1535- oct_prepare_ipsec_inst (vm , b [2 ], sq_handle2 , aura_handle2 ,
1526+ oct_prepare_ipsec_inst (vm , b [2 ], sq_handle2 , aura_handle ,
15361527 & pkt_meta [2 ], & inst2 , & n_dwords [2 ],
15371528 sess2 );
15381529 roc_lmt_mov_seg ((void * ) lmt_line [count ], & inst2 , 4 );
@@ -1548,7 +1539,7 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
15481539 }
15491540 if (n_left3 )
15501541 {
1551- oct_prepare_ipsec_inst (vm , b [3 ], sq_handle3 , aura_handle3 ,
1542+ oct_prepare_ipsec_inst (vm , b [3 ], sq_handle3 , aura_handle ,
15521543 & pkt_meta [3 ], & inst3 , & n_dwords [3 ],
15531544 sess3 );
15541545 roc_lmt_mov_seg ((void * ) lmt_line [count ], & inst3 , 4 );
@@ -1618,7 +1609,6 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
16181609 ctq = cd -> ctqs [sq0 ];
16191610 sq = & ctq -> sq ;
16201611 sq_handle0 = sq -> qid ;
1621- aura_handle0 = ctq -> aura_handle ;
16221612 n_left0 = oct_check_fc_nix (sq , & ctq -> cached_pkts , n_packets );
16231613 current_sq0 = sq0 ;
16241614 }
@@ -1629,7 +1619,7 @@ oct_pkts_send_ipsec (vlib_main_t *vm, vlib_node_runtime_t *node,
16291619 goto next ;
16301620 }
16311621
1632- oct_prepare_ipsec_inst (vm , b [0 ], sq_handle0 , aura_handle0 , & pkt_meta [0 ],
1622+ oct_prepare_ipsec_inst (vm , b [0 ], sq_handle0 , aura_handle , & pkt_meta [0 ],
16331623 & inst0 , & n_dwords [0 ], sess0 );
16341624
16351625 roc_lmt_mov_seg ((void * ) lmt_line [0 ], & inst0 , 4 );
0 commit comments