Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47879/?format=api
https://patches.dpdk.org/api/patches/47879/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181106064022.21566-2-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": "<20181106064022.21566-2-tiwei.bie@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181106064022.21566-2-tiwei.bie@intel.com", "date": "2018-11-06T06:40:21", "name": "[1/2] vhost: fix IOVA access for packed ring", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "9c052965b5186e4a75f3cc84dc0470fccd2e9677", "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/20181106064022.21566-2-tiwei.bie@intel.com/mbox/", "series": [ { "id": 2288, "url": "https://patches.dpdk.org/api/series/2288/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=2288", "date": "2018-11-06T06:40:20", "name": "Some fixes for virtio and vhost", "version": 1, "mbox": "https://patches.dpdk.org/series/2288/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/47879/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/47879/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 A22934C92;\n\tTue, 6 Nov 2018 07:42:50 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id D00452082;\n\tTue, 6 Nov 2018 07:42:47 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Nov 2018 22:42:47 -0800", "from btwcube1.sh.intel.com ([10.67.104.173])\n\tby fmsmga004.fm.intel.com with ESMTP; 05 Nov 2018 22:42:46 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,470,1534834800\"; d=\"scan'208\";a=\"103770650\"", "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, 6 Nov 2018 14:40:21 +0800", "Message-Id": "<20181106064022.21566-2-tiwei.bie@intel.com>", "X-Mailer": "git-send-email 2.19.1", "In-Reply-To": "<20181106064022.21566-1-tiwei.bie@intel.com>", "References": "<20181106064022.21566-1-tiwei.bie@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 1/2] vhost: fix IOVA access 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 apply for RO access when receiving packets from the\nVM and apply for RW access when sending packets to the VM.\n\nFixes: a922401f35cc (\"vhost: add Rx support for packed ring\")\nFixes: ae999ce49dcb (\"vhost: add Tx 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 | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c\nindex 8ad30c94a..5e1a1a727 100644\n--- a/lib/librte_vhost/virtio_net.c\n+++ b/lib/librte_vhost/virtio_net.c\n@@ -598,7 +598,7 @@ reserve_avail_buf_packed(struct virtio_net *dev, struct vhost_virtqueue *vq,\n \t\t\t\t\t\tavail_idx, &desc_count,\n \t\t\t\t\t\tbuf_vec, &vec_idx,\n \t\t\t\t\t\t&buf_id, &len,\n-\t\t\t\t\t\tVHOST_ACCESS_RO) < 0))\n+\t\t\t\t\t\tVHOST_ACCESS_RW) < 0))\n \t\t\treturn -1;\n \n \t\tlen = RTE_MIN(len, size);\n@@ -1503,7 +1503,7 @@ virtio_dev_tx_packed(struct virtio_net *dev, struct vhost_virtqueue *vq,\n \t\t\t\t\t\tvq->last_avail_idx, &desc_count,\n \t\t\t\t\t\tbuf_vec, &nr_vec,\n \t\t\t\t\t\t&buf_id, &dummy_len,\n-\t\t\t\t\t\tVHOST_ACCESS_RW) < 0))\n+\t\t\t\t\t\tVHOST_ACCESS_RO) < 0))\n \t\t\tbreak;\n \n \t\tif (likely(dev->dequeue_zero_copy == 0))\n", "prefixes": [ "1/2" ] }{ "id": 47879, "url": "