Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/32982/?format=api
http://patches.dpdk.org/api/patches/32982/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1515148086-38104-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": "<1515148086-38104-1-git-send-email-wangzhike@jd.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1515148086-38104-1-git-send-email-wangzhike@jd.com", "date": "2018-01-05T10:28:06", "name": "[dpdk-dev] net/virtio: init MTU in case no control channel", "commit_ref": null, "pull_url": null, "state": "accepted", "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/1515148086-38104-1-git-send-email-wangzhike@jd.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/32982/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/32982/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 CCB401B168;\n\tFri, 5 Jan 2018 11:28:36 +0100 (CET)", "from smtp.jd.com (smtp.jd.com [58.83.206.59])\n\tby dpdk.org (Postfix) with ESMTP id 843061B026\n\tfor <dev@dpdk.org>; Fri, 5 Jan 2018 11:28:35 +0100 (CET)", "from USHUB02.360buyAD.local (172.26.2.76) by hub04.360buyAD.local\n\t(172.17.27.18) with Microsoft SMTP Server (TLS) id 14.3.361.1;\n\tFri, 5 Jan 2018 18:28:33 +0800", "from localhost.localdomain (39.109.125.70) by\n\tUSHUB02.360buyAD.local\n\t(138.229.76.5) with Microsoft SMTP Server id 14.3.361.1;\n\tFri, 5 Jan 2018 18:28:17 +0800" ], "From": "Zhike Wang <wangzhike@jd.com>", "To": "<dev@dpdk.org>", "CC": "zhike wang <wangzhike@jd.com>", "Date": "Fri, 5 Jan 2018 02:28:06 -0800", "Message-ID": "<1515148086-38104-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": "From: zhike wang <wangzhike@jd.com>\n\nThe 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" ] }{ "id": 32982, "url": "