Lines Matching refs:obuf
107 struct rte_mbuf *obuf, *ibuf; member
962 if (ut_params->obuf) { in ut_teardown()
963 rte_pktmbuf_free(ut_params->obuf); in ut_teardown()
964 if (ut_params->ibuf == ut_params->obuf) in ut_teardown()
966 ut_params->obuf = 0; in ut_teardown()
1906 ut_params->obuf = ut_params->op->sym->m_src; in test_AES_CBC_HMAC_SHA512_decrypt_perform()
1910 rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), in test_AES_CBC_HMAC_SHA512_decrypt_perform()
2126 sym_op->m_dst = ut_params->obuf; in create_wireless_algo_cipher_operation_oop()
2588 sym_op->m_dst = ut_params->obuf; in create_wireless_algo_auth_cipher_operation()
2594 ut_params->ibuf : ut_params->obuf), in create_wireless_algo_auth_cipher_operation()
2598 ut_params->ibuf : ut_params->obuf), in create_wireless_algo_auth_cipher_operation()
2732 ut_params->obuf = ut_params->op->sym->m_src; in test_snow3g_authentication()
2734 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_authentication()
2825 ut_params->obuf = ut_params->op->sym->m_src; in test_snow3g_authentication_verify()
2826 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_authentication_verify()
2912 ut_params->obuf = ut_params->op->sym->m_src; in test_kasumi_authentication()
2914 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_kasumi_authentication()
2999 ut_params->obuf = ut_params->op->sym->m_src; in test_kasumi_authentication_verify()
3000 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_kasumi_authentication_verify()
3224 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption()
3225 if (ut_params->obuf) in test_kasumi_encryption()
3226 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption()
3323 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption_sgl()
3325 if (ut_params->obuf) in test_kasumi_encryption_sgl()
3326 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_sgl()
3383 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_encryption_oop()
3395 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_kasumi_encryption_oop()
3412 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption_oop()
3413 if (ut_params->obuf) in test_kasumi_encryption_oop()
3414 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_encryption_oop()
3486 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_encryption_oop_sgl()
3505 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_encryption_oop_sgl()
3506 if (ut_params->obuf) in test_kasumi_encryption_oop_sgl()
3507 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_encryption_oop_sgl()
3561 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_decryption_oop()
3573 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_kasumi_decryption_oop()
3590 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_decryption_oop()
3591 if (ut_params->obuf) in test_kasumi_decryption_oop()
3592 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption_oop()
3682 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_decryption()
3683 if (ut_params->obuf) in test_kasumi_decryption()
3684 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_kasumi_decryption()
3774 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption()
3775 if (ut_params->obuf) in test_snow3g_encryption()
3776 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption()
3827 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_oop()
3831 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_encryption_oop()
3844 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_snow3g_encryption_oop()
3861 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption_oop()
3862 if (ut_params->obuf) in test_snow3g_encryption_oop()
3863 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_oop()
3933 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_encryption_oop_sgl()
3938 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_encryption_oop_sgl()
3955 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption_oop_sgl()
3956 if (ut_params->obuf) in test_snow3g_encryption_oop_sgl()
3957 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_encryption_oop_sgl()
4041 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_encryption_offset_oop()
4045 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_encryption_offset_oop()
4062 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_snow3g_encryption_offset_oop()
4082 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_encryption_offset_oop()
4083 if (ut_params->obuf) in test_snow3g_encryption_offset_oop()
4084 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_encryption_offset_oop()
4183 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_decryption()
4184 if (ut_params->obuf) in test_snow3g_decryption()
4185 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption()
4234 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_decryption_oop()
4238 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_decryption_oop()
4245 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_snow3g_decryption_oop()
4246 rte_pktmbuf_tailroom(ut_params->obuf)); in test_snow3g_decryption_oop()
4254 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_snow3g_decryption_oop()
4270 ut_params->obuf = ut_params->op->sym->m_dst; in test_snow3g_decryption_oop()
4271 if (ut_params->obuf) in test_snow3g_decryption_oop()
4272 plaintext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_decryption_oop()
4370 ut_params->obuf = ut_params->op->sym->m_src; in test_zuc_cipher_auth()
4371 if (ut_params->obuf) in test_zuc_cipher_auth()
4372 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_cipher_auth()
4384 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_zuc_cipher_auth()
4482 ut_params->obuf = ut_params->op->sym->m_src; in test_snow3g_cipher_auth()
4483 if (ut_params->obuf) in test_snow3g_cipher_auth()
4484 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_snow3g_cipher_auth()
4496 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_cipher_auth()
4578 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_snow3g_auth_cipher()
4584 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_snow3g_auth_cipher()
4585 rte_pktmbuf_tailroom(ut_params->obuf)); in test_snow3g_auth_cipher()
4597 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_snow3g_auth_cipher()
4605 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_snow3g_auth_cipher()
4635 ut_params->obuf = (op_mode == IN_PLACE ? in test_snow3g_auth_cipher()
4639 if (ut_params->obuf) in test_snow3g_auth_cipher()
4640 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
4652 if (ut_params->obuf) in test_snow3g_auth_cipher()
4653 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_snow3g_auth_cipher()
4663 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_snow3g_auth_cipher()
4789 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_snow3g_auth_cipher_sgl()
4791 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_snow3g_auth_cipher_sgl()
4838 ut_params->obuf = (op_mode == IN_PLACE ? in test_snow3g_auth_cipher_sgl()
4842 if (ut_params->obuf) in test_snow3g_auth_cipher_sgl()
4843 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
4855 if (ut_params->obuf) in test_snow3g_auth_cipher_sgl()
4856 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_snow3g_auth_cipher_sgl()
4867 if (ut_params->obuf) in test_snow3g_auth_cipher_sgl()
4868 digest = rte_pktmbuf_read(ut_params->obuf, in test_snow3g_auth_cipher_sgl()
4977 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_kasumi_auth_cipher()
4983 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_kasumi_auth_cipher()
4984 rte_pktmbuf_tailroom(ut_params->obuf)); in test_kasumi_auth_cipher()
4996 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_kasumi_auth_cipher()
5004 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_kasumi_auth_cipher()
5035 ut_params->obuf = (op_mode == IN_PLACE ? in test_kasumi_auth_cipher()
5040 if (ut_params->obuf) in test_kasumi_auth_cipher()
5041 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5052 if (ut_params->obuf) in test_kasumi_auth_cipher()
5053 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_kasumi_auth_cipher()
5064 ut_params->obuf, uint8_t *) + in test_kasumi_auth_cipher()
5190 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_kasumi_auth_cipher_sgl()
5192 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_kasumi_auth_cipher_sgl()
5239 ut_params->obuf = (op_mode == IN_PLACE ? in test_kasumi_auth_cipher_sgl()
5243 if (ut_params->obuf) in test_kasumi_auth_cipher_sgl()
5244 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5256 if (ut_params->obuf) in test_kasumi_auth_cipher_sgl()
5257 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_kasumi_auth_cipher_sgl()
5268 if (ut_params->obuf) in test_kasumi_auth_cipher_sgl()
5269 digest = rte_pktmbuf_read(ut_params->obuf, in test_kasumi_auth_cipher_sgl()
5397 ut_params->obuf = ut_params->op->sym->m_dst; in test_kasumi_cipher_auth()
5399 ut_params->obuf = ut_params->op->sym->m_src; in test_kasumi_cipher_auth()
5401 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_kasumi_cipher_auth()
5404 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_kasumi_cipher_auth()
5500 ut_params->obuf = ut_params->op->sym->m_dst; in test_zuc_encryption()
5501 if (ut_params->obuf) in test_zuc_encryption()
5502 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *); in test_zuc_encryption()
5600 ut_params->obuf = ut_params->op->sym->m_dst; in test_zuc_encryption_sgl()
5601 if (ut_params->obuf) in test_zuc_encryption_sgl()
5602 ciphertext = rte_pktmbuf_read(ut_params->obuf, in test_zuc_encryption_sgl()
5699 ut_params->obuf = ut_params->op->sym->m_src; in test_zuc_authentication()
5701 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_zuc_authentication()
5788 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_zuc_auth_cipher()
5794 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_zuc_auth_cipher()
5795 rte_pktmbuf_tailroom(ut_params->obuf)); in test_zuc_auth_cipher()
5807 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_zuc_auth_cipher()
5815 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_zuc_auth_cipher()
5846 ut_params->obuf = (op_mode == IN_PLACE ? in test_zuc_auth_cipher()
5851 if (ut_params->obuf) in test_zuc_auth_cipher()
5852 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
5863 if (ut_params->obuf) in test_zuc_auth_cipher()
5864 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_zuc_auth_cipher()
5875 ut_params->obuf, uint8_t *) + in test_zuc_auth_cipher()
5995 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_zuc_auth_cipher_sgl()
5997 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_zuc_auth_cipher_sgl()
6044 ut_params->obuf = (op_mode == IN_PLACE ? in test_zuc_auth_cipher_sgl()
6048 if (ut_params->obuf) in test_zuc_auth_cipher_sgl()
6049 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6061 if (ut_params->obuf) in test_zuc_auth_cipher_sgl()
6062 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_zuc_auth_cipher_sgl()
6073 if (ut_params->obuf) in test_zuc_auth_cipher_sgl()
6074 digest = rte_pktmbuf_read(ut_params->obuf, in test_zuc_auth_cipher_sgl()
6800 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_mixed_auth_cipher()
6807 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_mixed_auth_cipher()
6808 rte_pktmbuf_tailroom(ut_params->obuf)); in test_mixed_auth_cipher()
6821 rte_pktmbuf_append(ut_params->obuf, ciphertext_pad_len); in test_mixed_auth_cipher()
6829 rte_pktmbuf_append(ut_params->obuf, plaintext_pad_len); in test_mixed_auth_cipher()
6864 ut_params->obuf = (op_mode == IN_PLACE ? in test_mixed_auth_cipher()
6868 if (ut_params->obuf) in test_mixed_auth_cipher()
6869 plaintext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
6881 if (ut_params->obuf) in test_mixed_auth_cipher()
6882 ciphertext = rte_pktmbuf_mtod(ut_params->obuf, in test_mixed_auth_cipher()
6893 ut_params->digest = rte_pktmbuf_mtod(ut_params->obuf, uint8_t *) in test_mixed_auth_cipher()
7016 ut_params->obuf = create_segmented_mbuf(ts_params->mbuf_pool, in test_mixed_auth_cipher_sgl()
7018 TEST_ASSERT_NOT_NULL(ut_params->obuf, in test_mixed_auth_cipher_sgl()
7070 ut_params->obuf = (op_mode == IN_PLACE ? in test_mixed_auth_cipher_sgl()
7074 if (ut_params->obuf) in test_mixed_auth_cipher_sgl()
7075 plaintext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7089 if (ut_params->obuf) in test_mixed_auth_cipher_sgl()
7090 ciphertext = rte_pktmbuf_read(ut_params->obuf, 0, in test_mixed_auth_cipher_sgl()
7102 if (ut_params->obuf) in test_mixed_auth_cipher_sgl()
7103 digest = rte_pktmbuf_read(ut_params->obuf, in test_mixed_auth_cipher_sgl()
7528 if (ut_params->obuf) { in create_aead_operation()
7530 ut_params->obuf, in create_aead_operation()
7550 if (ut_params->obuf) { in create_aead_operation()
7552 ut_params->obuf, in create_aead_operation()
7565 ut_params->obuf ? ut_params->obuf : in create_aead_operation()
7572 ut_params->obuf ? ut_params->obuf : in create_aead_operation()
7794 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto()
7795 rte_pktmbuf_append(ut_params->obuf, output_vec_len); in test_pdcp_proto()
7878 ut_params->op->sym->m_dst = ut_params->obuf; in test_pdcp_proto()
7924 rte_pktmbuf_free(ut_params->obuf); in test_pdcp_proto()
7925 ut_params->obuf = NULL; in test_pdcp_proto()
7985 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_pdcp_proto_SGL()
7986 rte_pktmbuf_append(ut_params->obuf, frag_size_oop); in test_pdcp_proto_SGL()
7987 buf_oop = ut_params->obuf; in test_pdcp_proto_SGL()
8065 ut_params->obuf->nb_segs = segs; in test_pdcp_proto_SGL()
8135 ut_params->op->sym->m_dst = ut_params->obuf; in test_pdcp_proto_SGL()
8203 rte_pktmbuf_free(ut_params->obuf); in test_pdcp_proto_SGL()
8204 ut_params->obuf = NULL; in test_pdcp_proto_SGL()
9607 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_oop()
9612 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_authenticated_encryption_oop()
9613 rte_pktmbuf_tailroom(ut_params->obuf)); in test_authenticated_encryption_oop()
9623 ut_params->op->sym->m_dst = ut_params->obuf; in test_authenticated_encryption_oop()
9634 ciphertext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_encryption_oop()
9698 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_decryption_oop()
9702 memset(rte_pktmbuf_mtod(ut_params->obuf, uint8_t *), 0, in test_authenticated_decryption_oop()
9703 rte_pktmbuf_tailroom(ut_params->obuf)); in test_authenticated_decryption_oop()
9713 ut_params->op->sym->m_dst = ut_params->obuf; in test_authenticated_decryption_oop()
9722 plaintext = rte_pktmbuf_mtod_offset(ut_params->obuf, uint8_t *, in test_authenticated_decryption_oop()
10425 if (ut_params->obuf) { in test_multi_session()
10426 rte_pktmbuf_free(ut_params->obuf); in test_multi_session()
10427 if (ut_params->ibuf == ut_params->obuf) in test_multi_session()
10429 ut_params->obuf = 0; in test_multi_session()
10564 if (ut_paramz[j].ut_params.obuf) { in test_multi_session_random_usage()
10565 rte_pktmbuf_free(ut_paramz[j].ut_params.obuf); in test_multi_session_random_usage()
10567 == ut_paramz[j].ut_params.obuf) in test_multi_session_random_usage()
10569 ut_paramz[j].ut_params.obuf = 0; in test_multi_session_random_usage()
12243 ut_params->obuf = ut_params->op->sym->m_src; in test_authenticated_decrypt_with_esn()
12244 TEST_ASSERT_NOT_NULL(ut_params->obuf, "failed to retrieve obuf"); in test_authenticated_decrypt_with_esn()
12430 ut_params->obuf = rte_pktmbuf_alloc(ts_params->mbuf_pool); in test_authenticated_encryption_SGL()
12431 rte_pktmbuf_append(ut_params->obuf, in test_authenticated_encryption_SGL()
12433 buf_oop = ut_params->obuf; in test_authenticated_encryption_SGL()
12515 digest_mem = rte_pktmbuf_append(ut_params->obuf, in test_authenticated_encryption_SGL()
12519 ut_params->obuf, in test_authenticated_encryption_SGL()
12549 ut_params->obuf->nb_segs = segs; in test_authenticated_encryption_SGL()
12578 ut_params->op->sym->m_dst = ut_params->obuf; in test_authenticated_encryption_SGL()