Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/94690/?format=api
https://patches.dpdk.org/api/patches/94690/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210623150014.1015484-3-wenwux.ma@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": "<20210623150014.1015484-3-wenwux.ma@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210623150014.1015484-3-wenwux.ma@intel.com", "date": "2021-06-23T15:00:12", "name": "[v3,2/4] examples/vhost: use a new API to query remaining ring space", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "902130f68c0f5484e95c03efd70b8d6c20db5ccd", "submitter": { "id": 2163, "url": "https://patches.dpdk.org/api/people/2163/?format=api", "name": "Ma, WenwuX", "email": "wenwux.ma@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/20210623150014.1015484-3-wenwux.ma@intel.com/mbox/", "series": [ { "id": 17447, "url": "https://patches.dpdk.org/api/series/17447/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17447", "date": "2021-06-23T15:00:10", "name": "vhost: support async dequeue for split ring", "version": 3, "mbox": "https://patches.dpdk.org/series/17447/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/94690/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/94690/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 2AF24A0C41;\n\tWed, 23 Jun 2021 05:07:20 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id ED58F40E5A;\n\tWed, 23 Jun 2021 05:07:13 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 815254003E\n for <dev@dpdk.org>; Wed, 23 Jun 2021 05:07:07 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Jun 2021 20:07:06 -0700", "from unknown (HELO localhost.localdomain) ([10.240.183.109])\n by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Jun 2021 20:07:05 -0700" ], "IronPort-SDR": [ "\n 5mZRQXkvg54F+8SFlG4JwXzjHbo5bvwAGcm+tNTrvRDitnr/AKuRoz96QN/l5bWCtjK6oXz62F\n wk1twdjxqq0g==", "\n aU5T8uETZ4/6j0FhmmQ+q/iYok6E9pX/lXSfq4fHva1afzUas43TTs8fLOCJyLC643l9D1jaq1\n Eg7QCeLBxYnw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10023\"; a=\"268322042\"", "E=Sophos;i=\"5.83,293,1616482800\"; d=\"scan'208\";a=\"268322042\"", "E=Sophos;i=\"5.83,293,1616482800\"; d=\"scan'208\";a=\"487141338\"" ], "From": "Wenwu Ma <wenwux.ma@intel.com>", "To": "dev@dpdk.org", "Cc": "maxime.coquelin@redhat.com, chenbo.xia@intel.com, cheng1.jiang@intel.com,\n Wenwu Ma <wenwux.ma@intel.com>", "Date": "Wed, 23 Jun 2021 15:00:12 +0000", "Message-Id": "<20210623150014.1015484-3-wenwux.ma@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210623150014.1015484-1-wenwux.ma@intel.com>", "References": "<20210602083110.5530-1-yuanx.wang@intel.com>\n <20210623150014.1015484-1-wenwux.ma@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 2/4] examples/vhost: use a new API to query\n remaining ring space", "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": "A new API for querying the remaining descriptor ring capacity\nis available, so we use the new one instead of the old one.\n\nSigned-off-by: Wenwu Ma <wenwux.ma@intel.com>\n---\n examples/vhost/ioat.c | 6 +-----\n 1 file changed, 1 insertion(+), 5 deletions(-)", "diff": "diff --git a/examples/vhost/ioat.c b/examples/vhost/ioat.c\nindex 2a2c2d7202..bf4e033bdb 100644\n--- a/examples/vhost/ioat.c\n+++ b/examples/vhost/ioat.c\n@@ -17,7 +17,6 @@ struct packet_tracker {\n \tunsigned short next_read;\n \tunsigned short next_write;\n \tunsigned short last_remain;\n-\tunsigned short ioat_space;\n };\n \n struct packet_tracker cb_tracker[MAX_VHOST_DEVICE];\n@@ -113,7 +112,6 @@ open_ioat(const char *value)\n \t\t\tgoto out;\n \t\t}\n \t\trte_rawdev_start(dev_id);\n-\t\tcb_tracker[dev_id].ioat_space = IOAT_RING_SIZE - 1;\n \t\tdma_info->nr++;\n \t\ti++;\n \t}\n@@ -140,7 +138,7 @@ ioat_transfer_data_cb(int vid, uint16_t queue_id,\n \t\t\tsrc = descs[i_desc].src;\n \t\t\tdst = descs[i_desc].dst;\n \t\t\ti_seg = 0;\n-\t\t\tif (cb_tracker[dev_id].ioat_space < src->nr_segs)\n+\t\t\tif (rte_ioat_burst_capacity(dev_id) < src->nr_segs)\n \t\t\t\tbreak;\n \t\t\twhile (i_seg < src->nr_segs) {\n \t\t\t\trte_ioat_enqueue_copy(dev_id,\n@@ -155,7 +153,6 @@ ioat_transfer_data_cb(int vid, uint16_t queue_id,\n \t\t\t}\n \t\t\twrite &= mask;\n \t\t\tcb_tracker[dev_id].size_track[write] = src->nr_segs;\n-\t\t\tcb_tracker[dev_id].ioat_space -= src->nr_segs;\n \t\t\twrite++;\n \t\t}\n \t} else {\n@@ -194,7 +191,6 @@ ioat_check_completed_copies_cb(int vid, uint16_t queue_id,\n \t\tif (n_seg == 0)\n \t\t\treturn 0;\n \n-\t\tcb_tracker[dev_id].ioat_space += n_seg;\n \t\tn_seg += cb_tracker[dev_id].last_remain;\n \n \t\tread = cb_tracker[dev_id].next_read;\n", "prefixes": [ "v3", "2/4" ] }{ "id": 94690, "url": "