get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76353,
    "url": "http://patchwork.dpdk.org/api/patches/76353/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200903064206.16208-1-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": "<20200903064206.16208-1-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200903064206.16208-1-ktejasree@marvell.com",
    "date": "2020-09-03T06:42:06",
    "name": "security: allow application to specify UDP ports to PMD",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "d74eecf49511e6b83ebbd7532c880264733a018f",
    "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/20200903064206.16208-1-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 11916,
            "url": "http://patchwork.dpdk.org/api/series/11916/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=11916",
            "date": "2020-09-03T06:42:06",
            "name": "security: allow application to specify UDP ports to PMD",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/11916/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/76353/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/76353/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 A86EEA04D7;\n\tThu,  3 Sep 2020 07:48:39 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3B2501C0B2;\n\tThu,  3 Sep 2020 07:48:39 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 465DF1C0AE\n for <dev@dpdk.org>; Thu,  3 Sep 2020 07:48:38 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 0835kHKZ031330; Wed, 2 Sep 2020 22:48:37 -0700",
            "from sc-exch01.marvell.com ([199.233.58.181])\n by mx0a-0016f401.pphosted.com with ESMTP id 337mcqjru5-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 02 Sep 2020 22:48:37 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Wed, 2 Sep 2020 22:48:36 -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.2 via Frontend\n Transport; Wed, 2 Sep 2020 22:48:36 -0700",
            "from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 19E593F703F;\n Wed,  2 Sep 2020 22:48:33 -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 : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=GXTZ9Qu6c5Oh++Pz/tcPeRJ6oRm0kUf64PjOsHgMSHc=;\n b=M0DUVoJGni2qViG2TVRDpVkZeCB9421bk/I+2EIzHKnO72gH9z/bBKHVddcjB0IkMzNv\n xOZa7jyZySjEzeFftU+e07m5/gfqwYRzgAeEbnR36ek3UKmdX80iKjZD7P35XFaeOMKt\n NoTWKciSVBB5sfMIpevPQBEP3/cDebFcc3ZJbaARX+Ehb4khpq0UrSX4ku45D9KbdV8p\n QrEAIJzkdcUpUTGk6a1z6q58+X7MHsbf3fTQQfEJdVJdjASHEpPQm+1bhv68h/uMjY4R\n 3QeFTKyHXkhKIg8cH6kfrFfNW0JlKjRudeHIXIgoD+J5ab7I5OADR6qppOONQo+QrenA hw==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <akhil.goyal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Narayana Prasad\n <pathreya@marvell.com>, Anoob Joseph <anoobj@marvell.com>, <dev@dpdk.org>",
        "Date": "Thu, 3 Sep 2020 12:12:06 +0530",
        "Message-ID": "<20200903064206.16208-1-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687\n definitions=2020-09-03_03:2020-09-02,\n 2020-09-03 signatures=0",
        "Subject": "[dpdk-dev] [PATCH] security: allow application to specify UDP ports\n\tto PMD",
        "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": "Add UDP source and destination ports in ipsec_xform to allow application\nto specify ports to be used for IPsec UDP encapsulation as they are\ndynamically changed by NAT in between. Also adding an extra flag to\nindicate whether PMD needs to perform encapsulation header verification\nin case of inbound. In case of inline IPsec implementation, verification\nof outer IP headers and UDP encapsulation headers need to be handled\nin the PMD. For lookaside IPsec, application can optionally offload\nthis to the PMD.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n lib/librte_security/rte_security.h | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)",
    "diff": "diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h\nindex 16839e539..670bdeb6b 100644\n--- a/lib/librte_security/rte_security.h\n+++ b/lib/librte_security/rte_security.h\n@@ -130,6 +130,13 @@ struct rte_security_ipsec_sa_options {\n \t */\n \tuint32_t udp_encap : 1;\n \n+\t/** Verify tunnel header and UDP encapsulation ports in inbound\n+\t *\n+\t * * 1: Match outer header source, destination addresses and UDP ports\n+\t * * 0: Do not match outer IP addresses and UDP ports\n+\t */\n+\tuint32_t encap_hdr_verify : 1;\n+\n \t/** Copy DSCP bits\n \t *\n \t * * 1: Copy IPv4 or IPv6 DSCP bits from inner IP header to\n@@ -190,6 +197,16 @@ enum rte_security_ipsec_sa_direction {\n \t/**< Verify digest and decrypt */\n };\n \n+/**\n+ * UDP encapsulation ports\n+ */\n+struct rte_security_ipsec_udp_encapsulation {\n+\tuint16_t src_port;\n+\t/**< UDP source port */\n+\tuint16_t dst_port;\n+\t/**< UDP destination port */\n+};\n+\n /**\n  * IPsec security association configuration data.\n  *\n@@ -216,6 +233,8 @@ struct rte_security_ipsec_xform {\n \t/**< Anti replay window size to enable sequence replay attack handling.\n \t * replay checking is disabled if the window size is 0.\n \t */\n+\tstruct rte_security_ipsec_udp_encapsulation udp_encap;\n+\t/**< UDP encapsulation ports */\n };\n \n /**\n",
    "prefixes": []
}