Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47209/?format=api
https://patches.dpdk.org/api/patches/47209/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181023060749.25194-1-tiwei.bie@intel.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": "<20181023060749.25194-1-tiwei.bie@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181023060749.25194-1-tiwei.bie@intel.com", "date": "2018-10-23T06:07:49", "name": "vhost: fix vector filling for packed ring", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "d8b929222fbaca61a2e8481d41ee21f99e48ee91", "submitter": { "id": 617, "url": "https://patches.dpdk.org/api/people/617/?format=api", "name": "Tiwei Bie", "email": "tiwei.bie@intel.com" }, "delegate": { "id": 2642, "url": "https://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181023060749.25194-1-tiwei.bie@intel.com/mbox/", "series": [ { "id": 2022, "url": "https://patches.dpdk.org/api/series/2022/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=2022", "date": "2018-10-23T06:07:49", "name": "vhost: fix vector filling for packed ring", "version": 1, "mbox": "https://patches.dpdk.org/series/2022/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/47209/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/47209/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 5D2E51B122;\n\tTue, 23 Oct 2018 08:09:20 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 1E3C61B122;\n\tTue, 23 Oct 2018 08:09:17 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t22 Oct 2018 23:09:17 -0700", "from btwcube1.sh.intel.com ([10.67.104.158])\n\tby orsmga001.jf.intel.com with ESMTP; 22 Oct 2018 23:09:15 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,415,1534834800\"; d=\"scan'208\";a=\"101814084\"", "From": "Tiwei Bie <tiwei.bie@intel.com>", "To": "maxime.coquelin@redhat.com,\n\tzhihong.wang@intel.com,\n\tdev@dpdk.org", "Cc": "stable@dpdk.org", "Date": "Tue, 23 Oct 2018 14:07:49 +0800", "Message-Id": "<20181023060749.25194-1-tiwei.bie@intel.com>", "X-Mailer": "git-send-email 2.19.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] vhost: fix vector filling for packed ring", "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://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "We should return the length of the buffers described by\nthe current descriptor chain after filling the buffer\nvector. So we need to zero the *len first.\n\nFixes: 2f3225a7d69b (\"vhost: add vector filling support for packed ring\")\nCc: stable@dpdk.org\n\nSigned-off-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n lib/librte_vhost/virtio_net.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c\nindex 48228f16b..4e6c35d56 100644\n--- a/lib/librte_vhost/virtio_net.c\n+++ b/lib/librte_vhost/virtio_net.c\n@@ -521,6 +521,7 @@ fill_vec_buf_packed(struct virtio_net *dev, struct vhost_virtqueue *vq,\n \t\treturn -1;\n \n \t*desc_count = 0;\n+\t*len = 0;\n \n \twhile (1) {\n \t\tif (unlikely(vec_id >= BUF_VECTOR_MAX))\n", "prefixes": [] }{ "id": 47209, "url": "