get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 44030,
    "url": "http://patchwork.dpdk.org/api/patches/44030/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/92b192aa67cec3d4b41680fa05e72a138b9cc92d.1535633784.git.gaetan.rivet@6wind.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": "<92b192aa67cec3d4b41680fa05e72a138b9cc92d.1535633784.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/92b192aa67cec3d4b41680fa05e72a138b9cc92d.1535633784.git.gaetan.rivet@6wind.com",
    "date": "2018-08-30T13:41:59",
    "name": "[v1,08/13] app/testpmd: add show device command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "137a1c03f568ffef7fe6da7027e5ebe844f3beee",
    "submitter": {
        "id": 269,
        "url": "http://patchwork.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.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/92b192aa67cec3d4b41680fa05e72a138b9cc92d.1535633784.git.gaetan.rivet@6wind.com/mbox/",
    "series": [
        {
            "id": 1115,
            "url": "http://patchwork.dpdk.org/api/series/1115/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=1115",
            "date": "2018-08-30T13:41:51",
            "name": "Implement new devargs framework",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/1115/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/44030/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/44030/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 962AB58FA;\n\tThu, 30 Aug 2018 15:42:54 +0200 (CEST)",
            "from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65]) by dpdk.org (Postfix) with ESMTP id B3D7B4C8D\n\tfor <dev@dpdk.org>; Thu, 30 Aug 2018 15:42:42 +0200 (CEST)",
            "by mail-wm0-f65.google.com with SMTP id j192-v6so2097134wmj.1\n\tfor <dev@dpdk.org>; Thu, 30 Aug 2018 06:42:42 -0700 (PDT)",
            "from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tw10-v6sm5247731wrp.31.2018.08.30.06.42.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 30 Aug 2018 06:42:41 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=og+AYVr4tU1QvPzkWvSbNbNtfe/sya7HWmKUGLXNTAc=;\n\tb=shQc9x2SL2yYUFSHnv4uP4G/Wz5FC6Plv103lxioxhBb/3a9t4xqp704TSuUMbaijh\n\tgmCpcnjc5W5ScMEn76JBeSwTJ0A3EIQ8lO/gv1TipxclvU1H4PdvKWqQE6dVlcju91ZM\n\t7beOAGxdTjJlQaaHrIa2Y07tS4V9epC5Nej3Mz0V5zUtS76ji//+uxkrEBrPg7fsswf9\n\tPD/UexPfYs8ZQiLA8tkWx8XrRiMBLQ0Oit7/hkFt9rBPso6lfwMLAXYVtYGO4fk7B0Da\n\t03IN0J6StMZMk8gdc3yUgzHcokFXc5KAOez68jWmXtQQxWtSEd+Ba7sUWDs+Q5YZDmpo\n\tgbnA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=og+AYVr4tU1QvPzkWvSbNbNtfe/sya7HWmKUGLXNTAc=;\n\tb=DHlpMNAVQxUjxs2xRGRa8r80sKci1vAwjhrEmabp0juieX4rmjfROTrY0rKEGT3DrA\n\tLMpkqxUkROPWRi2z9FmPn2Sh0YG8RD2YGh/xwta01glO2J1sIOeeUSpiazolFWatpx0s\n\tgQ0wIBxfOohPUR9ld0Py9GrQX1ye3mKDWstAX87Y1qsbUdM4twLyCMj5eXKi5OJ5jOzp\n\trTBFM2qSBnrn7/lfJ4yxpQr8iSmkrj3EhwCdYVW66IoMDe6x7JBYvJEuznklZ4nudHSk\n\tTCbw4HWr7lisFk3uM9kiSsZenX9jNOpUDGlZ4pczj2+cAgQ/cTMTZO4RjuWBPfDRzSPg\n\tFe5A==",
        "X-Gm-Message-State": "APzg51Dv+gxPsH7YmDy/lU/SDhDmA7vm72pFxxp9eHaOoW6F/wC+4ovK\n\t3tBDYCx3d1agcISziwhsSY5CiNEIkjE=",
        "X-Google-Smtp-Source": "ANB0VdadKJtDra9UG5T1P6FS1KgQJmGTu1dL71VRlJ238CaBQMNS//47HSjY9Nubp9Y+So1MWCntCg==",
        "X-Received": "by 2002:a1c:a941:: with SMTP id\n\ts62-v6mr1997459wme.76.1535636562073; \n\tThu, 30 Aug 2018 06:42:42 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Thu, 30 Aug 2018 15:41:59 +0200",
        "Message-Id": "<92b192aa67cec3d4b41680fa05e72a138b9cc92d.1535633784.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<cover.1535633783.git.gaetan.rivet@6wind.com>",
        "References": "<cover.1535633783.git.gaetan.rivet@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v1 08/13] app/testpmd: add show device command",
        "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": "A new interactive command is offered:\n\n   show device <device description>\n\nThis commands lists all rte_device element matching the device\ndescription. e.g.:\n\n   show device bus=pci\n   show device bus=vdev\n   show device bus=vdev/class=eth\n   show device bus=vdev,driver=net_ring/class=eth\n   show device bus=vdev/class=eth,name=net_ring0\n\nThese devices may not be otherwise useful, some buses will spawn devices\nto keep track of their assets without having a driver to use them.\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\nAcked-by: Bernard Iremonger <bernard.iremonger@intel.com>\n---\n app/test-pmd/cmdline.c                      | 54 +++++++++++++++++++++\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 24 +++++++++\n 2 files changed, 78 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 589121d69..a7c0e622a 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -228,6 +228,9 @@ static void cmd_help_long_parsed(void *parsed_result,\n                         \"show port tm node stats (port_id) (node_id) (clear)\\n\"\n                         \"       Display the port TM node stats.\\n\\n\"\n \n+\t\t\t\"show device (device_string)\\n\"\n+\t\t\t\"       Display devices matching the device string.\\n\\n\"\n+\n \t\t);\n \t}\n \n@@ -7117,6 +7120,56 @@ cmdline_parse_inst_t cmd_showportall = {\n \t},\n };\n \n+/* *** SHOW DEVICE INFO *** */\n+struct cmd_showdevice_result {\n+\tcmdline_fixed_string_t show;\n+\tcmdline_fixed_string_t device;\n+\tcmdline_fixed_string_t filter;\n+};\n+\n+static void\n+cmd_showdevice_dump_device(const struct rte_device *dev)\n+{\n+\tconst struct rte_driver *drv = dev->driver;\n+\n+\tprintf(\"0x%p: %s:%s\\n\", (const void *)dev, dev->name,\n+\t\tdrv ? drv->name : \"<nil>\");\n+}\n+\n+static void cmd_showdevice_parsed(void *parsed_result,\n+\t\t\t\t__attribute__((unused)) struct cmdline *cl,\n+\t\t\t\t__attribute__((unused)) void *data)\n+{\n+\tstruct cmd_showdevice_result *res = parsed_result;\n+\tstruct rte_dev_iterator it;\n+\tconst struct rte_device *dev;\n+\n+\tRTE_DEV_FOREACH(dev, res->filter, &it)\n+\t\tcmd_showdevice_dump_device(dev);\n+}\n+\n+cmdline_parse_token_string_t cmd_showdevice_show =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_showdevice_result,\n+\t\t\t\tshow, \"show\");\n+cmdline_parse_token_string_t cmd_showdevice_device =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_showdevice_result,\n+\t\t\t\tdevice, \"device\");\n+cmdline_parse_token_string_t cmd_showdevice_filter =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_showdevice_result,\n+\t\t\tfilter, NULL);\n+\n+cmdline_parse_inst_t cmd_showdevice = {\n+\t.f = cmd_showdevice_parsed,\n+\t.data = NULL,\n+\t.help_str = \"show device <device string>\",\n+\t.tokens = {\n+\t\t(void *)&cmd_showdevice_show,\n+\t\t(void *)&cmd_showdevice_device,\n+\t\t(void *)&cmd_showdevice_filter,\n+\t\tNULL,\n+\t},\n+};\n+\n /* *** SHOW PORT INFO *** */\n struct cmd_showport_result {\n \tcmdline_fixed_string_t show;\n@@ -17610,6 +17663,7 @@ cmdline_parse_ctx_t main_ctx[] = {\n \t(cmdline_parse_inst_t *)&cmd_help_long,\n \t(cmdline_parse_inst_t *)&cmd_quit,\n \t(cmdline_parse_inst_t *)&cmd_load_from_file,\n+\t(cmdline_parse_inst_t *)&cmd_showdevice,\n \t(cmdline_parse_inst_t *)&cmd_showport,\n \t(cmdline_parse_inst_t *)&cmd_showqueue,\n \t(cmdline_parse_inst_t *)&cmd_showportall,\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex dde205a2b..417072cce 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -2663,6 +2663,30 @@ set the traffic management default hierarchy on the port::\n \n    testpmd> set port tm hierarchy default (port_id)\n \n+Device functions\n+----------------\n+\n+Show devices\n+~~~~~~~~~~~~\n+\n+Display any registered devices::\n+\n+   testpmd> show device <device_string>\n+\n+where:\n+\n+* ``device_string``: Device description string, of the format\n+\n+  layer[/layer[/layer]]\n+\n+  where one layer is in the form\n+\n+  layer_key=layer_name[,key1=value1[,...]]\n+\n+  Valid layer keys are ``bus`` and ``class``.\n+  Their respective values is defined by registered ``bus`` and ``class``\n+  drivers.\n+\n Filter Functions\n ----------------\n \n",
    "prefixes": [
        "v1",
        "08/13"
    ]
}