get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87336,
    "url": "https://patches.dpdk.org/api/patches/87336/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210126130616.3840205-1-thomas@monjalon.net/",
    "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": "<20210126130616.3840205-1-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210126130616.3840205-1-thomas@monjalon.net",
    "date": "2021-01-26T13:06:16",
    "name": "[v3,1/1] app/procinfo: fix security context info",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "081b85062c3dd548b8e289540d6da46b9807daf0",
    "submitter": {
        "id": 685,
        "url": "https://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210126130616.3840205-1-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 14952,
            "url": "https://patches.dpdk.org/api/series/14952/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14952",
            "date": "2021-01-26T13:06:16",
            "name": "[v3,1/1] app/procinfo: fix security context info",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/14952/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87336/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/87336/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 A0A75A052A;\n\tTue, 26 Jan 2021 14:06:25 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1FA441414B1;\n\tTue, 26 Jan 2021 14:06:25 +0100 (CET)",
            "from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com\n [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id 0959F1414A6;\n Tue, 26 Jan 2021 14:06:23 +0100 (CET)",
            "from compute2.internal (compute2.nyi.internal [10.202.2.42])\n by mailout.nyi.internal (Postfix) with ESMTP id 5B6165C00BE;\n Tue, 26 Jan 2021 08:06:21 -0500 (EST)",
            "from mailfrontend1 ([10.202.2.162])\n by compute2.internal (MEProxy); Tue, 26 Jan 2021 08:06:21 -0500",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 94EBB240064;\n Tue, 26 Jan 2021 08:06:19 -0500 (EST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm3; bh=ya0Yit6Mg1+t9\n 5FMQ7lEg/7BqT8le0T09jO6e/O5LlE=; b=Cq2Am+2XOaTo+WM+0q8uMf/cWC/xI\n /Iya0PAZkIZvZH8Q7akj+cZxU5VqDADHz0UgP/x/JTgw5dEm/S+UphhRZlpPeYb3\n QJjcy3bXrw1w7V4Up4iTkO8s44b7EuRVPwSO3HH6XLASFDDGKK4ien5YscommlWn\n v9PSV42jGAmazSaLFHLpfclaZW0Y8ZArPs3rmdTkghdg1hzFdb6N05c0cynCl9bq\n urKuXCaLA/usuxX6VvbLD97wLUMFt9fvEhqnrMYJcvwtQS3vk1s15xs36dfwLC6i\n /gFoiyOV7c1xG4m/eRN3QQ5Ox0/oxuuaV56Lu/UrXsC9+2l5P7smBikXw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm1; bh=ya0Yit6Mg1+t95FMQ7lEg/7BqT8le0T09jO6e/O5LlE=; b=FaWLCOSg\n iWQPNsx+RxQZcBGvfB/AZ9pI0gX7z3AW3Ord+5S+/rjyNP4UjUTXBIPkTtOdraMl\n z2Dx+zbVT25Ea9oLWT4K5kg+1hDIFgP5m3Lk0yT+cQtC4S8gR39PZJDP7/pRFYAK\n EpNF/0iRsysSbu5ECY6xAVABYoTmUy1IsGYQwNWvU9t8/zIv53CunmBuxc3V9E0v\n uFKrfzdtWj6pBf4cA2+afmf8plF24FCmo1EHu4PIHXQuic66s0oDVtfNLqAz3Tk7\n u+rNJMQIpEJR+AXxsD1asNglS1DCqKTijhemYUgZNkUABiEZMUSkN49vIiTL/Sat\n 9ZWxfaZhxgSUDQ=="
        ],
        "X-ME-Sender": "<xms:zBMQYNcJxId43KH0j6WYYh0U4JQFKbG9Wl9cTbRgVwoW9fw04VfOLQ>\n <xme:zBMQYLN2ebv2WpwBEm-y-g0sZxK_vy7WzistnJydFZ4edzp9bZhHN971jBrVgnUls\n sHkqDhFFjVgrqmoHA>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduledrvdehgdegkecutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs\n ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf\n frrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedtgfeu\n tdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih\n iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho\n nhdrnhgvth",
        "X-ME-Proxy": "<xmx:zBMQYGi0wJEBrrOmnW2SzzLMtnfpVeySVBLtfaYZzOGDQyVfX9rkxw>\n <xmx:zBMQYG-s5fUztpvrtst0oBN9T-YfO3X-ucNd5PQWXH6JnyUCol2sKw>\n <xmx:zBMQYJvpTYC0Gl3iV6LD7F-f-zkZ0qILUVLx3PTahqmJI41i1y-vuQ>\n <xmx:zRMQYBK0PajxJ3kGJaJ7220-Kb4i0kqXtxFTcOhHBuAUwIb_8niWcQ>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "Hemant Agrawal <hemant.agrawal@nxp.com>, stable@dpdk.org,\n Maryam Tahhan <maryam.tahhan@intel.com>,\n Reshma Pattan <reshma.pattan@intel.com>,\n Stephen Hemminger <stephen@networkplumber.org>",
        "Date": "Tue, 26 Jan 2021 14:06:16 +0100",
        "Message-Id": "<20210126130616.3840205-1-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.30.0",
        "In-Reply-To": "<20210120051711.19876-1-hemant.agrawal@nxp.com>",
        "References": "<20210120051711.19876-1-hemant.agrawal@nxp.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 1/1] app/procinfo: fix security context info",
        "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": "From: Hemant Agrawal <hemant.agrawal@nxp.com>\n\nWe need to differentiate between crypto and ethernet security\ncontext as they belong to different devices.\n\nFixes: d82d6ac64338 (\"app/procinfo: add crypto security context info\")\nCc: stable@dpdk.org\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\nv3: include stdbool.h and use true/false instead of 1/0\n---\n app/proc-info/main.c | 14 ++++++++++----\n 1 file changed, 10 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex 44249dd2cb..b9587f7ded 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -5,6 +5,7 @@\n #include <stdio.h>\n #include <string.h>\n #include <stdint.h>\n+#include <stdbool.h>\n #include <errno.h>\n #include <stdarg.h>\n #include <inttypes.h>\n@@ -645,11 +646,16 @@ metrics_display(int port_id)\n }\n \n static void\n-show_security_context(uint16_t portid)\n+show_security_context(uint16_t portid, bool inline_offload)\n {\n-\tvoid *p_ctx = rte_eth_dev_get_sec_ctx(portid);\n+\tvoid *p_ctx;\n \tconst struct rte_security_capability *s_cap;\n \n+\tif (inline_offload)\n+\t\tp_ctx = rte_eth_dev_get_sec_ctx(portid);\n+\telse\n+\t\tp_ctx = rte_cryptodev_get_sec_ctx(portid);\n+\n \tif (p_ctx == NULL)\n \t\treturn;\n \n@@ -856,7 +862,7 @@ show_port(void)\n \t\t}\n \n #ifdef RTE_LIB_SECURITY\n-\t\tshow_security_context(i);\n+\t\tshow_security_context(i, true);\n #endif\n \t}\n }\n@@ -1220,7 +1226,7 @@ show_crypto(void)\n \t\t}\n \n #ifdef RTE_LIB_SECURITY\n-\t\tshow_security_context(i);\n+\t\tshow_security_context(i, false);\n #endif\n \t}\n }\n",
    "prefixes": [
        "v3",
        "1/1"
    ]
}