get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 67204,
    "url": "https://patches.dpdk.org/api/patches/67204/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200326141422.20264-1-maxime.coquelin@redhat.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": "<20200326141422.20264-1-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200326141422.20264-1-maxime.coquelin@redhat.com",
    "date": "2020-03-26T14:14:22",
    "name": "vhost: prefix vDPA enum value for PCI address type",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "901db68f9206a637283bf5533d7a783c30a4434c",
    "submitter": {
        "id": 512,
        "url": "https://patches.dpdk.org/api/people/512/?format=api",
        "name": "Maxime Coquelin",
        "email": "maxime.coquelin@redhat.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/20200326141422.20264-1-maxime.coquelin@redhat.com/mbox/",
    "series": [
        {
            "id": 9064,
            "url": "https://patches.dpdk.org/api/series/9064/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9064",
            "date": "2020-03-26T14:14:22",
            "name": "vhost: prefix vDPA enum value for PCI address type",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/9064/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/67204/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/67204/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 9232DA057C;\n\tThu, 26 Mar 2020 15:14:37 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E06CE2C15;\n\tThu, 26 Mar 2020 15:14:36 +0100 (CET)",
            "from us-smtp-delivery-74.mimecast.com\n (us-smtp-delivery-74.mimecast.com [63.128.21.74])\n by dpdk.org (Postfix) with ESMTP id 1B82B2BAE\n for <dev@dpdk.org>; Thu, 26 Mar 2020 15:14:34 +0100 (CET)",
            "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-494-_eC7o-ytOXaB1J-0ILmoHQ-1; Thu, 26 Mar 2020 10:14:32 -0400",
            "from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com\n [10.5.11.23])\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 8218818CA241;\n Thu, 26 Mar 2020 14:14:31 +0000 (UTC)",
            "from localhost.localdomain (unknown [10.36.110.23])\n by smtp.corp.redhat.com (Postfix) with ESMTP id CFC2119C70;\n Thu, 26 Mar 2020 14:14:26 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1585232074;\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 bh=/ULdaAVO4CaEjVcPQUajJDQPoL/Z4ohGb4dxAfg6DPE=;\n b=irGWWLTEoh74uGPsxuaCqkZQfvGV7n9aRVeL9IiWCuOYYH0gSIuM+OLazv8b+7xOjXCw+a\n olhUFsZz0Cls69NNz/7t460NOJon5wELWHg6x8bA3YbXG2gkR/QNabffJ2VQr/m6X3aP1m\n uxAYE0pq+DA7KBYogL+ningmd3C3b2I=",
        "X-MC-Unique": "_eC7o-ytOXaB1J-0ILmoHQ-1",
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "dev@dpdk.org, xiaolong.ye@intel.com, zhihong.wang@intel.com,\n viacheslavo@mellanox.com, matan@mellanox.com, xiao.w.wang@intel.com",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "Date": "Thu, 26 Mar 2020 15:14:22 +0100",
        "Message-Id": "<20200326141422.20264-1-maxime.coquelin@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.23",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain; charset=US-ASCII",
        "Content-Transfer-Encoding": "quoted-printable",
        "Subject": "[dpdk-dev] [PATCH] vhost: prefix vDPA enum value for PCI address\n\ttype",
        "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": "In order to avoid potential conflicts, rename the PCI_ADDR\nenum value to VDPA_ADDR_PCI in vdpa_addr_type_enum.\n\nAll symbols referencing this enum are experimental, so it\ndoes not break API policy.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n drivers/vdpa/ifc/ifcvf_vdpa.c | 2 +-\n drivers/vdpa/mlx5/mlx5_vdpa.c | 2 +-\n examples/vdpa/main.c          | 2 +-\n lib/librte_vhost/rte_vdpa.h   | 2 +-\n lib/librte_vhost/vdpa.c       | 2 +-\n 5 files changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c\nindex da4667ba5..ec97178dc 100644\n--- a/drivers/vdpa/ifc/ifcvf_vdpa.c\n+++ b/drivers/vdpa/ifc/ifcvf_vdpa.c\n@@ -1177,7 +1177,7 @@ ifcvf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t\t(1ULL << VHOST_F_LOG_ALL);\n \n \tinternal->dev_addr.pci_addr = pci_dev->addr;\n-\tinternal->dev_addr.type = PCI_ADDR;\n+\tinternal->dev_addr.type = VDPA_ADDR_PCI;\n \tlist->internal = internal;\n \n \tif (rte_kvargs_count(kvlist, IFCVF_SW_FALLBACK_LM)) {\ndiff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c\nindex 97d914a47..0a9f31a87 100644\n--- a/drivers/vdpa/mlx5/mlx5_vdpa.c\n+++ b/drivers/vdpa/mlx5/mlx5_vdpa.c\n@@ -446,7 +446,7 @@ mlx5_vdpa_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t}\n \tpriv->ctx = ctx;\n \tpriv->dev_addr.pci_addr = pci_dev->addr;\n-\tpriv->dev_addr.type = PCI_ADDR;\n+\tpriv->dev_addr.type = VDPA_ADDR_PCI;\n \tpriv->id = rte_vdpa_register_device(&priv->dev_addr, &mlx5_vdpa_ops);\n \tif (priv->id < 0) {\n \t\tDRV_LOG(ERR, \"Failed to register vDPA device.\");\ndiff --git a/examples/vdpa/main.c b/examples/vdpa/main.c\nindex d2e2cb7cd..78d72634b 100644\n--- a/examples/vdpa/main.c\n+++ b/examples/vdpa/main.c\n@@ -331,7 +331,7 @@ static void cmd_create_vdpa_port_parsed(void *parsed_result,\n \t\tcmdline_printf(cl, \"Unable to parse the given bdf.\\n\");\n \t\treturn;\n \t}\n-\taddr.type = PCI_ADDR;\n+\taddr.type = VDPA_ADDR_PCI;\n \tdid = rte_vdpa_find_device_id(&addr);\n \tif (did < 0) {\n \t\tcmdline_printf(cl, \"Unable to find vdpa device id.\\n\");\ndiff --git a/lib/librte_vhost/rte_vdpa.h b/lib/librte_vhost/rte_vdpa.h\nindex 9a3deb31d..3c400ee79 100644\n--- a/lib/librte_vhost/rte_vdpa.h\n+++ b/lib/librte_vhost/rte_vdpa.h\n@@ -19,7 +19,7 @@\n #define MAX_VDPA_NAME_LEN 128\n \n enum vdpa_addr_type {\n-\tPCI_ADDR,\n+\tVDPA_ADDR_PCI,\n \tVDPA_ADDR_MAX\n };\n \ndiff --git a/lib/librte_vhost/vdpa.c b/lib/librte_vhost/vdpa.c\nindex 2b8670873..b2b2a105f 100644\n--- a/lib/librte_vhost/vdpa.c\n+++ b/lib/librte_vhost/vdpa.c\n@@ -27,7 +27,7 @@ is_same_vdpa_device(struct rte_vdpa_dev_addr *a,\n \t\treturn false;\n \n \tswitch (a->type) {\n-\tcase PCI_ADDR:\n+\tcase VDPA_ADDR_PCI:\n \t\tif (a->pci_addr.domain != b->pci_addr.domain ||\n \t\t\t\ta->pci_addr.bus != b->pci_addr.bus ||\n \t\t\t\ta->pci_addr.devid != b->pci_addr.devid ||\n",
    "prefixes": []
}