]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_cryptodev.c
test/crypto: add PDCP U-Plane encap cases
[dpdk.git] / app / test / test_cryptodev.c
index ac575c8a3d900d43f24121b3166f99fe7ba025c3..86ead9c27ce65c17aeeb9818c4e58fa1667e8c84 100644 (file)
@@ -7215,6 +7215,19 @@ test_pdcp_proto_cplane_encap(int i)
                pdcp_test_data_in_len[i]+4);
 }
 
+int
+test_pdcp_proto_uplane_encap(int i)
+{
+       return test_pdcp_proto(i, 0,
+               RTE_CRYPTO_CIPHER_OP_ENCRYPT,
+               RTE_CRYPTO_AUTH_OP_GENERATE,
+               pdcp_test_data_in[i],
+               pdcp_test_data_in_len[i],
+               pdcp_test_data_out[i],
+               pdcp_test_data_in_len[i]);
+
+}
+
 int
 test_pdcp_proto_cplane_decap(int i)
 {
@@ -11647,6 +11660,9 @@ static struct unit_test_suite cryptodev_dpaa_sec_testsuite  = {
 
                TEST_CASE_ST(ut_setup, ut_teardown,
                        test_PDCP_PROTO_cplane_decap_all),
+
+               TEST_CASE_ST(ut_setup, ut_teardown,
+                       test_PDCP_PROTO_uplane_encap_all),
 #endif
                /** AES GCM Authenticated Encryption */
                TEST_CASE_ST(ut_setup, ut_teardown,
@@ -11759,6 +11775,9 @@ static struct unit_test_suite cryptodev_dpaa2_sec_testsuite  = {
 
                TEST_CASE_ST(ut_setup, ut_teardown,
                        test_PDCP_PROTO_cplane_decap_all),
+
+               TEST_CASE_ST(ut_setup, ut_teardown,
+                       test_PDCP_PROTO_uplane_encap_all),
 #endif
                /** AES GCM Authenticated Encryption */
                TEST_CASE_ST(ut_setup, ut_teardown,