get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 49468,
    "url": "http://patches.dpdk.org/api/patches/49468/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190107153829.34047-5-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": "<20190107153829.34047-5-vipin.varghese@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190107153829.34047-5-vipin.varghese@intel.com",
    "date": "2019-01-07T15:38:26",
    "name": "[v8,4/7] app/procinfo: add support for show crypto",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "542aff23025e35d15067fc35409322ef08dced58",
    "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/20190107153829.34047-5-vipin.varghese@intel.com/mbox/",
    "series": [
        {
            "id": 3028,
            "url": "http://patches.dpdk.org/api/series/3028/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3028",
            "date": "2019-01-07T15:38:22",
            "name": "app/proc-info: enhance debug of proc-info tool",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/3028/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/49468/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/49468/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 7E6471B508;\n\tMon,  7 Jan 2019 10:41:58 +0100 (CET)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 802191B50C\n\tfor <dev@dpdk.org>; Mon,  7 Jan 2019 10:41:56 +0100 (CET)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t07 Jan 2019 01:41:56 -0800",
            "from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203])\n\tby orsmga005.jf.intel.com with ESMTP; 07 Jan 2019 01:41:53 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.56,450,1539673200\"; d=\"scan'208\";a=\"289445013\"",
        "From": "Vipin Varghese <vipin.varghese@intel.com>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net",
        "Cc": "reshma.pattan@intel.com, john.mcnamara@intel.com, amol.patel@intel.com, \n\tstephen@networkplumber.org, konstantin.ananyev@intel.com,\n\tjasvinder.singh@intel.com, Vipin Varghese <vipin.varghese@intel.com>",
        "Date": "Mon,  7 Jan 2019 21:08:26 +0530",
        "Message-Id": "<20190107153829.34047-5-vipin.varghese@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190107153829.34047-1-vipin.varghese@intel.com>",
        "References": "<20181213050842.64587-1-vipin.varghese@intel.com>\n\t<20190107153829.34047-1-vipin.varghese@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v8 4/7] app/procinfo: add support for show 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 show_crypto is used for displaying the crypto PMD under primary\nprocess.\n\nSigned-off-by: Vipin Varghese <vipin.varghese@intel.com>\nAcked-by: Reshma  Pattan <reshma.pattan@intel.com>\nAcked-by: John McNamara <john.mcnamara@intel.com>\n---\n app/proc-info/main.c           | 94 +++++++++++++++++++++++++++++++++-\n doc/guides/tools/proc_info.rst |  6 ++-\n 2 files changed, 98 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex ea15ae1a6..4f625a371 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -80,6 +80,8 @@ static char bdr_str[MAX_STRING_LEN];\n static uint32_t enable_shw_port;\n /**< Enable show tm. */\n static uint32_t enable_shw_tm;\n+/**< Enable show crypto. */\n+static uint32_t enable_shw_crypto;\n \n /**< display usage */\n static void\n@@ -101,7 +103,8 @@ proc_info_usage(const char *prgname)\n \t\t\"  --collectd-format: to print statistics to STDOUT in expected by collectd format\\n\"\n \t\t\"  --host-id STRING: host id used to identify the system process is running on\\n\"\n \t\t\"  --show-port: to display ports information\\n\"\n-\t\t\"  --show-tm: to display traffic manager information for ports\\n\",\n+\t\t\"  --show-tm: to display traffic manager information for ports\\n\"\n+\t\t\"  --show-crypto: to display crypto information\\n\",\n \t\tprgname);\n }\n \n@@ -210,6 +213,7 @@ proc_info_parse_args(int argc, char **argv)\n \t\t{\"host-id\", 0, NULL, 0},\n \t\t{\"show-port\", 0, NULL, 0},\n \t\t{\"show-tm\", 0, NULL, 0},\n+\t\t{\"show-crypto\", 0, NULL, 0},\n \t\t{NULL, 0, 0, 0}\n \t};\n \n@@ -259,6 +263,9 @@ proc_info_parse_args(int argc, char **argv)\n \t\t\telse if (!strncmp(long_option[option_index].name,\n \t\t\t\t\t\"show-tm\", MAX_LONG_OPT_SZ))\n \t\t\t\tenable_shw_tm = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"show-crypto\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_shw_crypto = 1;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\t/* Print xstat single value given by name*/\n@@ -980,6 +987,89 @@ show_tm(void)\n \tSTATS_BDR_STR(50, \"\");\n }\n \n+static void\n+display_crypto_feature_info(uint64_t x)\n+{\n+\tif (x == 0)\n+\t\treturn;\n+\n+\tprintf(\"\\t  -- feature flags\\n\");\n+\tprintf(\"\\t\\t  + symmetric (%c), asymmetric (%c)\\n\"\n+\t\t\"\\t\\t  + symmetric operation chaining (%c)\\n\",\n+\t\t(x & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) ? 'y' : 'n',\n+\t\t(x & RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO) ? 'y' : 'n',\n+\t\t(x & RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING) ? 'y' : 'n');\n+\tprintf(\"\\t\\t  + CPU: SSE (%c), AVX (%c), AVX2 (%c), AVX512 (%c)\\n\",\n+\t\t(x & RTE_CRYPTODEV_FF_CPU_SSE) ? 'y' : 'n',\n+\t\t(x & RTE_CRYPTODEV_FF_CPU_AVX) ? 'y' : 'n',\n+\t\t(x & RTE_CRYPTODEV_FF_CPU_AVX2) ? 'y' : 'n',\n+\t\t(x & RTE_CRYPTODEV_FF_CPU_AVX512) ? 'y' : 'n');\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+\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+\t\t(x & RTE_CRYPTODEV_FF_CPU_ARM_CE) ? 'y' : 'n');\n+\tprintf(\"\\t  -- buffer offload\\n\");\n+\tprintf(\"\\t\\t  + IN_PLACE_SGL (%c)\\n\",\n+\t\t(x & RTE_CRYPTODEV_FF_IN_PLACE_SGL) ? 'y' : 'n');\n+\tprintf(\"\\t\\t  + OOP_SGL_IN_SGL_OUT (%c)\\n\",\n+\t\t(x & RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT) ? 'y' : 'n');\n+\tprintf(\"\\t\\t  + OOP_SGL_IN_LB_OUT (%c)\\n\",\n+\t\t(x & RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT) ? 'y' : 'n');\n+\tprintf(\"\\t\\t  + OOP_LB_IN_SGL_OUT (%c)\\n\",\n+\t\t(x & RTE_CRYPTODEV_FF_OOP_LB_IN_SGL_OUT) ? 'y' : 'n');\n+\tprintf(\"\\t\\t  + OOP_LB_IN_LB_OUT (%c)\\n\",\n+\t\t(x & RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT) ? 'y' : 'n');\n+}\n+\n+static void\n+show_crypto(void)\n+{\n+\tuint8_t crypto_dev_count = rte_cryptodev_count(), i;\n+\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - CRYPTO PMD %\"PRIu64,\n+\t\t\trte_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;\n+\t\tstruct rte_cryptodev_stats stats;\n+\n+\t\trte_cryptodev_info_get(i, &dev_info);\n+\n+\t\tprintf(\"  - device (%u)\\n\", i);\n+\t\tprintf(\"\\t  -- name (%s)\\n\"\n+\t\t\t\"\\t  -- driver (%s)\\n\"\n+\t\t\t\"\\t  -- id (%u) on socket (%d)\\n\"\n+\t\t\t\"\\t  -- queue pairs (%d)\\n\",\n+\t\t\trte_cryptodev_name_get(i),\n+\t\t\tdev_info.driver_name,\n+\t\t\tdev_info.driver_id,\n+\t\t\tdev_info.device->numa_node,\n+\t\t\trte_cryptodev_queue_pair_count(i));\n+\n+\t\tdisplay_crypto_feature_info(dev_info.feature_flags);\n+\n+\t\tmemset(&stats, 0, sizeof(0));\n+\t\tif (rte_cryptodev_stats_get(i, &stats) == 0) {\n+\t\t\tprintf(\"\\t  -- stats\\n\");\n+\t\t\tprintf(\"\\t\\t  + enqueue count (%\"PRIu64\")\"\n+\t\t\t\t\" error (%\"PRIu64\")\\n\",\n+\t\t\t\tstats.enqueued_count,\n+\t\t\t\tstats.enqueue_err_count);\n+\t\t\tprintf(\"\\t\\t  + dequeue count (%\"PRIu64\")\"\n+\t\t\t\t\" error (%\"PRIu64\")\\n\",\n+\t\t\t\tstats.dequeued_count,\n+\t\t\t\tstats.dequeue_err_count);\n+\t\t}\n+\t}\n+\n+\tSTATS_BDR_STR(50, \"\");\n+}\n+\n int\n main(int argc, char **argv)\n {\n@@ -1065,6 +1155,8 @@ main(int argc, char **argv)\n \t\tshow_port();\n \tif (enable_shw_tm)\n \t\tshow_tm();\n+\tif (enable_shw_crypto)\n+\t\tshow_crypto();\n \n \tret = rte_eal_cleanup();\n \tif (ret)\ndiff --git a/doc/guides/tools/proc_info.rst b/doc/guides/tools/proc_info.rst\nindex 5f9afdb79..883864d18 100644\n--- a/doc/guides/tools/proc_info.rst\n+++ b/doc/guides/tools/proc_info.rst\n@@ -18,7 +18,7 @@ The application has a number of command line options:\n .. code-block:: console\n \n    ./$(RTE_TARGET)/app/dpdk-procinfo -- -m | [-p PORTMASK] [--stats | --xstats |\n-   --stats-reset | --xstats-reset] [ --show-port | --show-tm ]\n+   --stats-reset | --xstats-reset] [ --show-port | --show-tm | --show-crypto ]\n \n Parameters\n ~~~~~~~~~~\n@@ -50,6 +50,10 @@ associated to RX port queue pair.\n The show-tm parameter displays per port traffic manager settings, current\n configurations and statistics.\n \n+**--show-crypto**\n+The show-crypto parameter displays available cryptodev configurations,\n+settings and stats per node.\n+\n Limitations\n -----------\n \n",
    "prefixes": [
        "v8",
        "4/7"
    ]
}