Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72244/?format=api
http://patches.dpdk.org/api/patches/72244/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200626132712.1437673-14-maxime.coquelin@redhat.com/", "project": { "id": 1, "url": "http://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": "<20200626132712.1437673-14-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200626132712.1437673-14-maxime.coquelin@redhat.com", "date": "2020-06-26T13:27:11", "name": "[v3,13/14] vhost: remove vDPA device count API", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "110d03a155c74754e80b4192496047fc876da8a7", "submitter": { "id": 512, "url": "http://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200626132712.1437673-14-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 10633, "url": "http://patches.dpdk.org/api/series/10633/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10633", "date": "2020-06-26T13:26:58", "name": "vDPA API and framework rework", "version": 3, "mbox": "http://patches.dpdk.org/series/10633/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/72244/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/72244/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BCA0AA051C;\n\tFri, 26 Jun 2020 15:30:08 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 483F81C025;\n\tFri, 26 Jun 2020 15:29:15 +0200 (CEST)", "from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com\n [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 973CB1BFBF\n for <dev@dpdk.org>; Fri, 26 Jun 2020 15:29:08 +0200 (CEST)", "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-273-ZyR39N8BOB-xDq2WnrYaSw-1; Fri, 26 Jun 2020 09:29:05 -0400", "from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com\n [10.5.11.16])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 959F8BFC1;\n Fri, 26 Jun 2020 13:29:03 +0000 (UTC)", "from localhost.localdomain (unknown [10.36.110.7])\n by smtp.corp.redhat.com (Postfix) with ESMTP id A6C845C663;\n Fri, 26 Jun 2020 13:28:57 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1593178148;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=xki9dVhWb7WngqNBmT7hyuueD0g2bJqR/0oiKCk5EvY=;\n b=Pzcc8uBK6TLU6VIZ87rmjg7nH3XRViVHnLKKtViRpPMzFbBq1NY3rv5Vnxv4Dn8ezsrYDg\n 6mKZH5daqqRgZZY9b0j+k6SOdZmlo7I2pe25gGLQWqTec22+qqObqmH51u1/JjRw68RRUq\n 8YaXs2ABay9tdwm3chp3qry8UKQWJlY=", "X-MC-Unique": "ZyR39N8BOB-xDq2WnrYaSw-1", "From": "Maxime Coquelin <maxime.coquelin@redhat.com>", "To": "matan@mellanox.com, xiao.w.wang@intel.com, zhihong.wang@intel.com,\n chenbo.xia@intel.com, david.marchand@redhat.com, amorenoz@redhat.com,\n viacheslavo@mellanox.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com,\n grive@u256.net, dev@dpdk.org", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>", "Date": "Fri, 26 Jun 2020 15:27:11 +0200", "Message-Id": "<20200626132712.1437673-14-maxime.coquelin@redhat.com>", "In-Reply-To": "<20200626132712.1437673-1-maxime.coquelin@redhat.com>", "References": "<20200626132712.1437673-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.16", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 13/14] vhost: remove vDPA device count API", "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 <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": "This API is no more useful, this patch removes it.\n\nAcked-by: Adrián Moreno <amorenoz@redhat.com>\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n lib/librte_vhost/rte_vdpa.h | 13 -------------\n lib/librte_vhost/rte_vhost_version.map | 1 -\n lib/librte_vhost/vdpa.c | 9 ---------\n 3 files changed, 23 deletions(-)", "diff": "diff --git a/lib/librte_vhost/rte_vdpa.h b/lib/librte_vhost/rte_vdpa.h\nindex eda56dd556..776ed67c16 100644\n--- a/lib/librte_vhost/rte_vdpa.h\n+++ b/lib/librte_vhost/rte_vdpa.h\n@@ -175,19 +175,6 @@ __rte_experimental\n struct rte_device *\n rte_vdpa_get_rte_device(struct rte_vdpa_device *vdpa_dev);\n \n-/**\n- * @warning\n- * @b EXPERIMENTAL: this API may change without prior notice\n- *\n- * Get current available vdpa device number\n- *\n- * @return\n- * available vdpa device number\n- */\n-__rte_experimental\n-int\n-rte_vdpa_get_device_num(void);\n-\n /**\n * @warning\n * @b EXPERIMENTAL: this API may change without prior notice\ndiff --git a/lib/librte_vhost/rte_vhost_version.map b/lib/librte_vhost/rte_vhost_version.map\nindex 7a919102cf..299576a494 100644\n--- a/lib/librte_vhost/rte_vhost_version.map\n+++ b/lib/librte_vhost/rte_vhost_version.map\n@@ -36,7 +36,6 @@ EXPERIMENTAL {\n \trte_vdpa_register_device;\n \trte_vdpa_unregister_device;\n \trte_vdpa_find_device_id;\n-\trte_vdpa_get_device_num;\n \trte_vdpa_get_stats_names;\n \trte_vdpa_get_stats;\n \trte_vdpa_reset_stats;\ndiff --git a/lib/librte_vhost/vdpa.c b/lib/librte_vhost/vdpa.c\nindex 66fa5a0728..edf6bb6116 100644\n--- a/lib/librte_vhost/vdpa.c\n+++ b/lib/librte_vhost/vdpa.c\n@@ -25,7 +25,6 @@ TAILQ_HEAD(vdpa_device_list, rte_vdpa_device);\n static struct vdpa_device_list vdpa_device_list =\n \t\tTAILQ_HEAD_INITIALIZER(vdpa_device_list);\n static rte_spinlock_t vdpa_device_list_lock = RTE_SPINLOCK_INITIALIZER;\n-static uint32_t vdpa_device_num;\n \n \n /* Unsafe, needs to be called with vdpa_device_list_lock held */\n@@ -92,7 +91,6 @@ rte_vdpa_register_device(struct rte_device *rte_dev,\n \tdev->device = rte_dev;\n \tdev->ops = ops;\n \tTAILQ_INSERT_TAIL(&vdpa_device_list, dev, next);\n-\tvdpa_device_num++;\n out_unlock:\n \trte_spinlock_unlock(&vdpa_device_list_lock);\n \n@@ -112,7 +110,6 @@ rte_vdpa_unregister_device(struct rte_vdpa_device *dev)\n \n \t\tTAILQ_REMOVE(&vdpa_device_list, dev, next);\n \t\trte_free(dev);\n-\t\tvdpa_device_num--;\n \t\tret = 0;\n \t\tbreak;\n \t}\n@@ -121,12 +118,6 @@ rte_vdpa_unregister_device(struct rte_vdpa_device *dev)\n \treturn ret;\n }\n \n-int\n-rte_vdpa_get_device_num(void)\n-{\n-\treturn vdpa_device_num;\n-}\n-\n int\n rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m)\n {\n", "prefixes": [ "v3", "13/14" ] }{ "id": 72244, "url": "