Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/51325/?format=api
http://patchwork.dpdk.org/api/patches/51325/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20190319064312.13743-9-tiwei.bie@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20190319064312.13743-9-tiwei.bie@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190319064312.13743-9-tiwei.bie@intel.com", "date": "2019-03-19T06:43:10", "name": "[08/10] net/virtio: add interrupt helper for split ring", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "e44543b46af45875c42d549731c929a41ae2cf56", "submitter": { "id": 617, "url": "http://patchwork.dpdk.org/api/people/617/?format=api", "name": "Tiwei Bie", "email": "tiwei.bie@intel.com" }, "delegate": { "id": 2642, "url": "http://patchwork.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20190319064312.13743-9-tiwei.bie@intel.com/mbox/", "series": [ { "id": 3795, "url": "http://patchwork.dpdk.org/api/series/3795/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=3795", "date": "2019-03-19T06:43:02", "name": "net/virtio: cleanups and fixes for packed/split ring", "version": 1, "mbox": "http://patchwork.dpdk.org/series/3795/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/51325/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/51325/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 0855C5681;\n\tTue, 19 Mar 2019 07:43:59 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 9EFDD4C93\n\tfor <dev@dpdk.org>; Tue, 19 Mar 2019 07:43:43 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Mar 2019 23:43:43 -0700", "from dpdk-tbie.sh.intel.com ([10.67.104.173])\n\tby orsmga007.jf.intel.com with ESMTP; 18 Mar 2019 23:43:42 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.58,496,1544515200\"; d=\"scan'208\";a=\"123847072\"", "From": "Tiwei Bie <tiwei.bie@intel.com>", "To": "maxime.coquelin@redhat.com,\n\tzhihong.wang@intel.com,\n\tdev@dpdk.org", "Date": "Tue, 19 Mar 2019 14:43:10 +0800", "Message-Id": "<20190319064312.13743-9-tiwei.bie@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190319064312.13743-1-tiwei.bie@intel.com>", "References": "<20190319064312.13743-1-tiwei.bie@intel.com>", "Subject": "[dpdk-dev] [PATCH 08/10] net/virtio: add interrupt helper for split\n\tring", "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": "Add a helper for disabling interrupts in split ring to make the\ncode consistent with the corresponding code in packed ring.\n\nSigned-off-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n drivers/net/virtio/virtqueue.h | 13 +++++++++++--\n 1 file changed, 11 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h\nindex 6dab7db8e..5cea7cb4a 100644\n--- a/drivers/net/virtio/virtqueue.h\n+++ b/drivers/net/virtio/virtqueue.h\n@@ -317,7 +317,7 @@ vring_desc_init_split(struct vring_desc *dp, uint16_t n)\n }\n \n /**\n- * Tell the backend not to interrupt us.\n+ * Tell the backend not to interrupt us. Implementation for packed virtqueues.\n */\n static inline void\n virtqueue_disable_intr_packed(struct virtqueue *vq)\n@@ -329,6 +329,15 @@ virtqueue_disable_intr_packed(struct virtqueue *vq)\n \t}\n }\n \n+/**\n+ * Tell the backend not to interrupt us. Implementation for split virtqueues.\n+ */\n+static inline void\n+virtqueue_disable_intr_split(struct virtqueue *vq)\n+{\n+\tvq->vq_split.ring.avail->flags |= VRING_AVAIL_F_NO_INTERRUPT;\n+}\n+\n /**\n * Tell the backend not to interrupt us.\n */\n@@ -338,7 +347,7 @@ virtqueue_disable_intr(struct virtqueue *vq)\n \tif (vtpci_packed_queue(vq->hw))\n \t\tvirtqueue_disable_intr_packed(vq);\n \telse\n-\t\tvq->vq_split.ring.avail->flags |= VRING_AVAIL_F_NO_INTERRUPT;\n+\t\tvirtqueue_disable_intr_split(vq);\n }\n \n /**\n", "prefixes": [ "08/10" ] }{ "id": 51325, "url": "