get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47249,
    "url": "http://patches.dpdk.org/api/patches/47249/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181023135751.21536-6-vipin.varghese@intel.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": "<20181023135751.21536-6-vipin.varghese@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181023135751.21536-6-vipin.varghese@intel.com",
    "date": "2018-10-23T13:57:48",
    "name": "[v1,6/9] app/procinfo: add code for debug crypto",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "deced2aa4ec986a2a8e34cb708643385c321a487",
    "submitter": {
        "id": 882,
        "url": "http://patches.dpdk.org/api/people/882/?format=api",
        "name": "Varghese, Vipin",
        "email": "vipin.varghese@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181023135751.21536-6-vipin.varghese@intel.com/mbox/",
    "series": [
        {
            "id": 2036,
            "url": "http://patches.dpdk.org/api/series/2036/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2036",
            "date": "2018-10-23T13:57:43",
            "name": "[v1,1/9] app/procinfo: add usage for new debug",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/2036/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/47249/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/47249/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A09051B526;\n\tTue, 23 Oct 2018 16:01:55 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id EC9A41B50E\n\tfor <dev@dpdk.org>; Tue, 23 Oct 2018 16:01:49 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Oct 2018 07:01:49 -0700",
            "from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203])\n\tby fmsmga008.fm.intel.com with ESMTP; 23 Oct 2018 07:01:47 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,416,1534834800\"; d=\"scan'208\";a=\"80934667\"",
        "From": "Vipin Varghese <vipin.varghese@intel.com>",
        "To": "dev@dpdk.org,\n\tmaryam.tahhan@intel.com,\n\treshma.pattan@intel.com",
        "Cc": "amol.patel@intel.com, sivaprasad.tummala@intel.com,\n\tstephen1.byrne@intel.com, michael.j.glynn@intel.com,\n\tVipin Varghese <vipin.varghese@intel.com>",
        "Date": "Tue, 23 Oct 2018 19:27:48 +0530",
        "Message-Id": "<20181023135751.21536-6-vipin.varghese@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20181023135751.21536-1-vipin.varghese@intel.com>",
        "References": "<20181023135751.21536-1-vipin.varghese@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v1 6/9] app/procinfo: add code for debug crypto",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Function debug_crypto is used for displaying the crypto PMD under\nthe primary process.\n\nSigned-off-by: Vipin Varghese <vipin.varghese@intel.com>\n---\n app/proc-info/main.c | 70 +++++++++++++++++++++++++++++++++++++++++++-\n 1 file changed, 69 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex 4766a5ea3..0f2045858 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -999,7 +999,75 @@ x.cman_wred_context_shared_n_max); \\\n static void\n debug_crypto(void)\n {\n-\tprintf(\" crypto\");\n+\tuint8_t crypto_dev_count = rte_cryptodev_count(), i;\n+\n+\tsnprintf(bdr_str, 100, \"debug - CRYPTO PMD %\"PRIu64, rte_get_tsc_hz());\n+\tSTATS_BDR_STR(10, bdr_str);\n+\n+\tfor (i = 0; i < crypto_dev_count; i++) {\n+\t\tstruct rte_cryptodev_info dev_info = {0};\n+\t\tstruct rte_cryptodev_stats stats = {0};\n+\n+\t\trte_cryptodev_info_get(i, &dev_info);\n+\n+\t\tprintf(\"  - device (%u)\\n\", i);\n+\t\tprintf(\"\\t  -- name (%s) driver (%s)\\n\"\n+\t\t       \"\\t  -- id (%u) flags (0x%\"PRIx64\") socket (%d)\\n\"\n+\t\t       \"\\t  -- queue pairs (%d)\\n\",\n+\t\t       rte_cryptodev_name_get(i),\n+\t\t       dev_info.driver_name, dev_info.driver_id,\n+\t\t       dev_info.feature_flags, dev_info.device->numa_node,\n+\t\t       rte_cryptodev_queue_pair_count(i));\n+\n+#define DSP_CRYPTO_FLAG(x) do { \\\n+printf(\"  - feature flags\\n\"); \\\n+printf(\"\\t  -- symmetric (%c) asymmetric (%c)\" \\\n+\" symmetric operation chaining (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO)?'y':'n', \\\n+(x & RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO)?'y':'n', \\\n+(x & RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING)?'y':'n'); \\\n+printf(\"\\t  -- CPU SSE (%c) AVX (%c) AVX2 (%c) AVX512 (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_CPU_SSE)?'y':'n', \\\n+(x & RTE_CRYPTODEV_FF_CPU_AVX)?'y':'n', \\\n+(x & RTE_CRYPTODEV_FF_CPU_AVX2)?'y':'n', \\\n+(x & RTE_CRYPTODEV_FF_CPU_AVX512)?'y':'n'); \\\n+printf(\"\\t  -- Acclerate CPU AESNI (%c) HW (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_CPU_AESNI)?'y':'n', \\\n+(x & RTE_CRYPTODEV_FF_HW_ACCELERATED)?'y':'n'); \\\n+printf(\"\\t  -- INLINE (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_SECURITY)?'y':'n'); \\\n+printf(\"\\t  -- ARM NEON (%c) CE (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_CPU_NEON)?'y':'n', \\\n+(x & RTE_CRYPTODEV_FF_CPU_ARM_CE)?'y':'n'); \\\n+printf(\"  - buffer offload\\n\"); \\\n+printf(\"\\t  -- IN_PLACE_SGL (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_IN_PLACE_SGL)?'y':'n'); \\\n+printf(\"\\t  -- OOP_SGL_IN_SGL_OUT (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT)?'y':'n'); \\\n+printf(\"\\t  -- OOP_SGL_IN_LB_OUT (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT)?'y':'n'); \\\n+printf(\"\\t  -- OOP_LB_IN_SGL_OUT (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_OOP_LB_IN_SGL_OUT)?'y':'n'); \\\n+printf(\"\\t  -- OOP_LB_IN_LB_OUT (%c)\\n\", \\\n+(x & RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT)?'y':'n'); \\\n+} while (0)\n+\n+\t\tDSP_CRYPTO_FLAG(dev_info.feature_flags);\n+\n+\t\tprintf(\"  - stats\\n\");\n+\t\tif (rte_cryptodev_stats_get(i, &stats) == 0) {\n+\t\t\tprintf(\"\\t  -- enqueue count (%\"PRIu64\")\"\n+\t\t\t       \" error (%\"PRIu64\")\\n\",\n+\t\t\t       stats.enqueued_count,\n+\t\t\t       stats.enqueue_err_count);\n+\t\t\tprintf(\"\\t  -- dequeue count (%\"PRIu64\")\"\n+\t\t\t       \" error (%\"PRIu64\")\\n\",\n+\t\t\t       stats.dequeued_count,\n+\t\t\t       stats.dequeue_err_count);\n+\t\t}\n+\t}\n+\n+\tSTATS_BDR_STR(50, \"\");\n }\n \n static void\n",
    "prefixes": [
        "v1",
        "6/9"
    ]
}