Lines Matching refs:ts_params

547 	struct crypto_testsuite_params *ts_params = &testsuite_params;  in testsuite_setup()  local
552 memset(ts_params, 0, sizeof(*ts_params)); in testsuite_setup()
554 ts_params->mbuf_pool = rte_mempool_lookup("CRYPTO_MBUFPOOL"); in testsuite_setup()
555 if (ts_params->mbuf_pool == NULL) { in testsuite_setup()
557 ts_params->mbuf_pool = rte_pktmbuf_pool_create( in testsuite_setup()
561 if (ts_params->mbuf_pool == NULL) { in testsuite_setup()
567 ts_params->large_mbuf_pool = rte_mempool_lookup( in testsuite_setup()
569 if (ts_params->large_mbuf_pool == NULL) { in testsuite_setup()
571 ts_params->large_mbuf_pool = rte_pktmbuf_pool_create( in testsuite_setup()
575 if (ts_params->large_mbuf_pool == NULL) { in testsuite_setup()
582 ts_params->op_mpool = rte_crypto_op_pool_create( in testsuite_setup()
590 if (ts_params->op_mpool == NULL) { in testsuite_setup()
611 ts_params->valid_devs[ts_params->valid_dev_count++] = i; in testsuite_setup()
614 if (ts_params->valid_dev_count < 1) in testsuite_setup()
619 dev_id = ts_params->valid_devs[0]; in testsuite_setup()
623 ts_params->conf.nb_queue_pairs = info.max_nb_queue_pairs; in testsuite_setup()
624 ts_params->conf.socket_id = SOCKET_ID_ANY; in testsuite_setup()
625 ts_params->conf.ff_disable = RTE_CRYPTODEV_FF_SECURITY; in testsuite_setup()
648 ts_params->session_mpool = rte_cryptodev_sym_session_pool_create( in testsuite_setup()
651 TEST_ASSERT_NOT_NULL(ts_params->session_mpool, in testsuite_setup()
654 ts_params->session_priv_mpool = rte_mempool_create( in testsuite_setup()
661 TEST_ASSERT_NOT_NULL(ts_params->session_priv_mpool, in testsuite_setup()
667 &ts_params->conf), in testsuite_setup()
669 dev_id, ts_params->conf.nb_queue_pairs); in testsuite_setup()
671 ts_params->qp_conf.nb_descriptors = MAX_NUM_OPS_INFLIGHT; in testsuite_setup()
672 ts_params->qp_conf.mp_session = ts_params->session_mpool; in testsuite_setup()
673 ts_params->qp_conf.mp_session_private = ts_params->session_priv_mpool; in testsuite_setup()
677 dev_id, qp_id, &ts_params->qp_conf, in testsuite_setup()
689 struct crypto_testsuite_params *ts_params = &testsuite_params; in testsuite_teardown() local
692 if (ts_params->mbuf_pool != NULL) { in testsuite_teardown()
694 rte_mempool_avail_count(ts_params->mbuf_pool)); in testsuite_teardown()
697 if (ts_params->op_mpool != NULL) { in testsuite_teardown()
699 rte_mempool_avail_count(ts_params->op_mpool)); in testsuite_teardown()
703 if (ts_params->session_priv_mpool != NULL) { in testsuite_teardown()
704 rte_mempool_free(ts_params->session_priv_mpool); in testsuite_teardown()
705 ts_params->session_priv_mpool = NULL; in testsuite_teardown()
708 if (ts_params->session_mpool != NULL) { in testsuite_teardown()
709 rte_mempool_free(ts_params->session_mpool); in testsuite_teardown()
710 ts_params->session_mpool = NULL; in testsuite_teardown()
713 res = rte_cryptodev_close(ts_params->valid_devs[0]); in testsuite_teardown()
767 struct crypto_testsuite_params *ts_params = &testsuite_params; in null_testsuite_setup() local
768 uint8_t dev_id = ts_params->valid_devs[0]; in null_testsuite_setup()
799 struct crypto_testsuite_params *ts_params = &testsuite_params; in crypto_gen_testsuite_setup() local
800 uint8_t dev_id = ts_params->valid_devs[0]; in crypto_gen_testsuite_setup()
818 struct crypto_testsuite_params *ts_params = &testsuite_params; in ipsec_proto_testsuite_setup() local
823 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in ipsec_proto_testsuite_setup()
854 rte_cryptodev_stop(ts_params->valid_devs[0]); in ipsec_proto_testsuite_setup()
862 struct crypto_testsuite_params *ts_params = &testsuite_params; in pdcp_proto_testsuite_setup() local
863 uint8_t dev_id = ts_params->valid_devs[0]; in pdcp_proto_testsuite_setup()
902 struct crypto_testsuite_params *ts_params = &testsuite_params; in docsis_proto_testsuite_setup() local
903 uint8_t dev_id = ts_params->valid_devs[0]; in docsis_proto_testsuite_setup()
932 struct crypto_testsuite_params *ts_params = &testsuite_params; in aes_ccm_auth_testsuite_setup() local
933 uint8_t dev_id = ts_params->valid_devs[0]; in aes_ccm_auth_testsuite_setup()
961 struct crypto_testsuite_params *ts_params = &testsuite_params; in aes_gcm_auth_testsuite_setup() local
962 uint8_t dev_id = ts_params->valid_devs[0]; in aes_gcm_auth_testsuite_setup()
988 struct crypto_testsuite_params *ts_params = &testsuite_params; in aes_gmac_auth_testsuite_setup() local
989 uint8_t dev_id = ts_params->valid_devs[0]; in aes_gmac_auth_testsuite_setup()
1017 struct crypto_testsuite_params *ts_params = &testsuite_params; in chacha20_poly1305_testsuite_setup() local
1018 uint8_t dev_id = ts_params->valid_devs[0]; in chacha20_poly1305_testsuite_setup()
1046 struct crypto_testsuite_params *ts_params = &testsuite_params; in snow3g_testsuite_setup() local
1047 uint8_t dev_id = ts_params->valid_devs[0]; in snow3g_testsuite_setup()
1079 struct crypto_testsuite_params *ts_params = &testsuite_params; in zuc_testsuite_setup() local
1080 uint8_t dev_id = ts_params->valid_devs[0]; in zuc_testsuite_setup()
1111 struct crypto_testsuite_params *ts_params = &testsuite_params; in hmac_md5_auth_testsuite_setup() local
1112 uint8_t dev_id = ts_params->valid_devs[0]; in hmac_md5_auth_testsuite_setup()
1140 struct crypto_testsuite_params *ts_params = &testsuite_params; in kasumi_testsuite_setup() local
1141 uint8_t dev_id = ts_params->valid_devs[0]; in kasumi_testsuite_setup()
1174 struct crypto_testsuite_params *ts_params = &testsuite_params; in negative_aes_gcm_testsuite_setup() local
1175 uint8_t dev_id = ts_params->valid_devs[0]; in negative_aes_gcm_testsuite_setup()
1203 struct crypto_testsuite_params *ts_params = &testsuite_params; in negative_aes_gmac_testsuite_setup() local
1204 uint8_t dev_id = ts_params->valid_devs[0]; in negative_aes_gmac_testsuite_setup()
1232 struct crypto_testsuite_params *ts_params = &testsuite_params; in mixed_cipher_hash_testsuite_setup() local
1233 uint8_t dev_id = ts_params->valid_devs[0]; in mixed_cipher_hash_testsuite_setup()
1273 struct crypto_testsuite_params *ts_params = &testsuite_params; in esn_testsuite_setup() local
1274 uint8_t dev_id = ts_params->valid_devs[0]; in esn_testsuite_setup()
1307 struct crypto_testsuite_params *ts_params = &testsuite_params; in multi_session_testsuite_setup() local
1308 uint8_t dev_id = ts_params->valid_devs[0]; in multi_session_testsuite_setup()
1339 struct crypto_testsuite_params *ts_params = &testsuite_params; in negative_hmac_sha1_testsuite_setup() local
1340 uint8_t dev_id = ts_params->valid_devs[0]; in negative_hmac_sha1_testsuite_setup()
1373 struct crypto_testsuite_params *ts_params = &testsuite_params; in dev_configure_and_start() local
1382 ts_params->conf.socket_id = SOCKET_ID_ANY; in dev_configure_and_start()
1383 ts_params->conf.ff_disable = ff_disable; in dev_configure_and_start()
1384 ts_params->qp_conf.nb_descriptors = MAX_NUM_OPS_INFLIGHT; in dev_configure_and_start()
1385 ts_params->qp_conf.mp_session = ts_params->session_mpool; in dev_configure_and_start()
1386 ts_params->qp_conf.mp_session_private = ts_params->session_priv_mpool; in dev_configure_and_start()
1388 TEST_ASSERT_SUCCESS(rte_cryptodev_configure(ts_params->valid_devs[0], in dev_configure_and_start()
1389 &ts_params->conf), in dev_configure_and_start()
1391 ts_params->valid_devs[0]); in dev_configure_and_start()
1393 for (qp_id = 0; qp_id < ts_params->conf.nb_queue_pairs ; qp_id++) { in dev_configure_and_start()
1395 ts_params->valid_devs[0], qp_id, in dev_configure_and_start()
1396 &ts_params->qp_conf, in dev_configure_and_start()
1397 rte_cryptodev_socket_id(ts_params->valid_devs[0])), in dev_configure_and_start()
1399 qp_id, ts_params->valid_devs[0]); in dev_configure_and_start()
1403 rte_cryptodev_stats_reset(ts_params->valid_devs[0]); in dev_configure_and_start()
1406 TEST_ASSERT_SUCCESS(rte_cryptodev_start(ts_params->valid_devs[0]), in dev_configure_and_start()
1408 ts_params->valid_devs[0]); in dev_configure_and_start()
1430 struct crypto_testsuite_params *ts_params = &testsuite_params; in ut_teardown() local
1438 (ts_params->valid_devs[0]), in ut_teardown()
1447 ts_params->valid_devs[0], in ut_teardown()
1474 if (ts_params->mbuf_pool != NULL) in ut_teardown()
1476 rte_mempool_avail_count(ts_params->mbuf_pool)); in ut_teardown()
1479 rte_cryptodev_stop(ts_params->valid_devs[0]); in ut_teardown()
1485 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_device_configure_invalid_dev_id() local
1492 dev_id = ts_params->valid_devs[0]; in test_device_configure_invalid_dev_id()
1497 TEST_ASSERT_SUCCESS(rte_cryptodev_configure(dev_id, &ts_params->conf), in test_device_configure_invalid_dev_id()
1504 TEST_ASSERT_FAIL(rte_cryptodev_configure(dev_id, &ts_params->conf), in test_device_configure_invalid_dev_id()
1510 TEST_ASSERT_FAIL(rte_cryptodev_configure(dev_id, &ts_params->conf), in test_device_configure_invalid_dev_id()
1520 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_device_configure_invalid_queue_pair_ids() local
1521 uint16_t orig_nb_qps = ts_params->conf.nb_queue_pairs; in test_device_configure_invalid_queue_pair_ids()
1524 rte_cryptodev_stop(ts_params->valid_devs[0]); in test_device_configure_invalid_queue_pair_ids()
1527 ts_params->conf.nb_queue_pairs = orig_nb_qps; in test_device_configure_invalid_queue_pair_ids()
1529 TEST_ASSERT_SUCCESS(rte_cryptodev_configure(ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1530 &ts_params->conf), in test_device_configure_invalid_queue_pair_ids()
1532 ts_params->valid_devs[0], ts_params->conf.nb_queue_pairs); in test_device_configure_invalid_queue_pair_ids()
1535 ts_params->conf.nb_queue_pairs = 1; in test_device_configure_invalid_queue_pair_ids()
1537 TEST_ASSERT_SUCCESS(rte_cryptodev_configure(ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1538 &ts_params->conf), in test_device_configure_invalid_queue_pair_ids()
1540 ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1541 ts_params->conf.nb_queue_pairs); in test_device_configure_invalid_queue_pair_ids()
1545 ts_params->conf.nb_queue_pairs = 0; in test_device_configure_invalid_queue_pair_ids()
1547 TEST_ASSERT_FAIL(rte_cryptodev_configure(ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1548 &ts_params->conf), in test_device_configure_invalid_queue_pair_ids()
1551 ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1552 ts_params->conf.nb_queue_pairs); in test_device_configure_invalid_queue_pair_ids()
1556 ts_params->conf.nb_queue_pairs = UINT16_MAX; in test_device_configure_invalid_queue_pair_ids()
1558 TEST_ASSERT_FAIL(rte_cryptodev_configure(ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1559 &ts_params->conf), in test_device_configure_invalid_queue_pair_ids()
1562 ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1563 ts_params->conf.nb_queue_pairs); in test_device_configure_invalid_queue_pair_ids()
1567 ts_params->conf.nb_queue_pairs = orig_nb_qps + 1; in test_device_configure_invalid_queue_pair_ids()
1569 TEST_ASSERT_FAIL(rte_cryptodev_configure(ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1570 &ts_params->conf), in test_device_configure_invalid_queue_pair_ids()
1573 ts_params->valid_devs[0], in test_device_configure_invalid_queue_pair_ids()
1574 ts_params->conf.nb_queue_pairs); in test_device_configure_invalid_queue_pair_ids()
1577 ts_params->conf.nb_queue_pairs = orig_nb_qps; in test_device_configure_invalid_queue_pair_ids()
1585 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_queue_pair_descriptor_setup() local
1592 rte_cryptodev_stop(ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
1594 TEST_ASSERT_SUCCESS(rte_cryptodev_configure(ts_params->valid_devs[0], in test_queue_pair_descriptor_setup()
1595 &ts_params->conf), in test_queue_pair_descriptor_setup()
1597 ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
1604 qp_conf.mp_session = ts_params->session_mpool; in test_queue_pair_descriptor_setup()
1605 qp_conf.mp_session_private = ts_params->session_priv_mpool; in test_queue_pair_descriptor_setup()
1607 for (qp_id = 0; qp_id < ts_params->conf.nb_queue_pairs; qp_id++) { in test_queue_pair_descriptor_setup()
1609 ts_params->valid_devs[0], qp_id, &qp_conf, in test_queue_pair_descriptor_setup()
1611 ts_params->valid_devs[0])), in test_queue_pair_descriptor_setup()
1616 ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
1621 for (qp_id = 0; qp_id < ts_params->conf.nb_queue_pairs; qp_id++) { in test_queue_pair_descriptor_setup()
1623 ts_params->valid_devs[0], qp_id, &qp_conf, in test_queue_pair_descriptor_setup()
1625 ts_params->valid_devs[0])), in test_queue_pair_descriptor_setup()
1630 ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
1635 for (qp_id = 0; qp_id < ts_params->conf.nb_queue_pairs; qp_id++) { in test_queue_pair_descriptor_setup()
1637 ts_params->valid_devs[0], qp_id, &qp_conf, in test_queue_pair_descriptor_setup()
1639 ts_params->valid_devs[0])), in test_queue_pair_descriptor_setup()
1644 ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
1649 for (qp_id = 0; qp_id < ts_params->conf.nb_queue_pairs; qp_id++) { in test_queue_pair_descriptor_setup()
1651 ts_params->valid_devs[0], qp_id, &qp_conf, in test_queue_pair_descriptor_setup()
1653 ts_params->valid_devs[0])), in test_queue_pair_descriptor_setup()
1658 ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
1664 qp_id = ts_params->conf.nb_queue_pairs; /*invalid */ in test_queue_pair_descriptor_setup()
1667 ts_params->valid_devs[0], in test_queue_pair_descriptor_setup()
1669 rte_cryptodev_socket_id(ts_params->valid_devs[0])), in test_queue_pair_descriptor_setup()
1672 qp_id, ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
1677 ts_params->valid_devs[0], in test_queue_pair_descriptor_setup()
1679 rte_cryptodev_socket_id(ts_params->valid_devs[0])), in test_queue_pair_descriptor_setup()
1682 qp_id, ts_params->valid_devs[0]); in test_queue_pair_descriptor_setup()
2148 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_AES_CBC_HMAC_SHA1_encrypt_digest() local
2156 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2161 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2166 ut_params->ibuf = setup_test_string(ts_params->mbuf_pool, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2196 ts_params->session_mpool); in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2200 status = rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2202 ts_params->session_priv_mpool); in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2210 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2240 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2244 process_crypto_request(ts_params->valid_devs[0], in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2308 struct crypto_testsuite_params *ts_params,
2349 struct crypto_testsuite_params *ts_params, in test_AES_CBC_HMAC_SHA512_decrypt_perform() argument
2355 ut_params->ibuf = setup_test_string(ts_params->mbuf_pool, in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2369 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2397 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2400 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2404 process_crypto_request(ts_params->valid_devs[0], in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2438 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_hash_session() local
2457 ts_params->session_mpool); in create_wireless_algo_hash_session()
2461 ts_params->session_priv_mpool); in create_wireless_algo_hash_session()
2479 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_cipher_session() local
2499 ts_params->session_mpool); in create_wireless_algo_cipher_session()
2503 ts_params->session_priv_mpool); in create_wireless_algo_cipher_session()
2517 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_cipher_operation() local
2521 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_wireless_algo_cipher_operation()
2547 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_cipher_operation_oop() local
2551 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_wireless_algo_cipher_operation_oop()
2587 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_cipher_auth_session() local
2621 ts_params->session_mpool); in create_wireless_algo_cipher_auth_session()
2626 ts_params->session_priv_mpool); in create_wireless_algo_cipher_auth_session()
2646 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_cipher_auth_session() local
2685 ts_params->session_mpool); in create_wireless_cipher_auth_session()
2689 ts_params->session_priv_mpool); in create_wireless_cipher_auth_session()
2720 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_auth_cipher_session() local
2751 ts_params->session_mpool); in create_wireless_algo_auth_cipher_session()
2759 ts_params->session_priv_mpool); in create_wireless_algo_auth_cipher_session()
2764 ts_params->session_priv_mpool); in create_wireless_algo_auth_cipher_session()
2782 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_hash_operation() local
2787 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_wireless_algo_hash_operation()
2831 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_cipher_hash_operation() local
2847 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_wireless_cipher_hash_operation()
2910 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_cipher_hash_operation() local
2919 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_wireless_algo_cipher_hash_operation()
3003 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_wireless_algo_auth_cipher_operation() local
3012 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_wireless_algo_auth_cipher_operation()
3111 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_authentication() local
3120 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_authentication()
3142 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_authentication()
3147 retval = create_wireless_algo_hash_session(ts_params->valid_devs[0], in test_snow3g_authentication()
3156 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_authentication()
3179 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_authentication()
3182 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_authentication()
3202 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_authentication_verify() local
3211 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_authentication_verify()
3233 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_authentication_verify()
3238 retval = create_wireless_algo_hash_session(ts_params->valid_devs[0], in test_snow3g_authentication_verify()
3246 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_authentication_verify()
3271 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_authentication_verify()
3274 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_authentication_verify()
3293 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_authentication() local
3302 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_authentication()
3318 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_authentication()
3323 retval = create_wireless_algo_hash_session(ts_params->valid_devs[0], in test_kasumi_authentication()
3332 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_authentication()
3355 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_kasumi_authentication()
3358 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_authentication()
3361 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_authentication()
3382 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_authentication_verify() local
3391 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_authentication_verify()
3407 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_authentication_verify()
3412 retval = create_wireless_algo_hash_session(ts_params->valid_devs[0], in test_kasumi_authentication_verify()
3420 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_authentication_verify()
3445 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_authentication_verify()
3448 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_authentication_verify()
3606 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_encryption() local
3615 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_encryption()
3631 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_encryption()
3636 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_kasumi_encryption()
3644 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption()
3669 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_encryption()
3672 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_encryption()
3698 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_encryption_sgl() local
3715 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_encryption_sgl()
3719 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_encryption_sgl()
3739 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_kasumi_encryption_sgl()
3754 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_sgl()
3768 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_encryption_sgl()
3771 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_encryption_sgl()
3802 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_encryption_oop() local
3815 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_encryption_oop()
3826 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_kasumi_encryption_oop()
3834 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption_oop()
3835 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption_oop()
3860 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_encryption_oop()
3886 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_encryption_oop_sgl() local
3902 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_encryption_oop_sgl()
3912 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_encryption_oop_sgl()
3923 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_kasumi_encryption_oop_sgl()
3936 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_oop_sgl()
3938 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_oop_sgl()
3953 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_encryption_oop_sgl()
3981 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_decryption_oop() local
3993 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_decryption_oop()
4004 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_kasumi_decryption_oop()
4012 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption_oop()
4013 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption_oop()
4038 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_decryption_oop()
4064 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_decryption() local
4073 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_decryption()
4089 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_decryption()
4094 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_kasumi_decryption()
4102 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption()
4127 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_decryption()
4130 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_decryption()
4156 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_encryption() local
4165 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_encryption()
4181 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_encryption()
4186 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_snow3g_encryption()
4194 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption()
4219 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_encryption()
4222 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_encryption()
4247 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_encryption_oop() local
4256 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_encryption_oop()
4269 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_encryption_oop()
4280 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_snow3g_encryption_oop()
4288 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_oop()
4289 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_oop()
4320 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_encryption_oop()
4323 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_encryption_oop()
4347 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_encryption_oop_sgl() local
4362 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_encryption_oop_sgl()
4372 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_encryption_oop_sgl()
4390 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_snow3g_encryption_oop_sgl()
4403 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_encryption_oop_sgl()
4405 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_encryption_oop_sgl()
4424 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_encryption_oop_sgl()
4427 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_encryption_oop_sgl()
4474 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_encryption_offset_oop() local
4484 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_encryption_offset_oop()
4497 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_encryption_offset_oop()
4508 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_snow3g_encryption_offset_oop()
4516 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_offset_oop()
4517 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_offset_oop()
4555 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_encryption_offset_oop()
4558 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_encryption_offset_oop()
4593 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_decryption() local
4603 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_decryption()
4619 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_decryption()
4624 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_snow3g_decryption()
4632 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption()
4657 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_decryption()
4660 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_decryption()
4681 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_decryption_oop() local
4691 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_decryption_oop()
4703 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_decryption_oop()
4714 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_snow3g_decryption_oop()
4722 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption_oop()
4723 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption_oop()
4757 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_decryption_oop()
4760 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_decryption_oop()
4782 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_zuc_cipher_auth() local
4794 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_zuc_cipher_auth()
4817 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_zuc_cipher_auth()
4825 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_zuc_cipher_auth()
4831 ts_params->valid_devs[0], in test_zuc_cipher_auth()
4835 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_cipher_auth()
4857 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_zuc_cipher_auth()
4860 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_zuc_cipher_auth()
4892 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_cipher_auth() local
4902 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_cipher_auth()
4918 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_cipher_auth()
4923 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_cipher_auth()
4928 retval = create_wireless_algo_cipher_auth_session(ts_params->valid_devs[0], in test_snow3g_cipher_auth()
4938 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_cipher_auth()
4969 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_cipher_auth()
4972 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_cipher_auth()
5005 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_auth_cipher() local
5022 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_auth_cipher()
5027 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_auth_cipher()
5034 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_auth_cipher()
5055 ts_params->valid_devs[0], in test_snow3g_auth_cipher()
5068 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_auth_cipher()
5070 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_auth_cipher()
5119 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_auth_cipher()
5122 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_auth_cipher()
5196 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_auth_cipher_sgl() local
5217 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_auth_cipher_sgl()
5222 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_snow3g_auth_cipher_sgl()
5229 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_auth_cipher_sgl()
5260 ts_params->valid_devs[0], in test_snow3g_auth_cipher_sgl()
5279 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_auth_cipher_sgl()
5285 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_auth_cipher_sgl()
5326 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_snow3g_auth_cipher_sgl()
5329 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_snow3g_auth_cipher_sgl()
5411 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_auth_cipher() local
5428 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_auth_cipher()
5433 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_auth_cipher()
5437 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_auth_cipher()
5461 ts_params->valid_devs[0], in test_kasumi_auth_cipher()
5475 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_auth_cipher()
5477 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_auth_cipher()
5527 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_auth_cipher()
5530 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_auth_cipher()
5601 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_auth_cipher_sgl() local
5622 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_auth_cipher_sgl()
5627 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_auth_cipher_sgl()
5634 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_auth_cipher_sgl()
5665 ts_params->valid_devs[0], in test_kasumi_auth_cipher_sgl()
5684 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_auth_cipher_sgl()
5690 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_auth_cipher_sgl()
5731 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_auth_cipher_sgl()
5734 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_auth_cipher_sgl()
5811 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_kasumi_cipher_auth() local
5821 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_kasumi_cipher_auth()
5837 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_cipher_auth()
5842 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_kasumi_cipher_auth()
5848 ts_params->valid_devs[0], in test_kasumi_cipher_auth()
5859 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_cipher_auth()
5889 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_kasumi_cipher_auth()
5892 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_kasumi_cipher_auth()
5926 check_cipher_capability(const struct crypto_testsuite_params *ts_params, in check_cipher_capability() argument
5937 cap = rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in check_cipher_capability()
5953 check_auth_capability(const struct crypto_testsuite_params *ts_params, in check_auth_capability() argument
5965 cap = rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in check_auth_capability()
5983 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_zuc_encryption() local
5992 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_zuc_encryption()
6005 if (check_cipher_capability(ts_params, RTE_CRYPTO_CIPHER_ZUC_EEA3, in test_zuc_encryption()
6010 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_zuc_encryption()
6018 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_encryption()
6043 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_zuc_encryption()
6046 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_zuc_encryption()
6070 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_zuc_encryption_sgl() local
6082 if (check_cipher_capability(ts_params, RTE_CRYPTO_CIPHER_ZUC_EEA3, in test_zuc_encryption_sgl()
6089 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_zuc_encryption_sgl()
6111 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_encryption_sgl()
6118 retval = create_wireless_algo_cipher_session(ts_params->valid_devs[0], in test_zuc_encryption_sgl()
6138 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_zuc_encryption_sgl()
6141 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_zuc_encryption_sgl()
6169 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_zuc_authentication() local
6179 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_zuc_authentication()
6198 if (check_auth_capability(ts_params, RTE_CRYPTO_AUTH_ZUC_EIA3, in test_zuc_authentication()
6204 retval = create_wireless_algo_hash_session(ts_params->valid_devs[0], in test_zuc_authentication()
6213 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_authentication()
6236 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_zuc_authentication()
6239 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_zuc_authentication()
6260 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_zuc_auth_cipher() local
6274 if (check_cipher_capability(ts_params, RTE_CRYPTO_CIPHER_ZUC_EEA3, in test_zuc_auth_cipher()
6279 if (check_auth_capability(ts_params, RTE_CRYPTO_AUTH_ZUC_EIA3, in test_zuc_auth_cipher()
6284 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_zuc_auth_cipher()
6316 ts_params->valid_devs[0], in test_zuc_auth_cipher()
6330 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_auth_cipher()
6332 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_auth_cipher()
6382 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_zuc_auth_cipher()
6385 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_zuc_auth_cipher()
6456 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_zuc_auth_cipher_sgl() local
6474 if (check_cipher_capability(ts_params, RTE_CRYPTO_CIPHER_ZUC_EEA3, in test_zuc_auth_cipher_sgl()
6479 if (check_auth_capability(ts_params, RTE_CRYPTO_AUTH_ZUC_EIA3, in test_zuc_auth_cipher_sgl()
6484 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_zuc_auth_cipher_sgl()
6516 ts_params->valid_devs[0], in test_zuc_auth_cipher_sgl()
6535 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_auth_cipher_sgl()
6541 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_auth_cipher_sgl()
6582 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_zuc_auth_cipher_sgl()
6585 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_zuc_auth_cipher_sgl()
6874 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_snow3g_decryption_with_digest_test_case_1() local
6876 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_snow3g_decryption_with_digest_test_case_1()
7343 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_mixed_auth_cipher() local
7363 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_mixed_auth_cipher()
7375 ts_params->valid_devs[0], in test_mixed_auth_cipher()
7385 ts_params->valid_devs[0], in test_mixed_auth_cipher()
7396 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_mixed_auth_cipher()
7398 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_mixed_auth_cipher()
7448 op = process_crypto_request(ts_params->valid_devs[0], ut_params->op); in test_mixed_auth_cipher()
7536 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_mixed_auth_cipher_sgl() local
7560 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_mixed_auth_cipher_sgl()
7585 ts_params->valid_devs[0], in test_mixed_auth_cipher_sgl()
7595 ts_params->valid_devs[0], in test_mixed_auth_cipher_sgl()
7611 ut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_mixed_auth_cipher_sgl()
7617 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_mixed_auth_cipher_sgl()
7657 op = process_crypto_request(ts_params->valid_devs[0], ut_params->op); in test_mixed_auth_cipher_sgl()
7992 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_aead_session() local
8013 ts_params->session_mpool); in create_aead_session()
8018 ts_params->session_priv_mpool); in create_aead_session()
8057 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_aead_operation() local
8064 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_aead_operation()
8206 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_authenticated_encryption() local
8215 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_encryption()
8230 ts_params->valid_devs[0], &cap_idx); in test_authenticated_encryption()
8239 retval = create_aead_session(ts_params->valid_devs[0], in test_authenticated_encryption()
8249 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_authenticated_encryption()
8254 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption()
8271 process_cpu_aead_op(ts_params->valid_devs[0], ut_params->op); in test_authenticated_encryption()
8273 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_encryption()
8277 process_crypto_request(ts_params->valid_devs[0], in test_authenticated_encryption()
8322 struct crypto_testsuite_params *ts_params = &testsuite_params; in security_proto_supported() local
8330 ts_params->valid_devs[0]); in security_proto_supported()
8366 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_pdcp_proto() local
8372 ts_params->valid_devs[0]); in test_pdcp_proto()
8384 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto()
8399 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto()
8453 &sess_conf, ts_params->session_mpool, in test_pdcp_proto()
8454 ts_params->session_priv_mpool); in test_pdcp_proto()
8464 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_pdcp_proto()
8486 if (process_crypto_request(ts_params->valid_devs[0], ut_params->op) in test_pdcp_proto()
8547 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_pdcp_proto_SGL() local
8560 ts_params->valid_devs[0]); in test_pdcp_proto_SGL()
8563 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_pdcp_proto_SGL()
8601 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
8607 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
8631 buf->next = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
8640 rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
8673 rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
8725 &sess_conf, ts_params->session_mpool, in test_pdcp_proto_SGL()
8726 ts_params->session_priv_mpool); in test_pdcp_proto_SGL()
8736 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_pdcp_proto_SGL()
8764 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_pdcp_proto_SGL()
8767 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_pdcp_proto_SGL()
9144 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_ipsec_proto_process() local
9149 uint8_t dev_id = ts_params->valid_devs[0]; in test_ipsec_proto_process()
9321 ts_params->session_mpool, in test_ipsec_proto_process()
9322 ts_params->session_priv_mpool); in test_ipsec_proto_process()
9341 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_ipsec_proto_process()
9355 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_ipsec_proto_process()
10180 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_PDCP_PROTO_all() local
10185 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_PDCP_PROTO_all()
10243 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_docsis_proto_uplink() local
10254 ts_params->valid_devs[0]); in test_docsis_proto_uplink()
10299 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_docsis_proto_uplink()
10330 ts_params->session_mpool, in test_docsis_proto_uplink()
10331 ts_params->session_priv_mpool); in test_docsis_proto_uplink()
10341 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_docsis_proto_uplink()
10382 if (process_crypto_request(ts_params->valid_devs[0], ut_params->op) == in test_docsis_proto_uplink()
10429 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_docsis_proto_downlink() local
10439 ts_params->valid_devs[0]); in test_docsis_proto_downlink()
10484 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_docsis_proto_downlink()
10515 ts_params->session_mpool, in test_docsis_proto_downlink()
10516 ts_params->session_priv_mpool); in test_docsis_proto_downlink()
10526 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_docsis_proto_downlink()
10566 if (process_crypto_request(ts_params->valid_devs[0], ut_params->op) == in test_docsis_proto_downlink()
10861 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_authenticated_decryption() local
10869 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_decryption()
10884 ts_params->valid_devs[0], &cap_idx); in test_authenticated_decryption()
10893 retval = create_aead_session(ts_params->valid_devs[0], in test_authenticated_decryption()
10904 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_authenticated_decryption()
10909 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption()
10925 process_cpu_aead_op(ts_params->valid_devs[0], ut_params->op); in test_authenticated_decryption()
10927 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_decryption()
10931 process_crypto_request(ts_params->valid_devs[0], in test_authenticated_decryption()
11208 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_authenticated_encryption_oop() local
11220 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_encryption_oop()
11224 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_encryption_oop()
11236 retval = create_aead_session(ts_params->valid_devs[0], in test_authenticated_encryption_oop()
11245 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_oop()
11246 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_oop()
11266 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_encryption_oop()
11269 TEST_ASSERT_NOT_NULL(process_crypto_request(ts_params->valid_devs[0], in test_authenticated_encryption_oop()
11310 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_authenticated_decryption_oop() local
11317 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_decryption_oop()
11324 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_decryption_oop()
11340 retval = create_aead_session(ts_params->valid_devs[0], in test_authenticated_decryption_oop()
11350 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_oop()
11351 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_oop()
11370 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_decryption_oop()
11373 TEST_ASSERT_NOT_NULL(process_crypto_request(ts_params->valid_devs[0], in test_authenticated_decryption_oop()
11407 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_authenticated_encryption_sessionless() local
11416 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_encryption_sessionless()
11432 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_encryption_sessionless()
11436 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_sessionless()
11465 TEST_ASSERT_NOT_NULL(process_crypto_request(ts_params->valid_devs[0], in test_authenticated_encryption_sessionless()
11510 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_authenticated_decryption_sessionless() local
11518 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_decryption_sessionless()
11540 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_decryption_sessionless()
11545 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_sessionless()
11574 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_decryption_sessionless()
11578 ts_params->valid_devs[0], ut_params->op), in test_authenticated_decryption_sessionless()
11722 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_stats() local
11732 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_stats()
11737 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_stats()
11741 if (rte_cryptodev_stats_get(ts_params->valid_devs[0], &stats) in test_stats()
11745 rte_cryptodev_stats_reset(ts_params->valid_devs[0]); in test_stats()
11746 TEST_ASSERT((rte_cryptodev_stats_get(ts_params->valid_devs[0] + 600, in test_stats()
11749 TEST_ASSERT((rte_cryptodev_stats_get(ts_params->valid_devs[0], 0) != 0), in test_stats()
11754 TEST_ASSERT_SUCCESS(rte_cryptodev_stats_get(ts_params->valid_devs[0], in test_stats()
11767 rte_cryptodev_stats_reset(ts_params->valid_devs[0] + 300); in test_stats()
11768 TEST_ASSERT_SUCCESS(rte_cryptodev_stats_get(ts_params->valid_devs[0], in test_stats()
11775 rte_cryptodev_stats_reset(ts_params->valid_devs[0]); in test_stats()
11776 TEST_ASSERT_SUCCESS(rte_cryptodev_stats_get(ts_params->valid_devs[0], in test_stats()
11787 static int MD5_HMAC_create_session(struct crypto_testsuite_params *ts_params, in MD5_HMAC_create_session() argument
11808 ts_params->session_mpool); in MD5_HMAC_create_session()
11813 status = rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in MD5_HMAC_create_session()
11815 ts_params->session_priv_mpool); in MD5_HMAC_create_session()
11819 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in MD5_HMAC_create_session()
11870 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_MD5_HMAC_generate() local
11874 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_MD5_HMAC_generate()
11887 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_MD5_HMAC_generate()
11891 if (MD5_HMAC_create_session(ts_params, ut_params, in test_MD5_HMAC_generate()
11896 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_MD5_HMAC_generate()
11908 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_MD5_HMAC_generate()
11911 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_MD5_HMAC_generate()
11915 process_crypto_request(ts_params->valid_devs[0], in test_MD5_HMAC_generate()
11943 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_MD5_HMAC_verify() local
11947 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_MD5_HMAC_verify()
11960 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_MD5_HMAC_verify()
11964 if (MD5_HMAC_create_session(ts_params, ut_params, in test_MD5_HMAC_verify()
11970 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in test_MD5_HMAC_verify()
11979 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_MD5_HMAC_verify()
11982 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_MD5_HMAC_verify()
11986 process_crypto_request(ts_params->valid_devs[0], in test_MD5_HMAC_verify()
12023 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_multi_session() local
12036 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_multi_session()
12041 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_multi_session()
12049 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_multi_session()
12059 ts_params->session_mpool); in test_multi_session()
12065 ts_params->valid_devs[0], in test_multi_session()
12067 ts_params->session_priv_mpool); in test_multi_session()
12075 ts_params, in test_multi_session()
12103 rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in test_multi_session()
12105 ts_params->session_priv_mpool); in test_multi_session()
12110 rte_cryptodev_sym_session_clear(ts_params->valid_devs[0], in test_multi_session()
12134 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_multi_session_random_usage() local
12169 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_multi_session_random_usage()
12174 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_multi_session_random_usage()
12178 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_multi_session_random_usage()
12186 ts_params->session_mpool); in test_multi_session_random_usage()
12200 ts_params->valid_devs[0], in test_multi_session_random_usage()
12203 ts_params->session_priv_mpool); in test_multi_session_random_usage()
12220 ts_params, ut_paramz[j].cipher, in test_multi_session_random_usage()
12247 rte_cryptodev_sym_session_clear(ts_params->valid_devs[0], in test_multi_session_random_usage()
12265 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_null_invalid_operation() local
12282 ts_params->session_mpool); in test_null_invalid_operation()
12285 ret = rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in test_null_invalid_operation()
12287 ts_params->session_priv_mpool); in test_null_invalid_operation()
12300 ts_params->session_mpool); in test_null_invalid_operation()
12303 ret = rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in test_null_invalid_operation()
12305 ts_params->session_priv_mpool); in test_null_invalid_operation()
12318 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_null_burst_operation() local
12347 ts_params->session_mpool); in test_null_burst_operation()
12351 status = rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in test_null_burst_operation()
12353 ts_params->session_priv_mpool); in test_null_burst_operation()
12360 TEST_ASSERT_EQUAL(rte_crypto_op_bulk_alloc(ts_params->op_mpool, in test_null_burst_operation()
12366 struct rte_mbuf *m = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_null_burst_operation()
12380 TEST_ASSERT_EQUAL(rte_cryptodev_enqueue_burst(ts_params->valid_devs[0], in test_null_burst_operation()
12385 TEST_ASSERT_EQUAL(rte_cryptodev_dequeue_burst(ts_params->valid_devs[0], in test_null_burst_operation()
12448 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_enq_callback_setup() local
12458 rte_cryptodev_stop(ts_params->valid_devs[0]); in test_enq_callback_setup()
12460 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_enq_callback_setup()
12462 TEST_ASSERT_SUCCESS(rte_cryptodev_configure(ts_params->valid_devs[0], in test_enq_callback_setup()
12463 &ts_params->conf), in test_enq_callback_setup()
12465 ts_params->valid_devs[0]); in test_enq_callback_setup()
12468 qp_conf.mp_session = ts_params->session_mpool; in test_enq_callback_setup()
12469 qp_conf.mp_session_private = ts_params->session_priv_mpool; in test_enq_callback_setup()
12472 ts_params->valid_devs[0], qp_id, &qp_conf, in test_enq_callback_setup()
12473 rte_cryptodev_socket_id(ts_params->valid_devs[0])), in test_enq_callback_setup()
12478 ts_params->valid_devs[0]); in test_enq_callback_setup()
12488 cb = rte_cryptodev_add_enq_callback(ts_params->valid_devs[0], in test_enq_callback_setup()
12494 ts_params->valid_devs[0]); in test_enq_callback_setup()
12497 cb = rte_cryptodev_add_enq_callback(ts_params->valid_devs[0], in test_enq_callback_setup()
12501 qp_id, ts_params->valid_devs[0]); in test_enq_callback_setup()
12504 cb = rte_cryptodev_add_enq_callback(ts_params->valid_devs[0], in test_enq_callback_setup()
12508 qp_id, ts_params->valid_devs[0]); in test_enq_callback_setup()
12510 rte_cryptodev_start(ts_params->valid_devs[0]); in test_enq_callback_setup()
12526 ts_params->valid_devs[0], in test_enq_callback_setup()
12532 ts_params->valid_devs[0], qp_id, NULL), in test_enq_callback_setup()
12537 ts_params->valid_devs[0], qp_id, cb), in test_enq_callback_setup()
12540 qp_id, ts_params->valid_devs[0]); in test_enq_callback_setup()
12548 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_deq_callback_setup() local
12558 rte_cryptodev_stop(ts_params->valid_devs[0]); in test_deq_callback_setup()
12560 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_deq_callback_setup()
12562 TEST_ASSERT_SUCCESS(rte_cryptodev_configure(ts_params->valid_devs[0], in test_deq_callback_setup()
12563 &ts_params->conf), in test_deq_callback_setup()
12565 ts_params->valid_devs[0]); in test_deq_callback_setup()
12568 qp_conf.mp_session = ts_params->session_mpool; in test_deq_callback_setup()
12569 qp_conf.mp_session_private = ts_params->session_priv_mpool; in test_deq_callback_setup()
12572 ts_params->valid_devs[0], qp_id, &qp_conf, in test_deq_callback_setup()
12573 rte_cryptodev_socket_id(ts_params->valid_devs[0])), in test_deq_callback_setup()
12578 ts_params->valid_devs[0]); in test_deq_callback_setup()
12588 cb = rte_cryptodev_add_deq_callback(ts_params->valid_devs[0], in test_deq_callback_setup()
12594 ts_params->valid_devs[0]); in test_deq_callback_setup()
12597 cb = rte_cryptodev_add_deq_callback(ts_params->valid_devs[0], in test_deq_callback_setup()
12601 qp_id, ts_params->valid_devs[0]); in test_deq_callback_setup()
12604 cb = rte_cryptodev_add_deq_callback(ts_params->valid_devs[0], in test_deq_callback_setup()
12608 qp_id, ts_params->valid_devs[0]); in test_deq_callback_setup()
12610 rte_cryptodev_start(ts_params->valid_devs[0]); in test_deq_callback_setup()
12626 ts_params->valid_devs[0], in test_deq_callback_setup()
12632 ts_params->valid_devs[0], qp_id, NULL), in test_deq_callback_setup()
12637 ts_params->valid_devs[0], qp_id, cb), in test_deq_callback_setup()
12640 qp_id, ts_params->valid_devs[0]); in test_deq_callback_setup()
12658 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_gmac_operation() local
12665 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_gmac_operation()
12709 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_gmac_operation_sgl() local
12714 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_gmac_operation_sgl()
12758 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_gmac_session() local
12776 ts_params->session_mpool); in create_gmac_session()
12781 ts_params->session_priv_mpool); in create_gmac_session()
12789 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_AES_GMAC_authentication() local
12793 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_AES_GMAC_authentication()
12814 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_AES_GMAC_authentication()
12818 retval = create_gmac_session(ts_params->valid_devs[0], in test_AES_GMAC_authentication()
12827 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_AES_GMAC_authentication()
12829 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication()
12864 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_AES_GMAC_authentication()
12867 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_AES_GMAC_authentication()
12871 process_crypto_request(ts_params->valid_devs[0], in test_AES_GMAC_authentication()
12922 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_AES_GMAC_authentication_verify() local
12929 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_AES_GMAC_authentication_verify()
12945 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_AES_GMAC_authentication_verify()
12949 retval = create_gmac_session(ts_params->valid_devs[0], in test_AES_GMAC_authentication_verify()
12958 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->large_mbuf_pool); in test_AES_GMAC_authentication_verify()
12960 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication_verify()
12996 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_AES_GMAC_authentication_verify()
12999 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_AES_GMAC_authentication_verify()
13003 process_crypto_request(ts_params->valid_devs[0], in test_AES_GMAC_authentication_verify()
13041 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_AES_GMAC_authentication_SGL() local
13060 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_AES_GMAC_authentication_SGL()
13065 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_AES_GMAC_authentication_SGL()
13078 retval = create_gmac_session(ts_params->valid_devs[0], in test_AES_GMAC_authentication_SGL()
13086 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication_SGL()
13112 buf->next = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_AES_GMAC_authentication_SGL()
13156 process_crypto_request(ts_params->valid_devs[0], in test_AES_GMAC_authentication_SGL()
13410 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_auth_session() local
13427 ts_params->session_mpool); in create_auth_session()
13432 ts_params->session_priv_mpool); in create_auth_session()
13444 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_auth_cipher_session() local
13480 ts_params->session_mpool); in create_auth_cipher_session()
13485 ts_params->session_priv_mpool); in create_auth_cipher_session()
13491 create_auth_operation(struct crypto_testsuite_params *ts_params, in create_auth_operation() argument
13497 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_auth_operation()
13538 create_auth_GMAC_operation(struct crypto_testsuite_params *ts_params, in create_auth_GMAC_operation() argument
13544 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_auth_GMAC_operation()
13591 create_cipher_auth_operation(struct crypto_testsuite_params *ts_params, in create_cipher_auth_operation() argument
13597 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_cipher_auth_operation()
13644 create_auth_verify_operation(struct crypto_testsuite_params *ts_params, in create_auth_verify_operation() argument
13648 return create_auth_operation(ts_params, ut_params, reference, 0); in create_auth_verify_operation()
13653 struct crypto_testsuite_params *ts_params, in create_auth_verify_GMAC_operation() argument
13657 return create_auth_GMAC_operation(ts_params, ut_params, reference, 0); in create_auth_verify_GMAC_operation()
13661 create_cipher_auth_verify_operation(struct crypto_testsuite_params *ts_params, in create_cipher_auth_verify_operation() argument
13665 return create_cipher_auth_operation(ts_params, ut_params, reference, 0); in create_cipher_auth_verify_operation()
13670 struct crypto_testsuite_params *ts_params, in test_authentication_verify_fail_when_data_corruption() argument
13680 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authentication_verify_fail_when_data_corruption()
13693 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authentication_verify_fail_when_data_corruption()
13700 ts_params->valid_devs[0], in test_authentication_verify_fail_when_data_corruption()
13709 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authentication_verify_fail_when_data_corruption()
13726 retval = create_auth_verify_operation(ts_params, ut_params, reference); in test_authentication_verify_fail_when_data_corruption()
13737 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_authentication_verify_fail_when_data_corruption()
13743 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authentication_verify_fail_when_data_corruption()
13746 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_authentication_verify_fail_when_data_corruption()
13759 struct crypto_testsuite_params *ts_params, in test_authentication_verify_GMAC_fail_when_corruption() argument
13768 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authentication_verify_GMAC_fail_when_corruption()
13781 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authentication_verify_GMAC_fail_when_corruption()
13787 ts_params->valid_devs[0], in test_authentication_verify_GMAC_fail_when_corruption()
13794 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authentication_verify_GMAC_fail_when_corruption()
13811 retval = create_auth_verify_GMAC_operation(ts_params, in test_authentication_verify_GMAC_fail_when_corruption()
13824 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_authentication_verify_GMAC_fail_when_corruption()
13830 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authentication_verify_GMAC_fail_when_corruption()
13833 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_authentication_verify_GMAC_fail_when_corruption()
13843 struct crypto_testsuite_params *ts_params, in test_authenticated_decryption_fail_when_corruption() argument
13853 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_decryption_fail_when_corruption()
13866 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_decryption_fail_when_corruption()
13871 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_decryption_fail_when_corruption()
13877 ts_params->valid_devs[0], in test_authenticated_decryption_fail_when_corruption()
13887 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_fail_when_corruption()
13902 retval = create_cipher_auth_verify_operation(ts_params, in test_authenticated_decryption_fail_when_corruption()
13915 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_authenticated_decryption_fail_when_corruption()
13921 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_decryption_fail_when_corruption()
13924 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_authenticated_decryption_fail_when_corruption()
13934 struct crypto_testsuite_params *ts_params, in test_authenticated_encrypt_with_esn() argument
13947 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_encrypt_with_esn()
13960 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_encrypt_with_esn()
13965 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_encrypt_with_esn()
13996 ts_params->session_mpool); in test_authenticated_encrypt_with_esn()
13999 status = rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in test_authenticated_encrypt_with_esn()
14002 ts_params->session_priv_mpool); in test_authenticated_encrypt_with_esn()
14009 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encrypt_with_esn()
14023 retval = create_cipher_auth_operation(ts_params, in test_authenticated_encrypt_with_esn()
14031 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_authenticated_encrypt_with_esn()
14034 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_encrypt_with_esn()
14038 ts_params->valid_devs[0], ut_params->op); in test_authenticated_encrypt_with_esn()
14073 struct crypto_testsuite_params *ts_params, in test_authenticated_decrypt_with_esn() argument
14084 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_decrypt_with_esn()
14097 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_decrypt_with_esn()
14102 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_decrypt_with_esn()
14132 ts_params->session_mpool); in test_authenticated_decrypt_with_esn()
14135 retval = rte_cryptodev_sym_session_init(ts_params->valid_devs[0], in test_authenticated_decrypt_with_esn()
14138 ts_params->session_priv_mpool); in test_authenticated_decrypt_with_esn()
14145 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decrypt_with_esn()
14160 retval = create_cipher_auth_verify_operation(ts_params, in test_authenticated_decrypt_with_esn()
14168 process_cpu_crypt_auth_op(ts_params->valid_devs[0], in test_authenticated_decrypt_with_esn()
14171 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_decrypt_with_esn()
14174 ut_params->op = process_crypto_request(ts_params->valid_devs[0], in test_authenticated_decrypt_with_esn()
14193 struct crypto_testsuite_params *ts_params = &testsuite_params; in create_aead_operation_SGL() local
14202 ut_params->op = rte_crypto_op_alloc(ts_params->op_mpool, in create_aead_operation_SGL()
14283 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_authenticated_encryption_SGL() local
14298 if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], in test_authenticated_encryption_SGL()
14307 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); in test_authenticated_encryption_SGL()
14369 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
14376 retval = create_aead_session(ts_params->valid_devs[0], in test_authenticated_encryption_SGL()
14385 ut_params->ibuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
14411 buf->next = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
14420 rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
14474 rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
14522 process_cpu_aead_op(ts_params->valid_devs[0], ut_params->op); in test_authenticated_encryption_SGL()
14524 process_sym_raw_dp_op(ts_params->valid_devs[0], 0, in test_authenticated_encryption_SGL()
14528 process_crypto_request(ts_params->valid_devs[0], in test_authenticated_encryption_SGL()
14618 struct crypto_testsuite_params *ts_params, in test_authentication_verify_fail_when_data_corrupted() argument
14623 ts_params, ut_params, reference, 1); in test_authentication_verify_fail_when_data_corrupted()
14628 struct crypto_testsuite_params *ts_params, in test_authentication_verify_fail_when_tag_corrupted() argument
14633 ts_params, ut_params, reference, 0); in test_authentication_verify_fail_when_tag_corrupted()
14638 struct crypto_testsuite_params *ts_params, in test_authentication_verify_GMAC_fail_when_data_corrupted() argument
14643 ts_params, ut_params, reference, 1); in test_authentication_verify_GMAC_fail_when_data_corrupted()
14648 struct crypto_testsuite_params *ts_params, in test_authentication_verify_GMAC_fail_when_tag_corrupted() argument
14653 ts_params, ut_params, reference, 0); in test_authentication_verify_GMAC_fail_when_tag_corrupted()
14658 struct crypto_testsuite_params *ts_params, in test_authenticated_decryption_fail_when_data_corrupted() argument
14663 ts_params, ut_params, reference, 1); in test_authenticated_decryption_fail_when_data_corrupted()
14668 struct crypto_testsuite_params *ts_params, in test_authenticated_decryption_fail_when_tag_corrupted() argument
14673 ts_params, ut_params, reference, 0); in test_authenticated_decryption_fail_when_tag_corrupted()
14825 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_scheduler_attach_worker_op() local
14826 uint8_t sched_id = ts_params->valid_devs[0]; in test_scheduler_attach_worker_op()
14866 if (ts_params->session_mpool) { in test_scheduler_attach_worker_op()
14867 rte_mempool_free(ts_params->session_mpool); in test_scheduler_attach_worker_op()
14868 ts_params->session_mpool = NULL; in test_scheduler_attach_worker_op()
14870 if (ts_params->session_priv_mpool) { in test_scheduler_attach_worker_op()
14871 rte_mempool_free(ts_params->session_priv_mpool); in test_scheduler_attach_worker_op()
14872 ts_params->session_priv_mpool = NULL; in test_scheduler_attach_worker_op()
14887 if (ts_params->session_mpool == NULL) { in test_scheduler_attach_worker_op()
14888 ts_params->session_mpool = in test_scheduler_attach_worker_op()
14893 TEST_ASSERT_NOT_NULL(ts_params->session_mpool, in test_scheduler_attach_worker_op()
14901 if (ts_params->session_priv_mpool == NULL) { in test_scheduler_attach_worker_op()
14902 ts_params->session_priv_mpool = rte_mempool_create( in test_scheduler_attach_worker_op()
14910 TEST_ASSERT_NOT_NULL(ts_params->session_priv_mpool, in test_scheduler_attach_worker_op()
14914 ts_params->qp_conf.mp_session = ts_params->session_mpool; in test_scheduler_attach_worker_op()
14915 ts_params->qp_conf.mp_session_private = in test_scheduler_attach_worker_op()
14916 ts_params->session_priv_mpool; in test_scheduler_attach_worker_op()
14936 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_scheduler_detach_worker_op() local
14937 uint8_t sched_id = ts_params->valid_devs[0]; in test_scheduler_detach_worker_op()
14954 struct crypto_testsuite_params *ts_params = &testsuite_params; in test_scheduler_mode_op() local
14955 uint8_t sched_id = ts_params->valid_devs[0]; in test_scheduler_mode_op()