get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73942,
    "url": "http://patchwork.dpdk.org/api/patches/73942/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200713131501.17422-2-hemant.agrawal@nxp.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": "<20200713131501.17422-2-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200713131501.17422-2-hemant.agrawal@nxp.com",
    "date": "2020-07-13T13:15:01",
    "name": "[v3,2/2] app/proc-info: add crypto security context info",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b12e9f6a7875ddd8d5e600db60f84c9a726c6954",
    "submitter": {
        "id": 477,
        "url": "http://patchwork.dpdk.org/api/people/477/?format=api",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200713131501.17422-2-hemant.agrawal@nxp.com/mbox/",
    "series": [
        {
            "id": 10995,
            "url": "http://patchwork.dpdk.org/api/series/10995/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10995",
            "date": "2020-07-13T13:15:00",
            "name": "[v3,1/2] app/proc-info: enhance mempool to print ops name",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/10995/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/73942/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/73942/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 A70D4A0540;\n\tMon, 13 Jul 2020 15:19:35 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 07A931D66C;\n\tMon, 13 Jul 2020 15:19:31 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by dpdk.org (Postfix) with ESMTP id DDB341D66A\n for <dev@dpdk.org>; Mon, 13 Jul 2020 15:19:28 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AA37020006A;\n Mon, 13 Jul 2020 15:19:28 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9765C2000A0;\n Mon, 13 Jul 2020 15:19:26 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8D8E7402C8;\n Mon, 13 Jul 2020 21:19:23 +0800 (SGT)"
        ],
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "To": "dev@dpdk.org",
        "Cc": "maryam.tahhan@intel.com, reshma.pattan@intel.com,\n Hemant Agrawal <hemant.agrawal@nxp.com>",
        "Date": "Mon, 13 Jul 2020 18:45:01 +0530",
        "Message-Id": "<20200713131501.17422-2-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200713131501.17422-1-hemant.agrawal@nxp.com>",
        "References": "<20200711095343.10523-1-hemant.agrawal@nxp.com>\n <20200713131501.17422-1-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v3 2/2] app/proc-info: add crypto security\n\tcontext info",
        "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": "This patch adds the crypto based security context info.\nAlso improve the flag printing to SECURITY OFFLOAD from\nINLINE.\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n app/proc-info/main.c | 22 +++++++++++++++++++++-\n 1 file changed, 21 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex a5d16765b..34acea12a 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -1169,7 +1169,7 @@ display_crypto_feature_info(uint64_t x)\n \tprintf(\"\\t\\t  + AESNI: CPU (%c), HW (%c)\\n\",\n \t\t(x & RTE_CRYPTODEV_FF_CPU_AESNI) ? 'y' : 'n',\n \t\t(x & RTE_CRYPTODEV_FF_HW_ACCELERATED) ? 'y' : 'n');\n-\tprintf(\"\\t\\t  + INLINE (%c)\\n\",\n+\tprintf(\"\\t\\t  + SECURITY OFFLOAD (%c)\\n\",\n \t\t(x & RTE_CRYPTODEV_FF_SECURITY) ? 'y' : 'n');\n \tprintf(\"\\t\\t  + ARM: NEON (%c), CE (%c)\\n\",\n \t\t(x & RTE_CRYPTODEV_FF_CPU_NEON) ? 'y' : 'n',\n@@ -1226,6 +1226,26 @@ show_crypto(void)\n \t\t\t\tstats.dequeued_count,\n \t\t\t\tstats.dequeue_err_count);\n \t\t}\n+#ifdef RTE_LIBRTE_SECURITY\n+\t\tvoid *p_ctx = rte_eth_dev_get_sec_ctx(i);\n+\t\tprintf(\"\\t  -- security context - %p\\n\", p_ctx);\n+\n+\t\tif (p_ctx) {\n+\t\t\tprintf(\"\\t  -- size %u\\n\",\n+\t\t\t\t\trte_security_session_get_size(p_ctx));\n+\t\t\tconst struct rte_security_capability *s_cap =\n+\t\t\t\trte_security_capabilities_get(p_ctx);\n+\t\t\tif (s_cap) {\n+\t\t\t\tprintf(\"\\t  -- action (0x%x), protocol (0x%x),\"\n+\t\t\t\t\t\t\" offload flags (0x%x)\\n\",\n+\t\t\t\t\t\ts_cap->action,\n+\t\t\t\t\t\ts_cap->protocol,\n+\t\t\t\t\t\ts_cap->ol_flags);\n+\t\t\t\tprintf(\"\\t  -- capabilities - oper type %x\\n\",\n+\t\t\t\t\t\ts_cap->crypto_capabilities->op);\n+\t\t\t}\n+\t\t}\n+#endif\n \t}\n }\n \n",
    "prefixes": [
        "v3",
        "2/2"
    ]
}