get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/60259/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 60259,
    "url": "https://patches.dpdk.org/api/patches/60259/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190930192746.16815-3-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-3-akhil.goyal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190930192746.16815-3-akhil.goyal@nxp.com",
    "date": "2019-09-30T19:27:41",
    "name": "[v2,2/7] test/crypto: add PDCP cplane decap cases",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d0c34cf84d2c93f688a158e4a162e994c6e85749",
    "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-3-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/60259/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/60259/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 8773D1BEA6;\n\tMon, 30 Sep 2019 21:43:12 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id 93B411BE99\n\tfor <dev@dpdk.org>; Mon, 30 Sep 2019 21:43:04 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D76781A01D8;\n\tMon, 30 Sep 2019 21:43:03 +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 B2B9E1A02A4;\n\tMon, 30 Sep 2019 21:43:00 +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 A7C5F402C7;\n\tTue,  1 Oct 2019 03:42:56 +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:41 +0530",
        "Message-Id": "<20190930192746.16815-3-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 2/7] test/crypto: add PDCP cplane 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 control plane PDCP\n5 and 12 bit SN test cases for decapsulation of\ncipher+integrity for 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 testsuite.\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                     |  18 +++\n app/test/test_cryptodev_security_pdcp.c       | 105 ++++++++++++++++++\n .../test_cryptodev_security_pdcp_test_func.h  |   2 +\n 3 files changed, 125 insertions(+)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 35fe16aaa..ac575c8a3 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -7215,6 +7215,18 @@ test_pdcp_proto_cplane_encap(int i)\n \t\tpdcp_test_data_in_len[i]+4);\n }\n \n+int\n+test_pdcp_proto_cplane_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] + 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@@ -11632,6 +11644,9 @@ static struct unit_test_suite cryptodev_dpaa_sec_testsuite  = {\n #ifdef RTE_LIBRTE_SECURITY\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\ttest_PDCP_PROTO_cplane_encap_all),\n+\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\ttest_PDCP_PROTO_cplane_decap_all),\n #endif\n \t\t/** AES GCM Authenticated Encryption */\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n@@ -11741,6 +11756,9 @@ static struct unit_test_suite cryptodev_dpaa2_sec_testsuite  = {\n #ifdef RTE_LIBRTE_SECURITY\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\ttest_PDCP_PROTO_cplane_encap_all),\n+\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\ttest_PDCP_PROTO_cplane_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 cdf6639b7..803fc1dfc 100644\n--- a/app/test/test_cryptodev_security_pdcp.c\n+++ b/app/test/test_cryptodev_security_pdcp.c\n@@ -48,6 +48,31 @@ static int cplane_encap(uint32_t sn_size, uint8_t dir,\n \treturn test_pdcp_proto_cplane_encap(i);\n }\n \n+static int\n+cplane_decap(uint32_t sn_size, uint8_t dir,\n+\t     enum enc_alg_off enc_alg_off,\n+\t     enum auth_alg_off auth_alg_off)\n+{\n+\tint i = 0;\n+\n+\tswitch (sn_size) {\n+\tcase 5:\n+\t\ti = PDCP_CPLANE_OFFSET + enc_alg_off +\n+\t\t\tauth_alg_off + ((dir == 0) ?\n+\t\t\t\tUPLINK : DOWNLINK);\n+\t\tbreak;\n+\tcase 12:\n+\t\ti = PDCP_CPLANE_LONG_SN_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 for %s\\n\", sn_size, __func__);\n+\t}\n+\n+\treturn test_pdcp_proto_cplane_decap(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@@ -138,3 +163,83 @@ test_PDCP_PROTO_cplane_encap_all(void)\n \n \treturn n - i;\n };\n+\n+int\n+test_PDCP_PROTO_cplane_decap_all(void)\n+{\n+\tint i = 0, n = 0;\n+\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, NULL_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, NULL_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, SNOW_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, SNOW_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, AES_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, AES_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, AES_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, AES_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, UPLINK, ZUC_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(5, DOWNLINK, ZUC_ENC, ZUC_AUTH));\n+\n+\t/* C-plane 12-bit */\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, NULL_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, NULL_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, NULL_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, NULL_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, NULL_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, SNOW_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, SNOW_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, SNOW_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, SNOW_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, SNOW_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, AES_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, AES_ENC, SNOW_AUTH));\n+\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, AES_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, AES_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, AES_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, AES_ENC, ZUC_AUTH));\n+\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, ZUC_ENC, NULL_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, ZUC_ENC, SNOW_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, DOWNLINK, ZUC_ENC, AES_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, UPLINK, ZUC_ENC, ZUC_AUTH));\n+\tTEST_PDCP_COUNT(cplane_decap(12, 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 ad1e7c70a..21a6e8a48 100644\n--- a/app/test/test_cryptodev_security_pdcp_test_func.h\n+++ b/app/test/test_cryptodev_security_pdcp_test_func.h\n@@ -30,7 +30,9 @@ enum auth_alg_off {\n };\n \n int test_pdcp_proto_cplane_encap(int i);\n+int test_pdcp_proto_cplane_decap(int i);\n \n int test_PDCP_PROTO_cplane_encap_all(void);\n+int test_PDCP_PROTO_cplane_decap_all(void);\n \n #endif /* SECURITY_PDCP_TEST_FUNC_H_ */\n",
    "prefixes": [
        "v2",
        "2/7"
    ]
}