aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTuomas Taipale <tuomas.taipale@nokia.com>2022-11-14 11:14:41 +0000
committerPetri Savolainen <petri.savolainen@nokia.com>2022-11-21 10:46:19 +0200
commit5c3eea9c4ecdca8b0f7522100635e990575fe214 (patch)
tree1289db45ef7e93310e16e58390c173ebd8be242a /test
parentbcdc372d56faf941e5c000f5df11fe8a28b3d937 (diff)
test: ipsecfwd: fix pktout operation mode setting
With hashed output, different packet I/O instances might end up sending packets to the same output queue, thus pktout operation mode setting cannot be inferred based on queue vs. thread count. Remove the logic and keep output operation mode always as multi-thread safe. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r--test/performance/odp_ipsecfwd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/performance/odp_ipsecfwd.c b/test/performance/odp_ipsecfwd.c
index b917a976e..b5df7711b 100644
--- a/test/performance/odp_ipsecfwd.c
+++ b/test/performance/odp_ipsecfwd.c
@@ -819,8 +819,6 @@ static odp_bool_t setup_pktios(prog_config_t *config)
pktio->num_tx_qs = config->num_output_qs;
odp_pktout_queue_param_init(&pktout_param);
pktout_param.num_queues = pktio->num_tx_qs;
- pktout_param.op_mode = config->num_thrs > (int)pktio->num_tx_qs ?
- ODP_PKTIO_OP_MT : ODP_PKTIO_OP_MT_UNSAFE;
if (odp_pktout_queue_config(pktio->handle, &pktout_param) < 0) {
ODPH_ERR("Error configuring packet I/O output queues (%s)\n", pktio->name);