Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/60262/?format=api
https://patches.dpdk.org/api/patches/60262/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190930192746.16815-6-akhil.goyal@nxp.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20190930192746.16815-6-akhil.goyal@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190930192746.16815-6-akhil.goyal@nxp.com", "date": "2019-09-30T19:27:44", "name": "[v2,5/7] test/crypto: add PDCP uplane decap cases", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6af14561f2c50513a8912879d3b16d49d5dad7ee", "submitter": { "id": 517, "url": "https://patches.dpdk.org/api/people/517/?format=api", "name": "Akhil Goyal", "email": "akhil.goyal@nxp.com" }, "delegate": { "id": 6690, "url": "https://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190930192746.16815-6-akhil.goyal@nxp.com/mbox/", "series": [ { "id": 6633, "url": "https://patches.dpdk.org/api/series/6633/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6633", "date": "2019-09-30T19:27:39", "name": "Add PDCP test cases", "version": 2, "mbox": "https://patches.dpdk.org/series/6633/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/60262/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/60262/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E233D1BED0;\n\tMon, 30 Sep 2019 21:43:20 +0200 (CEST)", "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id AFDBC1BEA5\n\tfor <dev@dpdk.org>; Mon, 30 Sep 2019 21:43:07 +0200 (CEST)", "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 90DFE1A04AF;\n\tMon, 30 Sep 2019 21:43:07 +0200 (CEST)", "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 32F551A0292;\n\tMon, 30 Sep 2019 21:43:04 +0200 (CEST)", "from GDB1.ap.freescale.net (GDB1.ap.freescale.net [10.232.132.179])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 128934030D;\n\tTue, 1 Oct 2019 03:42:59 +0800 (SGT)" ], "From": "Akhil Goyal <akhil.goyal@nxp.com>", "To": "dev@dpdk.org", "Cc": "hemant.agrawal@nxp.com, anoobj@marvell.com, konstantin.ananyev@intel.com,\n\tAkhil Goyal <akhil.goyal@nxp.com>, Vakul Garg <vakul.garg@nxp.com>", "Date": "Tue, 1 Oct 2019 00:57:44 +0530", "Message-Id": "<20190930192746.16815-6-akhil.goyal@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190930192746.16815-1-akhil.goyal@nxp.com>", "References": "<20190905144754.10188-1-akhil.goyal@nxp.com>\n\t<20190930192746.16815-1-akhil.goyal@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[dpdk-dev] [PATCH v2 5/7] test/crypto: add PDCP uplane decap cases", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch add test cases for user plane PDCP\n5/7/12/15/18 bit SN test cases for decapsulation of\ncipher only and 12/18 bit for cipher + integrity\nfor all algo combinations.\n\nTest vectors are reused from the encap cases\nby swapping the input and output data.\n\nThe case are added to DPAA_SEC and DPAA2_SEC\ntestsuite.\n\nSigned-off-by: Akhil Goyal <akhil.goyal@nxp.com>\nSigned-off-by: Vakul Garg <vakul.garg@nxp.com>\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\nAcked-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n app/test/test_cryptodev.c | 30 +++\n app/test/test_cryptodev_security_pdcp.c | 173 ++++++++++++++++++\n .../test_cryptodev_security_pdcp_test_func.h | 3 +\n 3 files changed, 206 insertions(+)", "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 4666317aa..afc296bf9 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -7252,6 +7252,30 @@ test_pdcp_proto_cplane_decap(int i)\n \t\tpdcp_test_data_in_len[i]);\n }\n \n+int\n+test_pdcp_proto_uplane_decap(int i)\n+{\n+\treturn test_pdcp_proto(i, 0,\n+\t\tRTE_CRYPTO_CIPHER_OP_DECRYPT,\n+\t\tRTE_CRYPTO_AUTH_OP_VERIFY,\n+\t\tpdcp_test_data_out[i],\n+\t\tpdcp_test_data_in_len[i],\n+\t\tpdcp_test_data_in[i],\n+\t\tpdcp_test_data_in_len[i]);\n+}\n+\n+int\n+test_pdcp_proto_uplane_decap_with_int(int i)\n+{\n+\treturn test_pdcp_proto(i, 0,\n+\t\tRTE_CRYPTO_CIPHER_OP_DECRYPT,\n+\t\tRTE_CRYPTO_AUTH_OP_VERIFY,\n+\t\tpdcp_test_data_out[i],\n+\t\tpdcp_test_data_in_len[i] + 4,\n+\t\tpdcp_test_data_in[i],\n+\t\tpdcp_test_data_in_len[i]);\n+}\n+\n #endif\n \n static int\n@@ -11675,6 +11699,9 @@ static struct unit_test_suite cryptodev_dpaa_sec_testsuite = {\n \n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\ttest_PDCP_PROTO_uplane_encap_all),\n+\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\ttest_PDCP_PROTO_uplane_decap_all),\n #endif\n \t\t/** AES GCM Authenticated Encryption */\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n@@ -11790,6 +11817,9 @@ static struct unit_test_suite cryptodev_dpaa2_sec_testsuite = {\n \n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\ttest_PDCP_PROTO_uplane_encap_all),\n+\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\ttest_PDCP_PROTO_uplane_decap_all),\n #endif\n \t\t/** AES GCM Authenticated Encryption */\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\ndiff --git a/app/test/test_cryptodev_security_pdcp.c b/app/test/test_cryptodev_security_pdcp.c\nindex e1ba2bf6e..30f3eb892 100644\n--- a/app/test/test_cryptodev_security_pdcp.c\n+++ b/app/test/test_cryptodev_security_pdcp.c\n@@ -99,6 +99,33 @@ static int uplane_encap_no_integrity(uint32_t sn_size, uint8_t dir,\n \treturn test_pdcp_proto_uplane_encap(i);\n }\n \n+static int\n+uplane_decap_no_integrity(uint32_t sn_size, uint8_t dir,\n+\t\tenum enc_alg_off enc_alg_off)\n+{\n+\tint i = PDCP_UPLANE_OFFSET + ((dir == 0) ? UPLINK : DOWNLINK) +\n+\t\t\tenc_alg_off;\n+\n+\tswitch (sn_size) {\n+\tcase 7:\n+\t\ti += SHORT_SEQ_NUM_OFFSET;\n+\t\tbreak;\n+\tcase 15:\n+\t\ti += FIFTEEN_BIT_SEQ_NUM_OFFSET;\n+\t\tbreak;\n+\tcase 12:\n+\t\ti += LONG_SEQ_NUM_OFFSET;\n+\t\tbreak;\n+\tcase 18:\n+\t\ti += EIGHTEEN_BIT_SEQ_NUM_OFFSET;\n+\t\tbreak;\n+\tdefault:\n+\t\tprintf(\"\\nInvalid SN: %u\\n\", sn_size);\n+\t}\n+\n+\treturn test_pdcp_proto_uplane_decap(i);\n+}\n+\n static int\n uplane_encap_with_integrity(uint32_t sn_size, uint8_t dir,\n \t\tenum enc_alg_off enc_alg_off,\n@@ -124,6 +151,31 @@ uplane_encap_with_integrity(uint32_t sn_size, uint8_t dir,\n \treturn test_pdcp_proto_uplane_encap_with_int(i);\n }\n \n+static int\n+uplane_decap_with_integrity(uint32_t sn_size, uint8_t dir,\n+\t\tenum enc_alg_off enc_alg_off,\n+\t\tenum auth_alg_off auth_alg_off)\n+{\n+\tint i = 0;\n+\n+\tswitch (sn_size) {\n+\tcase 12:\n+\t\ti = PDCP_UPLANE_12BIT_OFFSET + enc_alg_off +\n+\t\t\tauth_alg_off + ((dir == 0) ?\n+\t\t\t\tUPLINK : DOWNLINK);\n+\t\tbreak;\n+\tcase 18:\n+\t\ti = PDCP_UPLANE_18BIT_OFFSET + enc_alg_off +\n+\t\t\tauth_alg_off + ((dir == 0) ?\n+\t\t\t\tUPLINK : DOWNLINK);\n+\t\tbreak;\n+\tdefault:\n+\t\tprintf(\"\\nInvalid SN: %u\\n\", sn_size);\n+\t}\n+\n+\treturn test_pdcp_proto_uplane_decap_with_int(i);\n+}\n+\n #define TEST_PDCP_COUNT(func) do {\t\t\t\\\n \tif (func == TEST_SUCCESS) {\t\t\t\\\n \t\tprintf(\"\\t%d)\", n++);\t\t\t\\\n@@ -415,3 +467,124 @@ test_PDCP_PROTO_uplane_encap_all(void)\n \n \treturn n - i;\n };\n+\n+int\n+test_PDCP_PROTO_uplane_decap_all(void)\n+{\n+\tint i = 0, n = 0;\n+\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, UPLINK, NULL_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, DOWNLINK, NULL_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, UPLINK, NULL_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, DOWNLINK, NULL_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, UPLINK, NULL_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, DOWNLINK, NULL_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, UPLINK, NULL_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, DOWNLINK, NULL_ENC));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, UPLINK, SNOW_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, DOWNLINK, SNOW_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, UPLINK, SNOW_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, DOWNLINK, SNOW_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, UPLINK, SNOW_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, DOWNLINK, SNOW_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, UPLINK, SNOW_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, DOWNLINK, SNOW_ENC));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, UPLINK, AES_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, DOWNLINK, AES_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, UPLINK, AES_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, DOWNLINK, AES_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, UPLINK, AES_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, DOWNLINK, AES_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, UPLINK, AES_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, DOWNLINK, AES_ENC));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, UPLINK, ZUC_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(12, DOWNLINK, ZUC_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, UPLINK, ZUC_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(7, DOWNLINK, ZUC_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, UPLINK, ZUC_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(15, DOWNLINK, ZUC_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, UPLINK, ZUC_ENC));\n+\tTEST_PDCP_COUNT(uplane_decap_no_integrity(18, DOWNLINK, ZUC_ENC));\n+\n+\t/* u-plane 12-bit with integrity */\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, NULL_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, NULL_ENC, ZUC_AUTH));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, SNOW_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, SNOW_ENC, ZUC_AUTH));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, AES_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, AES_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, AES_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, AES_ENC, ZUC_AUTH));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, UPLINK, ZUC_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(12, DOWNLINK, ZUC_ENC, ZUC_AUTH));\n+\n+\t/* u-plane 18-bit with integrity */\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, NULL_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, NULL_ENC, ZUC_AUTH));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, SNOW_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, SNOW_ENC, ZUC_AUTH));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, AES_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, AES_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, AES_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, AES_ENC, ZUC_AUTH));\n+\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, UPLINK, ZUC_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(uplane_decap_with_integrity(18, DOWNLINK, ZUC_ENC, ZUC_AUTH));\n+\n+\tif (n - i)\n+\t\tprintf(\"## %s: %d passed out of %d\\n\", __func__, i, n);\n+\n+\treturn n - i;\n+};\ndiff --git a/app/test/test_cryptodev_security_pdcp_test_func.h b/app/test/test_cryptodev_security_pdcp_test_func.h\nindex 473cdaecc..f3dc93e2f 100644\n--- a/app/test/test_cryptodev_security_pdcp_test_func.h\n+++ b/app/test/test_cryptodev_security_pdcp_test_func.h\n@@ -37,9 +37,12 @@ int test_pdcp_proto_cplane_encap(int i);\n int test_pdcp_proto_uplane_encap(int i);\n int test_pdcp_proto_uplane_encap_with_int(int i);\n int test_pdcp_proto_cplane_decap(int i);\n+int test_pdcp_proto_uplane_decap(int i);\n+int test_pdcp_proto_uplane_decap_with_int(int i);\n \n int test_PDCP_PROTO_cplane_encap_all(void);\n int test_PDCP_PROTO_cplane_decap_all(void);\n int test_PDCP_PROTO_uplane_encap_all(void);\n+int test_PDCP_PROTO_uplane_decap_all(void);\n \n #endif /* SECURITY_PDCP_TEST_FUNC_H_ */\n", "prefixes": [ "v2", "5/7" ] }{ "id": 60262, "url": "