get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 36560,
    "url": "https://patches.dpdk.org/api/patches/36560/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/44ab18eb5a6ef7988154f799f4c3aa4ffae59b22.1522105876.git.gaetan.rivet@6wind.com/",
    "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": "<44ab18eb5a6ef7988154f799f4c3aa4ffae59b22.1522105876.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/44ab18eb5a6ef7988154f799f4c3aa4ffae59b22.1522105876.git.gaetan.rivet@6wind.com",
    "date": "2018-03-26T23:18:44",
    "name": "[dpdk-dev,v3,20/20] app/testpmd: add show device command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1d7a77547cb61c618b557e761f9b9c3457445e40",
    "submitter": {
        "id": 269,
        "url": "https://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/44ab18eb5a6ef7988154f799f4c3aa4ffae59b22.1522105876.git.gaetan.rivet@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/36560/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/36560/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 32C4B1AFEC;\n\tTue, 27 Mar 2018 01:19:39 +0200 (CEST)",
            "from mail-wr0-f195.google.com (mail-wr0-f195.google.com\n\t[209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 73429AAB9\n\tfor <dev@dpdk.org>; Tue, 27 Mar 2018 01:19:29 +0200 (CEST)",
            "by mail-wr0-f195.google.com with SMTP id f14so20503378wre.8\n\tfor <dev@dpdk.org>; Mon, 26 Mar 2018 16:19:29 -0700 (PDT)",
            "from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78])\n\tby smtp.gmail.com with ESMTPSA id 67sm343712wra.9.2018.03.26.16.19.27\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 26 Mar 2018 16:19:27 -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\t:in-reply-to:references;\n\tbh=KvTs/RBDIUErfPwslOaQUveBvHxTt/GdrWoF5Os/YMI=;\n\tb=UOnk3a5wuSIaus9I9twmd1rJGXGd0gZ43DfqdREbo+7WuGEcY3tQCLzY7zbqu8Wqte\n\tjl9dnKtj5tYAxKCjWk0f0kPwdC5p8A76OmnmV50EsSDXS8hecQKnY/lwZZ06Euo7FQ6V\n\ta68xJSbCo4P9XVL/jlEEThX0q8k6P+rMyVR0KdGTAxGO2mc8P/HIWS1zIkq4AQZcn/B+\n\tUJ/MrOAada3Qx49YbT/edwCsGiHtxuX229l1powZkABCL5GSZ0GPQPQ5dWPbSjPlc5/O\n\tv/shp1euk/55yVaOq2nwA3aagV++zO+a+YGb0EYYq0u21VO3WW2l3TBNBEU07G+4pw48\n\tay0g==",
        "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:in-reply-to:references;\n\tbh=KvTs/RBDIUErfPwslOaQUveBvHxTt/GdrWoF5Os/YMI=;\n\tb=IQYQCF2DePZsSCgwbP/qUdAIT0iPNcFlDGxkBiOghxm4/Eh3dxwmTO3QGfHgYdR7Vy\n\tID3Y6v/keUlswjm5Io16zyRYWoifZW5zOJQ1dRBzUYgg/aWzkjl9lSE5WRzBsB00Y2S9\n\taTNYgk72kbFtUk0HgRPzvPPlkhHOa2yws3mA+oqvAjsakjYsMdbBpeDjEBkb6vMBz1mn\n\tFxwyVgxk40Pvv70uHkC25MUG34g3gh5Pn1UsL0OhN1tJ4wZq3fZyfgM4sw7WPvk81CM2\n\tk2Y1zmeh+GFUTKDv8f7RsWJE+r/DU9SdqfvRcb3SmOd0vEV9oicikS+hV6JkBg0W+Ppa\n\tdB/A==",
        "X-Gm-Message-State": "AElRT7GLV0JxAIKMFaTgNxMcaLGSs7hlNQ7Gc7m5wjJufV4Qg9CRDvU+\n\t2Z/ODnGp05ENF7M2Z2O22g3NuciQ",
        "X-Google-Smtp-Source": "AG47ELt6hWFSifnrDZoaqvgh9kS+0gcHC/rmY5YL4mRvcz2upmJYB2FZDNlndNH0aTl6rMFnwUKqrQ==",
        "X-Received": "by 10.223.199.10 with SMTP id k10mr31413840wrg.186.1522106368787;\n\tMon, 26 Mar 2018 16:19:28 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Tue, 27 Mar 2018 01:18:44 +0200",
        "Message-Id": "<44ab18eb5a6ef7988154f799f4c3aa4ffae59b22.1522105876.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": [
            "<cover.1522105876.git.gaetan.rivet@6wind.com>",
            "<cover.1522105876.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1521652453.git.gaetan.rivet@6wind.com>\n\t<cover.1522105876.git.gaetan.rivet@6wind.com>",
            "<cover.1522105876.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v3 20/20] 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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/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>\n---\n app/test-pmd/cmdline.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 52 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 40b31ad7e..8ac5fb3ca 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -6701,6 +6701,57 @@ 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 \"\n+\t\t\"<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@@ -16038,6 +16089,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,\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "20/20"
    ]
}