Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/4080/?format=api
https://patches.dpdk.org/api/patches/4080/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1426823642-27360-1-git-send-email-haifeng.lin@huawei.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": "<1426823642-27360-1-git-send-email-haifeng.lin@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1426823642-27360-1-git-send-email-haifeng.lin@huawei.com", "date": "2015-03-20T03:54:02", "name": "[dpdk-dev] lib/librte_vhost:fix can't send packet anymore after mempool is full again", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "43f100871de6cb316836042756b166750f5e2bd9", "submitter": { "id": 69, "url": "https://patches.dpdk.org/api/people/69/?format=api", "name": "Linhaifeng", "email": "haifeng.lin@huawei.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1426823642-27360-1-git-send-email-haifeng.lin@huawei.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/4080/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/4080/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 43A4758F1;\n\tFri, 20 Mar 2015 04:55:42 +0100 (CET)", "from szxga03-in.huawei.com (szxga03-in.huawei.com [119.145.14.66])\n\tby dpdk.org (Postfix) with ESMTP id 296745683\n\tfor <dev@dpdk.org>; Fri, 20 Mar 2015 04:55:38 +0100 (CET)", "from 172.24.2.119 (EHLO szxeml432-hub.china.huawei.com)\n\t([172.24.2.119])\n\tby szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued)\n\twith ESMTP id BDJ90396; Fri, 20 Mar 2015 11:55:35 +0800 (CST)", "from localhost (10.177.19.115) by szxeml432-hub.china.huawei.com\n\t(10.82.67.209) with Microsoft SMTP Server id 14.3.158.1;\n\tFri, 20 Mar 2015 11:54:06 +0800" ], "From": "linhaifeng <haifeng.lin@huawei.com>", "To": "<dev@dpdk.org>", "Date": "Fri, 20 Mar 2015 11:54:02 +0800", "Message-ID": "<1426823642-27360-1-git-send-email-haifeng.lin@huawei.com>", "X-Mailer": "git-send-email 1.8.5.2.msysgit.0", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.177.19.115]", "X-CFilter-Loop": "Reflected", "X-Mirapoint-Virus-RAPID-Raw": "score=unknown(0),\n\trefid=str=0001.0A020206.550B9A37.0132, ss=1, re=0.001, recu=0.000,\n\treip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0,\n\tso=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32", "X-Mirapoint-Loop-Id": "fe58b2b5acdda8fc90f30863130967f8", "Subject": "[dpdk-dev] [PATCH] lib/librte_vhost:fix can't send packet anymore\n\tafter mempool is full again", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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": "From: Linhaifeng <haifeng.lin@huawei.com>\n\nWhen failed to malloc buffer from mempool we just update last_used_idx but\nnot used->idx so after many times vhost thought have handle all packets\nbut virtio_net thought vhost have not handle all packets and will not\nupdate avail->idx.\n\nSigned-off-by: Linhaifeng <haifeng.lin@huawei.com>\n---\n lib/librte_vhost/vhost_rxtx.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c\nindex 535c7a1..93a8fff 100644\n--- a/lib/librte_vhost/vhost_rxtx.c\n+++ b/lib/librte_vhost/vhost_rxtx.c\n@@ -609,7 +609,7 @@ rte_vhost_dequeue_burst(struct virtio_net *dev, uint16_t queue_id,\n \t\tif (unlikely(m == NULL)) {\n \t\t\tRTE_LOG(ERR, VHOST_DATA,\n \t\t\t\t\"Failed to allocate memory for mbuf.\\n\");\n-\t\t\treturn entry_success;\n+\t\t\tgoto finish;\n \t\t}\n \t\tseg_offset = 0;\n \t\tseg_avail = m->buf_len - RTE_PKTMBUF_HEADROOM;\n@@ -721,6 +721,7 @@ rte_vhost_dequeue_burst(struct virtio_net *dev, uint16_t queue_id,\n \t\tentry_success++;\n \t}\n \n+finish:\n \trte_compiler_barrier();\n \tvq->used->idx += entry_success;\n \t/* Kick guest if required. */\n", "prefixes": [ "dpdk-dev" ] }{ "id": 4080, "url": "