Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/89328/?format=api
https://patches.dpdk.org/api/patches/89328/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1615985773-406787-5-git-send-email-jiayu.hu@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": "<1615985773-406787-5-git-send-email-jiayu.hu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1615985773-406787-5-git-send-email-jiayu.hu@intel.com", "date": "2021-03-17T12:56:13", "name": "[4/4] doc: update async vhost register/unregister", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "df4831466fd37b9e0d51260801bae50d2038ec2f", "submitter": { "id": 539, "url": "https://patches.dpdk.org/api/people/539/?format=api", "name": "Hu, Jiayu", "email": "jiayu.hu@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/1615985773-406787-5-git-send-email-jiayu.hu@intel.com/mbox/", "series": [ { "id": 15722, "url": "https://patches.dpdk.org/api/series/15722/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15722", "date": "2021-03-17T12:56:09", "name": "Refactor async vhost control path", "version": 1, "mbox": "https://patches.dpdk.org/series/15722/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/89328/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/89328/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 412E4A00C2;\n\tWed, 17 Mar 2021 07:26:54 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 80B53242B15;\n\tWed, 17 Mar 2021 07:26:34 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 43945242B0D\n for <dev@dpdk.org>; Wed, 17 Mar 2021 07:26:32 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Mar 2021 23:26:31 -0700", "from npg_dpdk_virtio_jiayuhu_07.sh.intel.com ([10.67.118.193])\n by fmsmga004.fm.intel.com with ESMTP; 16 Mar 2021 23:26:30 -0700" ], "IronPort-SDR": [ "\n BnmVzIQLlPSykS9G0Jgadk23u4F4m54Vk3CZ/lp+I9qWmuvdrQaCVf2alFCb0KsyAydBrdwtLF\n eiGblIbVcW7A==", "\n CifljjufdVE212hhEsIKQ0h2tjLKdcff5BRRLGakQ0yRc2jhc51mMVx3YU3LBUHl2BcPzCHKaB\n 4XY4ofZeNLfQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9925\"; a=\"186041220\"", "E=Sophos;i=\"5.81,255,1610438400\"; d=\"scan'208\";a=\"186041220\"", "E=Sophos;i=\"5.81,255,1610438400\"; d=\"scan'208\";a=\"433282934\"" ], "X-ExtLoop1": "1", "From": "Jiayu Hu <jiayu.hu@intel.com>", "To": "dev@dpdk.org", "Cc": "maxime.coquelin@redhat.com, chenbo.xia@intel.com, yinan.wang@intel.com,\n cheng1.jiang@intel.com, sunil.pai.g@intel.com,\n Jiayu Hu <jiayu.hu@intel.com>", "Date": "Wed, 17 Mar 2021 08:56:13 -0400", "Message-Id": "<1615985773-406787-5-git-send-email-jiayu.hu@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1615985773-406787-1-git-send-email-jiayu.hu@intel.com>", "References": "<1615985773-406787-1-git-send-email-jiayu.hu@intel.com>", "Subject": "[dpdk-dev] [PATCH 4/4] doc: update async vhost register/unregister", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>\n---\n doc/guides/prog_guide/vhost_lib.rst | 13 ++++++++++---\n 1 file changed, 10 insertions(+), 3 deletions(-)", "diff": "diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst\nindex dc29229..333bd0a 100644\n--- a/doc/guides/prog_guide/vhost_lib.rst\n+++ b/doc/guides/prog_guide/vhost_lib.rst\n@@ -208,9 +208,9 @@ The following is an overview of some key Vhost API functions:\n \n * ``rte_vhost_async_channel_register(vid, queue_id, features, ops)``\n \n- Register a vhost queue with async copy device channel.\n- Following device ``features`` must be specified together with the\n- registration:\n+ Register a vhost queue with async copy device channel after vring\n+ is enabled. Following device ``features`` must be specified together\n+ with the registration:\n \n * ``async_inorder``\n \n@@ -244,6 +244,13 @@ The following is an overview of some key Vhost API functions:\n * ``rte_vhost_async_channel_unregister(vid, queue_id)``\n \n Unregister the async copy device channel from a vhost queue.\n+ Unregistration will fail, if the vhost queue has in-flight\n+ packets that are not completed.\n+\n+ To guarantee correct behaviors, users must unregister async\n+ copy devices for all vhost queues, when virtio device is paused\n+ or shut down. Note that this API tries to acquire the spinlock\n+ of vhost queue, so users need stop polling thread before unregister.\n \n * ``rte_vhost_submit_enqueue_burst(vid, queue_id, pkts, count, comp_pkts, comp_count)``\n \n", "prefixes": [ "4/4" ] }{ "id": 89328, "url": "