Lines Matching refs:ts_params
274 struct ipsec_testsuite_params *ts_params = &testsuite_params; in testsuite_setup() local
283 memset(ts_params, 0, sizeof(*ts_params)); in testsuite_setup()
307 ts_params->valid_dev = i; in testsuite_setup()
308 ts_params->valid_dev_found = 1; in testsuite_setup()
313 if (ts_params->valid_dev_found == 0) in testsuite_setup()
316 ts_params->mbuf_pool = rte_pktmbuf_pool_create( in testsuite_setup()
320 if (ts_params->mbuf_pool == NULL) { in testsuite_setup()
325 ts_params->cop_mpool = rte_crypto_op_pool_create( in testsuite_setup()
333 if (ts_params->cop_mpool == NULL) { in testsuite_setup()
339 dev_id = ts_params->valid_dev; in testsuite_setup()
343 ts_params->conf.nb_queue_pairs = info.max_nb_queue_pairs; in testsuite_setup()
344 ts_params->conf.socket_id = SOCKET_ID_ANY; in testsuite_setup()
345 ts_params->conf.ff_disable = RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO; in testsuite_setup()
361 ts_params->qp_conf.mp_session_private = rte_mempool_create( in testsuite_setup()
369 TEST_ASSERT_NOT_NULL(ts_params->qp_conf.mp_session_private, in testsuite_setup()
372 ts_params->qp_conf.mp_session = in testsuite_setup()
376 TEST_ASSERT_NOT_NULL(ts_params->qp_conf.mp_session, in testsuite_setup()
380 &ts_params->conf), in testsuite_setup()
382 dev_id, ts_params->conf.nb_queue_pairs); in testsuite_setup()
384 ts_params->qp_conf.nb_descriptors = DEFAULT_NUM_OPS_INFLIGHT; in testsuite_setup()
387 dev_id, 0, &ts_params->qp_conf, in testsuite_setup()
398 struct ipsec_testsuite_params *ts_params = &testsuite_params; in testsuite_teardown() local
400 if (ts_params->mbuf_pool != NULL) { in testsuite_teardown()
402 rte_mempool_avail_count(ts_params->mbuf_pool)); in testsuite_teardown()
403 rte_mempool_free(ts_params->mbuf_pool); in testsuite_teardown()
404 ts_params->mbuf_pool = NULL; in testsuite_teardown()
407 if (ts_params->cop_mpool != NULL) { in testsuite_teardown()
409 rte_mempool_avail_count(ts_params->cop_mpool)); in testsuite_teardown()
410 rte_mempool_free(ts_params->cop_mpool); in testsuite_teardown()
411 ts_params->cop_mpool = NULL; in testsuite_teardown()
415 if (ts_params->qp_conf.mp_session != NULL) { in testsuite_teardown()
416 rte_mempool_free(ts_params->qp_conf.mp_session); in testsuite_teardown()
417 ts_params->qp_conf.mp_session = NULL; in testsuite_teardown()
420 if (ts_params->qp_conf.mp_session_private != NULL) { in testsuite_teardown()
421 rte_mempool_free(ts_params->qp_conf.mp_session_private); in testsuite_teardown()
422 ts_params->qp_conf.mp_session_private = NULL; in testsuite_teardown()
429 struct ipsec_testsuite_params *ts_params = &testsuite_params; in ut_setup() local
436 ts_params->conf.socket_id = SOCKET_ID_ANY; in ut_setup()
439 TEST_ASSERT_SUCCESS(rte_cryptodev_start(ts_params->valid_dev), in ut_setup()
441 ts_params->valid_dev); in ut_setup()
449 struct ipsec_testsuite_params *ts_params = &testsuite_params; in ut_teardown() local
482 if (ts_params->mbuf_pool != NULL) in ut_teardown()
484 rte_mempool_avail_count(ts_params->mbuf_pool)); in ut_teardown()
487 rte_cryptodev_stop(ts_params->valid_dev); in ut_teardown()
760 struct ipsec_testsuite_params *ts_params = &testsuite_params; in crypto_dequeue_burst() local
767 k = rte_cryptodev_dequeue_burst(ts_params->valid_dev, 0, in crypto_dequeue_burst()
783 struct ipsec_testsuite_params *ts_params = &testsuite_params; in crypto_ipsec() local
796 k = rte_cryptodev_enqueue_burst(ts_params->valid_dev, 0, in crypto_ipsec()
903 struct ipsec_testsuite_params *ts_params = &testsuite_params; in crypto_ipsec_2sa() local
918 k = rte_cryptodev_enqueue_burst(ts_params->valid_dev, 0, in crypto_ipsec_2sa()
1036 struct ipsec_testsuite_params *ts_params = &testsuite_params; in crypto_ipsec_2sa_4grp() local
1053 k = rte_cryptodev_enqueue_burst(ts_params->valid_dev, 0, in crypto_ipsec_2sa_4grp()
1124 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_crypto_op_alloc() local
1130 ut_params->cop[j] = rte_crypto_op_alloc(ts_params->cop_mpool, in test_ipsec_crypto_op_alloc()
1239 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_crypto_inb_burst_null_null() local
1257 ts_params->mbuf_pool, null_encrypted_data, in test_ipsec_crypto_inb_burst_null_null()
1341 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_crypto_outb_burst_null_null() local
1357 ut_params->ibuf[j] = setup_test_string(ts_params->mbuf_pool, in test_ipsec_crypto_outb_burst_null_null()
1365 ts_params->mbuf_pool, in test_ipsec_crypto_outb_burst_null_null()
1449 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_inline_crypto_inb_burst_null_null() local
1467 ts_params->mbuf_pool, in test_ipsec_inline_crypto_inb_burst_null_null()
1475 ts_params->mbuf_pool, in test_ipsec_inline_crypto_inb_burst_null_null()
1527 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_inline_proto_inb_burst_null_null() local
1545 ts_params->mbuf_pool, in test_ipsec_inline_proto_inb_burst_null_null()
1552 ts_params->mbuf_pool, in test_ipsec_inline_proto_inb_burst_null_null()
1635 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_inline_crypto_outb_burst_null_null() local
1652 ut_params->ibuf[j] = setup_test_string(ts_params->mbuf_pool, in test_ipsec_inline_crypto_outb_burst_null_null()
1660 ts_params->mbuf_pool, in test_ipsec_inline_crypto_outb_burst_null_null()
1713 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_inline_proto_outb_burst_null_null() local
1730 ut_params->ibuf[j] = setup_test_string(ts_params->mbuf_pool, in test_ipsec_inline_proto_outb_burst_null_null()
1738 ts_params->mbuf_pool, in test_ipsec_inline_proto_outb_burst_null_null()
1790 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_lksd_proto_inb_burst_null_null() local
1807 ut_params->ibuf[j] = setup_test_string(ts_params->mbuf_pool, in test_ipsec_lksd_proto_inb_burst_null_null()
1905 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_replay_inb_inside_null_null() local
1918 ut_params->ibuf[0] = setup_test_string_tunneled(ts_params->mbuf_pool, in test_ipsec_replay_inb_inside_null_null()
1945 ts_params->mbuf_pool, null_encrypted_data, in test_ipsec_replay_inb_inside_null_null()
1998 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_replay_inb_outside_null_null() local
2011 ut_params->ibuf[0] = setup_test_string_tunneled(ts_params->mbuf_pool, in test_ipsec_replay_inb_outside_null_null()
2038 ts_params->mbuf_pool, null_encrypted_data, in test_ipsec_replay_inb_outside_null_null()
2098 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_replay_inb_repeat_null_null() local
2111 ut_params->ibuf[0] = setup_test_string_tunneled(ts_params->mbuf_pool, in test_ipsec_replay_inb_repeat_null_null()
2141 ts_params->mbuf_pool, null_encrypted_data, in test_ipsec_replay_inb_repeat_null_null()
2197 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_replay_inb_inside_burst_null_null() local
2212 ut_params->ibuf[0] = setup_test_string_tunneled(ts_params->mbuf_pool, in test_ipsec_replay_inb_inside_burst_null_null()
2244 ts_params->mbuf_pool, null_encrypted_data, in test_ipsec_replay_inb_inside_burst_null_null()
2327 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_crypto_inb_burst_2sa_null_null() local
2359 ts_params->mbuf_pool, null_encrypted_data, in test_ipsec_crypto_inb_burst_2sa_null_null()
2413 struct ipsec_testsuite_params *ts_params = &testsuite_params; in test_ipsec_crypto_inb_burst_2sa_4grp_null_null() local
2446 ts_params->mbuf_pool, null_encrypted_data, in test_ipsec_crypto_inb_burst_2sa_4grp_null_null()