get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 32922,
    "url": "http://patches.dpdk.org/api/patches/32922/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1515113654-2738-1-git-send-email-wangzhike@jd.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": "<1515113654-2738-1-git-send-email-wangzhike@jd.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1515113654-2738-1-git-send-email-wangzhike@jd.com",
    "date": "2018-01-05T00:54:14",
    "name": "[dpdk-dev] net/virtio: init MTU in case no control channel",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e67cf09f035aa3333201e2a95aca656b42c639a3",
    "submitter": {
        "id": 873,
        "url": "http://patches.dpdk.org/api/people/873/?format=api",
        "name": "王志克",
        "email": "wangzhike@jd.com"
    },
    "delegate": {
        "id": 355,
        "url": "http://patches.dpdk.org/api/users/355/?format=api",
        "username": "yliu",
        "first_name": "Yuanhan",
        "last_name": "Liu",
        "email": "yuanhan.liu@linux.intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1515113654-2738-1-git-send-email-wangzhike@jd.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/32922/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/32922/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 89D9D8E01;\n\tFri,  5 Jan 2018 01:54:35 +0100 (CET)",
            "from smtp.jd.com (smtp.jd.com [58.83.206.59])\n\tby dpdk.org (Postfix) with ESMTP id 232B52951\n\tfor <dev@dpdk.org>; Fri,  5 Jan 2018 01:54:32 +0100 (CET)",
            "from USHUB01.360buyAD.local (172.26.2.75) by HUB01.360buyAD.local\n\t(172.17.27.15) with Microsoft SMTP Server (TLS) id 14.3.361.1;\n\tFri, 5 Jan 2018 08:54:32 +0800",
            "from localhost.localdomain (39.109.125.70) by\n\tUSHUB01.360buyAD.local\n\t(138.229.76.4) with Microsoft SMTP Server id 14.3.361.1;\n\tFri, 5 Jan 2018 08:54:29 +0800"
        ],
        "From": "zhike wang <wangzhike@jd.com>",
        "To": "<dev@dpdk.org>",
        "CC": "zhike wang <wangzhike@jd.com>",
        "Date": "Thu, 4 Jan 2018 16:54:14 -0800",
        "Message-ID": "<1515113654-2738-1-git-send-email-wangzhike@jd.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[39.109.125.70]",
        "Subject": "[dpdk-dev] [PATCH] net/virtio: init MTU in case no control channel",
        "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": "The max_mtu is kept as zero in case no CRTL channel, which leads\nto failure when calling virtio_mtu_set().\n\nSigned-off-by: zhike wang <wangzhike@jd.com>\n---\n drivers/net/virtio/virtio_ethdev.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex 21f2131..b7b3364 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -1479,6 +1479,8 @@ static int virtio_dev_xstats_get_names(struct rte_eth_dev *dev,\n \t} else {\n \t\tPMD_INIT_LOG(DEBUG, \"config->max_virtqueue_pairs=1\");\n \t\thw->max_queue_pairs = 1;\n+\t\thw->max_mtu = VIRTIO_MAX_RX_PKTLEN - ETHER_HDR_LEN -\n+\t\t\tVLAN_TAG_LEN - hw->vtnet_hdr_size;\n \t}\n \n \tret = virtio_alloc_queues(eth_dev);\n",
    "prefixes": [
        "dpdk-dev"
    ]
}