Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/80374/?format=api
https://patches.dpdk.org/api/patches/80374/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201012141006.31463-9-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": "<20201012141006.31463-9-akhil.goyal@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201012141006.31463-9-akhil.goyal@nxp.com", "date": "2020-10-12T14:10:06", "name": "[v3,8/8] test/crypto: Add PDCP-SDAP cases", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6d6898825a63a0e9ea6b70a62978af984c120ccc", "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/20201012141006.31463-9-akhil.goyal@nxp.com/mbox/", "series": [ { "id": 12883, "url": "https://patches.dpdk.org/api/series/12883/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12883", "date": "2020-10-12T14:09:58", "name": "support PDCP-SDAP for dpaa2_sec", "version": 3, "mbox": "https://patches.dpdk.org/series/12883/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/80374/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/80374/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9E2F9A04B6;\n\tMon, 12 Oct 2020 16:13:05 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C68731D921;\n\tMon, 12 Oct 2020 16:10:33 +0200 (CEST)", "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by dpdk.org (Postfix) with ESMTP id CA5141D8E3;\n Mon, 12 Oct 2020 16:10:25 +0200 (CEST)", "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AC066200E1C;\n Mon, 12 Oct 2020 16:10:24 +0200 (CEST)", "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id BF1CF200E1A;\n Mon, 12 Oct 2020 16:10:20 +0200 (CEST)", "from lsv03273.swis.in-blr01.nxp.com (lsv03273.swis.in-blr01.nxp.com\n [92.120.147.113])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id ABC104032C;\n Mon, 12 Oct 2020 16:10:13 +0200 (CEST)" ], "From": "Akhil Goyal <akhil.goyal@nxp.com>", "To": "dev@dpdk.org,\n\ttechboard@dpdk.org", "Cc": "thomas@monjalon.net, anoobj@marvell.com, hemant.agrawal@nxp.com,\n declan.doherty@intel.com, david.coyle@intel.com,\n Franck Lenormand <franck.lenormand@nxp.com>,\n Akhil Goyal <akhil.goyal@nxp.com>", "Date": "Mon, 12 Oct 2020 19:40:06 +0530", "Message-Id": "<20201012141006.31463-9-akhil.goyal@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20201012141006.31463-1-akhil.goyal@nxp.com>", "References": "<20201011213403.21169-1-akhil.goyal@nxp.com>\n <20201012141006.31463-1-akhil.goyal@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[dpdk-dev] [PATCH v3 8/8] test/crypto: Add PDCP-SDAP 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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Franck Lenormand <franck.lenormand@nxp.com>\n\nA new functions which uses the structure of the test vectors for SDAP\nis added and call a functions responsible to call the test_pdcp_proto\nwith the test vector both for encapsulation and decapsulation.\n\nSigned-off-by: Franck Lenormand <franck.lenormand@nxp.com>\nSigned-off-by: Akhil Goyal <akhil.goyal@nxp.com>\n---\n app/test/test_cryptodev.c | 95 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 95 insertions(+)", "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 7cea914f9..590691521 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -1,5 +1,6 @@\n /* SPDX-License-Identifier: BSD-3-Clause\n * Copyright(c) 2015-2020 Intel Corporation\n+ * Copyright 2020 NXP\n */\n \n #include <time.h>\n@@ -42,8 +43,12 @@\n #include \"test_cryptodev_mixed_test_vectors.h\"\n #ifdef RTE_LIBRTE_SECURITY\n #include \"test_cryptodev_security_pdcp_test_vectors.h\"\n+#include \"test_cryptodev_security_pdcp_sdap_test_vectors.h\"\n #include \"test_cryptodev_security_pdcp_test_func.h\"\n #include \"test_cryptodev_security_docsis_test_vectors.h\"\n+\n+#define SDAP_DISABLED\t0\n+#define SDAP_ENABLED\t1\n #endif\n \n #define VDEV_ARGS_SIZE 100\n@@ -52,6 +57,10 @@\n #define IN_PLACE 0\n #define OUT_OF_PLACE 1\n \n+#ifndef ARRAY_SIZE\n+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))\n+#endif\n+\n static int gbl_driver_id;\n \n static enum rte_security_session_action_type gbl_action_type =\n@@ -7743,6 +7752,90 @@ test_PDCP_PROTO_SGL_oop_128B_32B(void)\n \t\t\t128, 32);\n }\n \n+static int\n+test_PDCP_SDAP_PROTO_encap_all(void)\n+{\n+\tint i = 0, size = 0;\n+\tint err, all_err = TEST_SUCCESS;\n+\tconst struct pdcp_sdap_test *cur_test;\n+\n+\tsize = ARRAY_SIZE(list_pdcp_sdap_tests);\n+\n+\tfor (i = 0; i < size; i++) {\n+\t\tcur_test = &list_pdcp_sdap_tests[i];\n+\t\terr = test_pdcp_proto(\n+\t\t\ti, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT,\n+\t\t\tRTE_CRYPTO_AUTH_OP_GENERATE, cur_test->data_in,\n+\t\t\tcur_test->in_len, cur_test->data_out,\n+\t\t\tcur_test->in_len + ((cur_test->auth_key) ? 4 : 0),\n+\t\t\tcur_test->param.cipher_alg, cur_test->cipher_key,\n+\t\t\tcur_test->param.cipher_key_len,\n+\t\t\tcur_test->param.auth_alg,\n+\t\t\tcur_test->auth_key, cur_test->param.auth_key_len,\n+\t\t\tcur_test->bearer, cur_test->param.domain,\n+\t\t\tcur_test->packet_direction, cur_test->sn_size,\n+\t\t\tcur_test->hfn,\n+\t\t\tcur_test->hfn_threshold, SDAP_ENABLED);\n+\t\tif (err) {\n+\t\t\tprintf(\"\\t%d) %s: Encapsulation failed\\n\",\n+\t\t\t\t\tcur_test->test_idx,\n+\t\t\t\t\tcur_test->param.name);\n+\t\t\terr = TEST_FAILED;\n+\t\t} else {\n+\t\t\tprintf(\"\\t%d) %s: Encap PASS\\n\", cur_test->test_idx,\n+\t\t\t\t\tcur_test->param.name);\n+\t\t\terr = TEST_SUCCESS;\n+\t\t}\n+\t\tall_err += err;\n+\t}\n+\n+\tprintf(\"Success: %d, Failure: %d\\n\", size + all_err, -all_err);\n+\n+\treturn (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;\n+}\n+\n+static int\n+test_PDCP_SDAP_PROTO_decap_all(void)\n+{\n+\tint i = 0, size = 0;\n+\tint err, all_err = TEST_SUCCESS;\n+\tconst struct pdcp_sdap_test *cur_test;\n+\n+\tsize = ARRAY_SIZE(list_pdcp_sdap_tests);\n+\n+\tfor (i = 0; i < size; i++) {\n+\t\tcur_test = &list_pdcp_sdap_tests[i];\n+\t\terr = test_pdcp_proto(\n+\t\t\ti, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT,\n+\t\t\tRTE_CRYPTO_AUTH_OP_VERIFY,\n+\t\t\tcur_test->data_out,\n+\t\t\tcur_test->in_len + ((cur_test->auth_key) ? 4 : 0),\n+\t\t\tcur_test->data_in, cur_test->in_len,\n+\t\t\tcur_test->param.cipher_alg,\n+\t\t\tcur_test->cipher_key, cur_test->param.cipher_key_len,\n+\t\t\tcur_test->param.auth_alg, cur_test->auth_key,\n+\t\t\tcur_test->param.auth_key_len, cur_test->bearer,\n+\t\t\tcur_test->param.domain, cur_test->packet_direction,\n+\t\t\tcur_test->sn_size, cur_test->hfn,\n+\t\t\tcur_test->hfn_threshold, SDAP_ENABLED);\n+\t\tif (err) {\n+\t\t\tprintf(\"\\t%d) %s: Decapsulation failed\\n\",\n+\t\t\t\t\tcur_test->test_idx,\n+\t\t\t\t\tcur_test->param.name);\n+\t\t\terr = TEST_FAILED;\n+\t\t} else {\n+\t\t\tprintf(\"\\t%d) %s: Decap PASS\\n\", cur_test->test_idx,\n+\t\t\t\t\tcur_test->param.name);\n+\t\t\terr = TEST_SUCCESS;\n+\t\t}\n+\t\tall_err += err;\n+\t}\n+\n+\tprintf(\"Success: %d, Failure: %d\\n\", size + all_err, -all_err);\n+\n+\treturn (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;\n+}\n+\n static int\n test_PDCP_PROTO_all(void)\n {\n@@ -7774,6 +7867,8 @@ test_PDCP_PROTO_all(void)\n \tstatus += test_PDCP_PROTO_SGL_oop_32B_128B();\n \tstatus += test_PDCP_PROTO_SGL_oop_32B_40B();\n \tstatus += test_PDCP_PROTO_SGL_oop_128B_32B();\n+\tstatus += test_PDCP_SDAP_PROTO_encap_all();\n+\tstatus += test_PDCP_SDAP_PROTO_decap_all();\n \n \tif (status)\n \t\treturn TEST_FAILED;\n", "prefixes": [ "v3", "8/8" ] }{ "id": 80374, "url": "