[v3,21/26] examples/ipsec-secgw: use separate Rx and Tx queue limits

Message ID 20240814104933.14062-22-bruce.richardson@intel.com (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers
Series add meson config options for queues per port |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Aug. 14, 2024, 10:49 a.m. UTC
Update example app to use the new defines RTE_MAX_ETHPORT_TX_QUEUES
and RTE_MAX_ETHPORT_RX_QUEUES rather than the old define
RTE_MAX_QUEUES_PER_PORT.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
 examples/ipsec-secgw/ipsec-secgw.c | 2 +-
 examples/ipsec-secgw/ipsec.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index e98ad2572e..fc72e10037 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -1050,7 +1050,7 @@  parse_config(const char *q_arg)
 	uint32_t size;
 	uint32_t max_fld[_NUM_FLD] = {
 		RTE_MAX_ETHPORTS,
-		RTE_MAX_QUEUES_PER_PORT,
+		RTE_MAX_ETHPORT_RX_QUEUES,
 		RTE_MAX_LCORE
 	};
 
diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c
index b52b0ffc3d..ff65c1c919 100644
--- a/examples/ipsec-secgw/ipsec.c
+++ b/examples/ipsec-secgw/ipsec.c
@@ -584,7 +584,7 @@  create_inline_session(struct socket_ctx *skt_ctx, struct ipsec_sa *sa,
 				.rss_key_len = sizeof(rss_key),
 			};
 			struct rte_eth_dev_info dev_info;
-			uint16_t queue[RTE_MAX_QUEUES_PER_PORT];
+			uint16_t queue[RTE_MAX_ETHPORT_RX_QUEUES];
 			struct rte_flow_action_rss action_rss;
 			unsigned int i;
 			unsigned int j;