get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 99955,
    "url": "http://patchwork.dpdk.org/api/patches/99955/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210929032514.9416-4-ktejasree@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": "<20210929032514.9416-4-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210929032514.9416-4-ktejasree@marvell.com",
    "date": "2021-09-29T03:25:14",
    "name": "[v2,3/3] test/crypto: add UDP encapsulation ports verification tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "62703cdbb5c47c48606114a2717e963714cef832",
    "submitter": {
        "id": 1789,
        "url": "http://patchwork.dpdk.org/api/people/1789/?format=api",
        "name": "Tejasree Kondoj",
        "email": "ktejasree@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/20210929032514.9416-4-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 19243,
            "url": "http://patchwork.dpdk.org/api/series/19243/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=19243",
            "date": "2021-09-29T03:25:11",
            "name": "add option to configure UDP ports verification",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/19243/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/99955/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/99955/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 C9A20A0547;\n\tWed, 29 Sep 2021 04:32:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AA0A9410E5;\n\tWed, 29 Sep 2021 04:31:56 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 5C7D0410F2\n for <dev@dpdk.org>; Wed, 29 Sep 2021 04:31:55 +0200 (CEST)",
            "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 SMTP id\n 18T2ScFk017510;\n Tue, 28 Sep 2021 19:31:54 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 3bcfd480ck-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 28 Sep 2021 19:31:54 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 28 Sep 2021 19:31:52 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Tue, 28 Sep 2021 19:31:52 -0700",
            "from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id ECEDF3F707E;\n Tue, 28 Sep 2021 19:31:48 -0700 (PDT)"
        ],
        "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=ZmwXdL06EcdwqVai0lqWauOquwAvnvHMbeaa+yO+UjY=;\n b=QPg8ZRCdQ27nv6ecvpZY5U3SJx6lqwtt0tl/sm2qCj7dGF5a1a+aBlOczZRFWzq2CCtP\n 6wcSsiXpnH8UgBerYoghl7n93mUuzDWoyihhPEi/2hGZsJ08ZPSGLlPHHmK8PUVDpytc\n IkECZi+0o6dHh0EYgsEivqBjbOmKBGFBTOUJi42WnqTCL+fO9ZRb618ddZ1Z/DmemTqL\n 8XQEYz4fB1T+AmiQsux4KjHYVMcIX7Wp8KzcAWSPVlLOC1q0JrFhUGz1KdpHabZ0poYj\n 0p0HR7lnEnhj+w5GIkoKc4PvemVtu534CeJ8KwNH+2UWoIs6kX/+54ULrR1mzbYGCjpv fQ==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Declan Doherty <declan.doherty@intel.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>,\n Anoob Joseph <anoobj@marvell.com>,\n Ankur Dwivedi <adwivedi@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n Konstantin Ananyev <konstantin.ananyev@intel.com>,\n Ciara Power <ciara.power@intel.com>,\n Hemant Agrawal <hemant.agrawal@nxp.com>,\n Gagandeep Singh <g.singh@nxp.com>, Fan Zhang <roy.fan.zhang@intel.com>,\n Archana Muniganti <marchana@marvell.com>, <dev@dpdk.org>",
        "Date": "Wed, 29 Sep 2021 08:55:14 +0530",
        "Message-ID": "<20210929032514.9416-4-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20210929032514.9416-1-ktejasree@marvell.com>",
        "References": "<20210929032514.9416-1-ktejasree@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "rUINfsRtki_eC8qPW037jIjejbJZItHa",
        "X-Proofpoint-ORIG-GUID": "rUINfsRtki_eC8qPW037jIjejbJZItHa",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475\n definitions=2021-09-28_11,2021-09-28_01,2020-04-07_01",
        "Subject": "[dpdk-dev] [PATCH v2 3/3] test/crypto: add UDP encapsulation ports\n verification tests",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Adding UDP encapsulation ports verification test cases.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n app/test/test_cryptodev.c                | 17 +++++++++++++++++\n app/test/test_cryptodev_security_ipsec.c | 11 +++++++++++\n app/test/test_cryptodev_security_ipsec.h |  1 +\n 3 files changed, 29 insertions(+)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 665d19c0a4..5f0d023451 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -9262,6 +9262,19 @@ test_ipsec_proto_tunnel_dst_addr_verify(const void *data __rte_unused)\n \treturn test_ipsec_proto_all(&flags);\n }\n \n+static int\n+test_ipsec_proto_udp_ports_verify(const void *data __rte_unused)\n+{\n+\tstruct ipsec_test_flags flags;\n+\n+\tmemset(&flags, 0, sizeof(flags));\n+\n+\tflags.udp_encap = true;\n+\tflags.udp_ports_verify = true;\n+\n+\treturn test_ipsec_proto_all(&flags);\n+}\n+\n static int\n test_PDCP_PROTO_all(void)\n {\n@@ -14194,6 +14207,10 @@ static struct unit_test_suite ipsec_proto_testsuite  = {\n \t\t\t\"UDP encapsulation\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_udp_encap),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"UDP encapsulation ports verification test\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_udp_ports_verify),\n \t\tTEST_CASE_NAMED_ST(\n \t\t\t\"SA expiry packets soft\",\n \t\t\tut_setup_security, ut_teardown,\ndiff --git a/app/test/test_cryptodev_security_ipsec.c b/app/test/test_cryptodev_security_ipsec.c\nindex f040630655..764e77bbff 100644\n--- a/app/test/test_cryptodev_security_ipsec.c\n+++ b/app/test/test_cryptodev_security_ipsec.c\n@@ -36,6 +36,14 @@ test_ipsec_sec_caps_verify(struct rte_security_ipsec_xform *ipsec_xform,\n \t\treturn -ENOTSUP;\n \t}\n \n+\tif (ipsec_xform->options.udp_ports_verify == 1 &&\n+\t    sec_cap->ipsec.options.udp_ports_verify == 0) {\n+\t\tif (!silent)\n+\t\t\tRTE_LOG(INFO, USER1, \"UDP encapsulation ports \"\n+\t\t\t\t\"verification is not supported\\n\");\n+\t\treturn -ENOTSUP;\n+\t}\n+\n \tif (ipsec_xform->options.copy_dscp == 1 &&\n \t    sec_cap->ipsec.options.copy_dscp == 0) {\n \t\tif (!silent)\n@@ -216,6 +224,9 @@ test_ipsec_td_update(struct ipsec_test_data td_inb[],\n \t\tif (flags->udp_encap)\n \t\t\ttd_inb[i].ipsec_xform.options.udp_encap = 1;\n \n+\t\tif (flags->udp_ports_verify)\n+\t\t\ttd_inb[i].ipsec_xform.options.udp_ports_verify = 1;\n+\n \t\ttd_inb[i].ipsec_xform.options.tunnel_hdr_verify =\n \t\t\tflags->tunnel_hdr_verify;\n \ndiff --git a/app/test/test_cryptodev_security_ipsec.h b/app/test/test_cryptodev_security_ipsec.h\nindex a65cb54eae..0416005520 100644\n--- a/app/test/test_cryptodev_security_ipsec.h\n+++ b/app/test/test_cryptodev_security_ipsec.h\n@@ -55,6 +55,7 @@ struct ipsec_test_flags {\n \tbool iv_gen;\n \tuint32_t tunnel_hdr_verify;\n \tbool udp_encap;\n+\tbool udp_ports_verify;\n };\n \n struct crypto_param {\n",
    "prefixes": [
        "v2",
        "3/3"
    ]
}