get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 21428,
    "url": "https://patches.dpdk.org/api/patches/21428/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170306082740.5675-8-maxime.coquelin@redhat.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": "<20170306082740.5675-8-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20170306082740.5675-8-maxime.coquelin@redhat.com",
    "date": "2017-03-06T08:27:40",
    "name": "[dpdk-dev,v2,7/7] app/testpmd: print MTU value in show port info",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9c6d8e5bf8e8138bed8e83280bbf93c8f1f6e3e2",
    "submitter": {
        "id": 512,
        "url": "https://patches.dpdk.org/api/people/512/?format=api",
        "name": "Maxime Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "delegate": {
        "id": 355,
        "url": "https://patches.dpdk.org/api/users/355/?format=api",
        "username": "yliu",
        "first_name": "Yuanhan",
        "last_name": "Liu",
        "email": "yuanhan.liu@linux.intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170306082740.5675-8-maxime.coquelin@redhat.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/21428/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/21428/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 4C859D4A4;\n\tMon,  6 Mar 2017 09:28:46 +0100 (CET)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 9CBDA567F\n\tfor <dev@dpdk.org>; Mon,  6 Mar 2017 09:28:14 +0100 (CET)",
            "from int-mx13.intmail.prod.int.phx2.redhat.com\n\t(int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 0FFAF85365;\n\tMon,  6 Mar 2017 08:28:15 +0000 (UTC)",
            "from max-t460s.redhat.com (ovpn-116-235.ams2.redhat.com\n\t[10.36.116.235])\n\tby int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with\n\tESMTP id v268RmvH006934; Mon, 6 Mar 2017 03:28:12 -0500"
        ],
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "aconole@redhat.com, sodey@sonusnet.com, yuanhan.liu@linux.intel.com,\n\tjianfeng.tan@intel.com, dev@dpdk.org",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "Date": "Mon,  6 Mar 2017 09:27:40 +0100",
        "Message-Id": "<20170306082740.5675-8-maxime.coquelin@redhat.com>",
        "In-Reply-To": "<20170306082740.5675-1-maxime.coquelin@redhat.com>",
        "References": "<20170213142820.8964-1-maxime.coquelin@redhat.com>\n\t<20170306082740.5675-1-maxime.coquelin@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.26",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.25]); Mon, 06 Mar 2017 08:28:15 +0000 (UTC)",
        "Subject": "[dpdk-dev] [PATCH v2 7/7] app/testpmd: print MTU value in show port\n\tinfo",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "This patch adds MTU display to \"show port info\" command.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n app/test-pmd/config.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c\nindex 80491fc..73d9603 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -449,6 +449,7 @@ port_infos_display(portid_t port_id)\n \tstruct rte_mempool * mp;\n \tstatic const char *info_border = \"*********************\";\n \tportid_t pid;\n+\tuint16_t mtu;\n \n \tif (port_id_is_invalid(port_id, ENABLED_WARN)) {\n \t\tprintf(\"Valid port range is [0\");\n@@ -480,6 +481,10 @@ port_infos_display(portid_t port_id)\n \tprintf(\"Link speed: %u Mbps\\n\", (unsigned) link.link_speed);\n \tprintf(\"Link duplex: %s\\n\", (link.link_duplex == ETH_LINK_FULL_DUPLEX) ?\n \t       (\"full-duplex\") : (\"half-duplex\"));\n+\n+\tif (!rte_eth_dev_get_mtu(port_id, &mtu))\n+\t\tprintf(\"MTU: %u\\n\", mtu);\n+\n \tprintf(\"Promiscuous mode: %s\\n\",\n \t       rte_eth_promiscuous_get(port_id) ? \"enabled\" : \"disabled\");\n \tprintf(\"Allmulticast mode: %s\\n\",\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "7/7"
    ]
}