get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/72259/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 72259,
    "url": "http://patches.dpdk.org/api/patches/72259/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200626140441.1441763-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": "<20200626140441.1441763-14-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200626140441.1441763-14-maxime.coquelin@redhat.com",
    "date": "2020-06-26T14:04:40",
    "name": "[v3,13/14] vhost: remove vDPA device count API",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200626140441.1441763-14-maxime.coquelin@redhat.com/mbox/",
    "series": [
        {
            "id": 10634,
            "url": "http://patches.dpdk.org/api/series/10634/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10634",
            "date": "2020-06-26T14:04:28",
            "name": "vDPA API and framework rework",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/10634/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/72259/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/72259/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 89D96A051C;\n\tFri, 26 Jun 2020 16:08:01 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0D90E1C01B;\n\tFri, 26 Jun 2020 16:06:32 +0200 (CEST)",
            "from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com\n [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id CC0111BFC3\n for <dev@dpdk.org>; Fri, 26 Jun 2020 16:06:30 +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-384-bF2f5fmRMTOPuDgdKpov2Q-1; Fri, 26 Jun 2020 10:06:23 -0400",
            "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com\n [10.5.11.15])\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 D9783107ACF7;\n Fri, 26 Jun 2020 14:06:21 +0000 (UTC)",
            "from localhost.localdomain (unknown [10.36.110.7])\n by smtp.corp.redhat.com (Postfix) with ESMTP id EE7F95BAE1;\n Fri, 26 Jun 2020 14:06:18 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1593180390;\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=aWIlol7MEDPlqSYPOShjpFbfzuF6vOwJdASgPivRwKw=;\n b=HJmAoEylNU5IStEmbpwOh/xpLkbNRAQqnY9FVi3fN/ho4dBN7A/2bvl940verjfzZHffwW\n bqKl35D92fbsrTeVrQ5wqgolJF0rvbOsStojoQLoJ9HPOjizJ6GtUN4bokag5rYGm0uXys\n SW3nsgCWJj0cWUZwrCXrRrV78aCX6+g=",
        "X-MC-Unique": "bF2f5fmRMTOPuDgdKpov2Q-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 16:04:40 +0200",
        "Message-Id": "<20200626140441.1441763-14-maxime.coquelin@redhat.com>",
        "In-Reply-To": "<20200626140441.1441763-1-maxime.coquelin@redhat.com>",
        "References": "<20200626140441.1441763-1-maxime.coquelin@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15",
        "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 8810bf3b36..e41c73eb9a 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"
    ]
}