get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104914,
    "url": "http://patchwork.dpdk.org/api/patches/104914/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1638788880-650-7-git-send-email-anoobj@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1638788880-650-7-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1638788880-650-7-git-send-email-anoobj@marvell.com",
    "date": "2021-12-06T11:07:53",
    "name": "[v2,06/13] test/crypto: add IPsec fragmented packet known vectors",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ed276cbfc3bca0e450c1103eee2ffeacd8f5345d",
    "submitter": {
        "id": 1205,
        "url": "http://patchwork.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1638788880-650-7-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 20868,
            "url": "http://patchwork.dpdk.org/api/series/20868/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20868",
            "date": "2021-12-06T11:07:47",
            "name": "Add new cases to lookaside IPsec tests",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/20868/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104914/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/104914/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0B508A034F;\n\tMon,  6 Dec 2021 12:08:56 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 79E0141160;\n\tMon,  6 Dec 2021 12:08:48 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 8D6CA40A4B\n for <dev@dpdk.org>; Mon,  6 Dec 2021 12:08:47 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1B62JwkR001881;\n Mon, 6 Dec 2021 03:08:47 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3cs9muhfve-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 06 Dec 2021 03:08:46 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 6 Dec 2021 03:08:44 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Mon, 6 Dec 2021 03:08:44 -0800",
            "from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218])\n by maili.marvell.com (Postfix) with ESMTP id 818EC3F704A;\n Mon,  6 Dec 2021 03:08:40 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=gzGY0Z5OoSzscD7TMT5x1UczE8OTJJcnv0cKy7oeypc=;\n b=jtSfGeXBJknvMW+Le8KzBQswlCztDourKchYJMVoFY1K1E+T7+tNCYDh+iKJhg9qYNBt\n OAy7XTCGF/lh2v5QKWWZNW1I6GWyqe/fhXHaCrNxAWV9ZUK/f0rgsFUQVCAiCOwDgrTn\n B1Bm36YUfVAJjI7rvyp5pjttoSpBx/l2a2M00ViRhh8tBOYRE+lq6srwO7BgfXvBrpx4\n SA4MBbBnaqdPQI28HXgtHzqUdvpMhvW0DJ0FWgzr9YLxenr8Wnl4DpXERA4Yjaknx1WN\n ERMXFN2bIYXtqopNz0KC/MVShM5yZ8OoIZAZ/YJcFmqy1anvYomcaVrfEAf3OlyzxjER EA==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Declan Doherty\n <declan.doherty@intel.com>, Fan Zhang <roy.fan.zhang@intel.com>, \"Pablo de\n Lara\" <pablo.de.lara.guarch@intel.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n Archana Muniganti <marchana@marvell.com>, Hemant Agrawal\n <hemant.agrawal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Ciara Power <ciara.power@intel.com>,\n Gagandeep Singh <g.singh@nxp.com>, <dev@dpdk.org>",
        "Subject": "[PATCH v2 06/13] test/crypto: add IPsec fragmented packet known\n vectors",
        "Date": "Mon, 6 Dec 2021 16:37:53 +0530",
        "Message-ID": "<1638788880-650-7-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1638788880-650-1-git-send-email-anoobj@marvell.com>",
        "References": "<1638777528-553-1-git-send-email-anoobj@marvell.com>\n <1638788880-650-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "b697H23tyCbRfGXLfSuQ5nHuqeWH-dh1",
        "X-Proofpoint-ORIG-GUID": "b697H23tyCbRfGXLfSuQ5nHuqeWH-dh1",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2021-12-06_04,2021-12-06_01,2021-12-02_01",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "From: Tejasree Kondoj <ktejasree@marvell.com>\n\nAdd fragmented plain packet known vector test case in\nIPsec outbound.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n app/test/test_cryptodev.c                          |  22 +++++\n app/test/test_cryptodev_security_ipsec.c           |  10 ++\n app/test/test_cryptodev_security_ipsec.h           |   1 +\n .../test_cryptodev_security_ipsec_test_vectors.h   | 104 +++++++++++++++++++++\n doc/guides/rel_notes/release_22_03.rst             |   1 +\n 5 files changed, 138 insertions(+)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 0f74984..e2bbabf 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -9383,6 +9383,23 @@ test_ipsec_proto_known_vec_inb(const void *test_data)\n }\n \n static int\n+test_ipsec_proto_known_vec_fragmented(const void *test_data)\n+{\n+\tstruct ipsec_test_data td_outb;\n+\tstruct ipsec_test_flags flags;\n+\n+\tmemset(&flags, 0, sizeof(flags));\n+\tflags.fragment = true;\n+\n+\tmemcpy(&td_outb, test_data, sizeof(td_outb));\n+\n+\t/* Disable IV gen to be able to test with known vectors */\n+\ttd_outb.ipsec_xform.options.iv_gen_disable = 1;\n+\n+\treturn test_ipsec_proto_process(&td_outb, NULL, 1, false, &flags);\n+}\n+\n+static int\n test_ipsec_proto_all(const struct ipsec_test_flags *flags)\n {\n \tstruct ipsec_test_data td_outb[IPSEC_TEST_PACKETS_MAX];\n@@ -14514,6 +14531,11 @@ static struct unit_test_suite ipsec_proto_testsuite  = {\n \t\t\ttest_ipsec_proto_known_vec,\n \t\t\t&pkt_aes_128_cbc_hmac_sha256_v6),\n \t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Outbound fragmented packet\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_known_vec_fragmented,\n+\t\t\t&pkt_aes_128_gcm_frag),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n \t\t\t\"Inbound known vector (ESP tunnel mode IPv4 AES-GCM 128)\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_known_vec_inb, &pkt_aes_128_gcm),\ndiff --git a/app/test/test_cryptodev_security_ipsec.c b/app/test/test_cryptodev_security_ipsec.c\nindex 12031d3..ccce63f 100644\n--- a/app/test/test_cryptodev_security_ipsec.c\n+++ b/app/test/test_cryptodev_security_ipsec.c\n@@ -659,6 +659,16 @@ test_ipsec_td_verify(struct rte_mbuf *m, const struct ipsec_test_data *td,\n \t\treturn TEST_FAILED;\n \t}\n \n+\tif ((td->ipsec_xform.direction == RTE_SECURITY_IPSEC_SA_DIR_EGRESS) &&\n+\t\t\t\tflags->fragment) {\n+\t\tconst struct rte_ipv4_hdr *iph4;\n+\t\tiph4 = (const struct rte_ipv4_hdr *)output_text;\n+\t\tif (iph4->fragment_offset) {\n+\t\t\tprintf(\"Output packet is fragmented\");\n+\t\t\treturn TEST_FAILED;\n+\t\t}\n+\t}\n+\n \tskip = test_ipsec_tunnel_hdr_len_get(td);\n \n \tlen -= skip;\ndiff --git a/app/test/test_cryptodev_security_ipsec.h b/app/test/test_cryptodev_security_ipsec.h\nindex d74eee7..884a795 100644\n--- a/app/test/test_cryptodev_security_ipsec.h\n+++ b/app/test/test_cryptodev_security_ipsec.h\n@@ -63,6 +63,7 @@ struct ipsec_test_flags {\n \tbool l4_csum;\n \tbool ipv6;\n \tbool tunnel_ipv6;\n+\tbool fragment;\n };\n \n struct crypto_param {\ndiff --git a/app/test/test_cryptodev_security_ipsec_test_vectors.h b/app/test/test_cryptodev_security_ipsec_test_vectors.h\nindex b8661f7..b6d48ad 100644\n--- a/app/test/test_cryptodev_security_ipsec_test_vectors.h\n+++ b/app/test/test_cryptodev_security_ipsec_test_vectors.h\n@@ -958,4 +958,108 @@ struct ipsec_test_data pkt_aes_128_cbc_hmac_sha256_v6 = {\n \t},\n };\n \n+struct ipsec_test_data pkt_aes_128_gcm_frag = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0xbe, 0xef,\n+\t\t\t0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0xbe, 0xef,\n+\t\t},\n+\t},\n+\t.input_text = {\n+\t\t.data = {\n+\t\t\t0x45, 0x00, 0x00, 0x6e, 0x00, 0x01, 0x00, 0x17,\n+\t\t\t0x40, 0x06, 0xed, 0x48, 0xc6, 0x12, 0x00, 0x00,\n+\t\t\t0xc6, 0x12, 0x01, 0x05, 0x00, 0x14, 0x00, 0x50,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x50, 0x00, 0x00, 0x00, 0x55, 0x05, 0x00, 0x00,\n+\t\t\t0x00, 0x01, 0x02, 0x03, 0xf2, 0xf6, 0xe9, 0x21,\n+\t\t\t0xf9, 0xf2, 0xf6, 0xe9, 0x21, 0xf9, 0xf2, 0xf6,\n+\t\t\t0xe9, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t},\n+\t\t.len = 110,\n+\t},\n+\t.output_text = {\n+\t\t.data = {\n+\t\t\t0x45, 0x00, 0x00, 0xa4, 0x00, 0x01, 0x00, 0x00,\n+\t\t\t0x40, 0x32, 0xf6, 0x0c, 0xc0, 0xa8, 0x01, 0x70,\n+\t\t\t0xc0, 0xa8, 0x01, 0x5a, 0x00, 0x00, 0x00, 0x34,\n+\t\t\t0x00, 0x00, 0x00, 0x01, 0x45, 0xad, 0xfe, 0x23,\n+\t\t\t0x78, 0x56, 0x12, 0x00, 0x49, 0x26, 0xac, 0x4e,\n+\t\t\t0x8d, 0xf3, 0x74, 0x26, 0x18, 0x3f, 0x65, 0x94,\n+\t\t\t0x73, 0x2e, 0xe4, 0xcf, 0x84, 0x6d, 0x03, 0x8a,\n+\t\t\t0x4c, 0xdd, 0x2d, 0xef, 0xcd, 0x9f, 0x84, 0x76,\n+\t\t\t0x93, 0xe1, 0xee, 0x21, 0x92, 0x8b, 0xf7, 0x7a,\n+\t\t\t0xb1, 0x6a, 0x7f, 0xd6, 0x10, 0x66, 0xdd, 0xa1,\n+\t\t\t0x8b, 0x17, 0x56, 0x99, 0x9a, 0x40, 0xd0, 0x6b,\n+\t\t\t0x2d, 0xe0, 0x55, 0x40, 0x2f, 0xb8, 0x38, 0xe3,\n+\t\t\t0x08, 0x46, 0xe2, 0x69, 0xc9, 0xa1, 0x85, 0x9d,\n+\t\t\t0x7b, 0xec, 0x33, 0x2a, 0x2d, 0x1d, 0x1f, 0x1a,\n+\t\t\t0x9e, 0xf0, 0x1e, 0xc3, 0x33, 0x64, 0x35, 0x82,\n+\t\t\t0xbb, 0xb5, 0x7a, 0x91, 0x2e, 0x8d, 0xd5, 0x5b,\n+\t\t\t0x3a, 0xbe, 0x95, 0x94, 0xba, 0x40, 0x73, 0x4e,\n+\t\t\t0xa4, 0x15, 0xe4, 0x4a, 0xf9, 0x14, 0x2c, 0x4f,\n+\t\t\t0x63, 0x2e, 0x23, 0x6e, 0xeb, 0x06, 0xe7, 0x52,\n+\t\t\t0xe1, 0xc7, 0x91, 0x7f, 0x19, 0xc0, 0x4a, 0xd2,\n+\t\t\t0xd5, 0x3e, 0x84, 0xa8,\n+\t\t},\n+\t\t.len = 164,\n+\t},\n+\t.salt = {\n+\t\t.data = {\n+\t\t\t0xde, 0xad, 0xbe, 0xef,\n+\t\t},\n+\t\t.len = 4,\n+\t},\n+\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0x45, 0xad, 0xfe, 0x23, 0x78, 0x56, 0x12, 0x00,\n+\t\t},\n+\t},\n+\n+\t.ipsec_xform = {\n+\t\t.spi = 52,\n+\t\t.options.esn = 0,\n+\t\t.options.udp_encap = 0,\n+\t\t.options.copy_dscp = 0,\n+\t\t.options.copy_flabel = 0,\n+\t\t.options.copy_df = 0,\n+\t\t.options.dec_ttl = 0,\n+\t\t.options.ecn = 0,\n+\t\t.options.stats = 0,\n+\t\t.options.tunnel_hdr_verify = 0,\n+\t\t.options.ip_csum_enable = 0,\n+\t\t.options.l4_csum_enable = 0,\n+\t\t.direction = RTE_SECURITY_IPSEC_SA_DIR_EGRESS,\n+\t\t.proto = RTE_SECURITY_IPSEC_SA_PROTO_ESP,\n+\t\t.mode = RTE_SECURITY_IPSEC_SA_MODE_TUNNEL,\n+\t\t.tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4,\n+\t\t.replay_win_sz = 0,\n+\t},\n+\n+\t.aead = true,\n+\n+\t.xform = {\n+\t\t.aead = {\n+\t\t\t.next = NULL,\n+\t\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t\t.aead = {\n+\t\t\t\t.op = RTE_CRYPTO_AEAD_OP_ENCRYPT,\n+\t\t\t\t.algo = RTE_CRYPTO_AEAD_AES_GCM,\n+\t\t\t\t.key.length = 16,\n+\t\t\t\t.iv.length = 12,\n+\t\t\t\t.iv.offset = IV_OFFSET,\n+\t\t\t\t.digest_length = 16,\n+\t\t\t\t.aad_length = 12,\n+\t\t\t},\n+\t\t},\n+\t},\n+};\n+\n #endif /* TEST_CRYPTODEV_SECURITY_IPSEC_TEST_VECTORS_H_ */\ndiff --git a/doc/guides/rel_notes/release_22_03.rst b/doc/guides/rel_notes/release_22_03.rst\nindex 65e348f..0562547 100644\n--- a/doc/guides/rel_notes/release_22_03.rst\n+++ b/doc/guides/rel_notes/release_22_03.rst\n@@ -67,6 +67,7 @@ New Features\n     * IPv4 in IPv4\n     * IPv4 in IPv6\n     * IPv6 in IPv4\n+  * Added tunnel mode fragment packet tests.\n \n \n Removed Items\n",
    "prefixes": [
        "v2",
        "06/13"
    ]
}