get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 95729,
    "url": "http://patches.dpdk.org/api/patches/95729/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210713074219.6804-2-schalla@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20210713074219.6804-2-schalla@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210713074219.6804-2-schalla@marvell.com",
    "date": "2021-07-13T07:42:18",
    "name": "[2/2] examples/ipsec-secgw: add UDP encapsulation for inline protocol",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "949a6a0c83d9618221b7f4e0821bf5b7d6e98596",
    "submitter": {
        "id": 2283,
        "url": "http://patches.dpdk.org/api/people/2283/?format=api",
        "name": "Srujana Challa",
        "email": "schalla@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210713074219.6804-2-schalla@marvell.com/mbox/",
    "series": [
        {
            "id": 17788,
            "url": "http://patches.dpdk.org/api/series/17788/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17788",
            "date": "2021-07-13T07:42:17",
            "name": "[1/2] common/cnxk: add support for UDP encapsulation",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/17788/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/95729/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/95729/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 D60BEA0C48;\n\tTue, 13 Jul 2021 09:42:41 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0A7194069E;\n\tTue, 13 Jul 2021 09:42:40 +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 76F1C411D8\n for <dev@dpdk.org>; Tue, 13 Jul 2021 09:42:38 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 16D7epdY021587; Tue, 13 Jul 2021 00:42:37 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 39re6vndse-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 13 Jul 2021 00:42:37 -0700",
            "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 Tue, 13 Jul 2021 00:42:35 -0700",
            "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.18 via Frontend\n Transport; Tue, 13 Jul 2021 00:42:35 -0700",
            "from hyd1schalla-dt.caveonetworks.com.com (unknown [10.29.8.39])\n by maili.marvell.com (Postfix) with ESMTP id 4F52A3F70AB;\n Tue, 13 Jul 2021 00:42: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 : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=X8HzYbheZCNuaPwJJnPbTLRFKgpUxFJHRQF+/6pGKNw=;\n b=SD/dvXHfrGm8oHzJDDvfvsy/L6wdgwch/IzA9ci1z+zkuJ5odvcfsMWh0NDx67fxEi4n\n JxSfsbM4tbTuxEqoBShSjFHZbP/lJBIdfjC4DqOo8kf5R3ln8i8dJMfkp6ptqqoNLAOK\n nCjurR9kfQBWWI/gjTD+6RQ56z3dBEBLmtnOesEL0f9xexl6vbsvQX9hVMzBIfPbf00w\n meiX68Xu3LM7vfebjW7clY3gCuY1n6j8aZ0IVzeSWsaKpDu0EukeXxAWMtYWiycSopwu\n D25KPJdSprWtldDF9E2D71K0nCxil29vkcHcB2UTTQxw5auluGZ7eWK6P7jIVYX00gSE +A==",
        "From": "Srujana Challa <schalla@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Konstantin Ananyev <konstantin.ananyev@intel.com>",
        "CC": "Srujana Challa <schalla@marvell.com>, Anoob Joseph <anoobj@marvell.com>,\n Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>, Tejasree Kondoj\n <ktejasree@marvell.com>, <dev@dpdk.org>",
        "Date": "Tue, 13 Jul 2021 13:12:18 +0530",
        "Message-ID": "<20210713074219.6804-2-schalla@marvell.com>",
        "X-Mailer": "git-send-email 2.29.0",
        "In-Reply-To": "<20210713074219.6804-1-schalla@marvell.com>",
        "References": "<20210713074219.6804-1-schalla@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "82XJyLgHIzzaLhLZew0z6iLMlcu2odbZ",
        "X-Proofpoint-ORIG-GUID": "82XJyLgHIzzaLhLZew0z6iLMlcu2odbZ",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790\n definitions=2021-07-13_03:2021-07-13,\n 2021-07-13 signatures=0",
        "Subject": "[dpdk-dev] [PATCH 2/2] examples/ipsec-secgw: add UDP encapsulation\n for inline protocol",
        "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": "Adds support to allow udp-encap option for\nRTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL mode also.\n\nSigned-off-by: Srujana Challa <schalla@marvell.com>\n---\n examples/ipsec-secgw/sa.c | 31 ++++++++++++++++++-------------\n 1 file changed, 18 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c\nindex 7bb9ef36c2..17a28556c9 100644\n--- a/examples/ipsec-secgw/sa.c\n+++ b/examples/ipsec-secgw/sa.c\n@@ -759,20 +759,25 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens,\n \t\t\tcontinue;\n \t\t}\n \t\tif (strcmp(tokens[ti], \"udp-encap\") == 0) {\n-\t\t\tAPP_CHECK(ips->type ==\n-\t\t\t\tRTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL,\n-\t\t\t\tstatus, \"UDP encapsulation is allowed if the \"\n-\t\t\t\t\"session is of type lookaside-protocol-offload \"\n-\t\t\t\t\"only.\");\n-\t\t\tif (status->status < 0)\n-\t\t\t\treturn;\n-\t\t\tAPP_CHECK_PRESENCE(udp_encap_p, tokens[ti], status);\n-\t\t\tif (status->status < 0)\n-\t\t\t\treturn;\n+\t\t\tswitch (ips->type) {\n+\t\t\tcase RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL:\n+\t\t\tcase RTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL:\n+\t\t\t\tAPP_CHECK_PRESENCE(udp_encap_p, tokens[ti],\n+\t\t\t\t\t\t   status);\n+\t\t\t\tif (status->status < 0)\n+\t\t\t\t\treturn;\n \n-\t\t\trule->udp_encap = 1;\n-\t\t\tapp_sa_prm.udp_encap = 1;\n-\t\t\tudp_encap_p = 1;\n+\t\t\t\trule->udp_encap = 1;\n+\t\t\t\tapp_sa_prm.udp_encap = 1;\n+\t\t\t\tudp_encap_p = 1;\n+\t\t\t\tbreak;\n+\t\t\tdefault:\n+\t\t\t\tAPP_CHECK(0, status,\n+\t\t\t\t\t\"UDP encapsulation not supported for \"\n+\t\t\t\t\t\"security session type %d\",\n+\t\t\t\t\tips->type);\n+\t\t\t\treturn;\n+\t\t\t}\n \t\t\tcontinue;\n \t\t}\n \n",
    "prefixes": [
        "2/2"
    ]
}