get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 8435,
    "url": "https://patches.dpdk.org/api/patches/8435/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1446217733-9887-22-git-send-email-bernard.iremonger@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": "<1446217733-9887-22-git-send-email-bernard.iremonger@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1446217733-9887-22-git-send-email-bernard.iremonger@intel.com",
    "date": "2015-10-30T15:08:46",
    "name": "[dpdk-dev,v7,21/28] librte_ether: remove branches on pci_dev",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a89eb0ee904dc898ec724a5adc67de615fde2e36",
    "submitter": {
        "id": 91,
        "url": "https://patches.dpdk.org/api/people/91/?format=api",
        "name": "Iremonger, Bernard",
        "email": "bernard.iremonger@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1446217733-9887-22-git-send-email-bernard.iremonger@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/8435/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/8435/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 64C8B9582;\n\tFri, 30 Oct 2015 16:09:35 +0100 (CET)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id E75DF939C\n\tfor <dev@dpdk.org>; Fri, 30 Oct 2015 16:09:21 +0100 (CET)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga103.jf.intel.com with ESMTP; 30 Oct 2015 08:09:20 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby FMSMGA003.fm.intel.com with ESMTP; 30 Oct 2015 08:09:20 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tt9UF9JK9009335; Fri, 30 Oct 2015 15:09:19 GMT",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id t9UF9J7o010311;\n\tFri, 30 Oct 2015 15:09:19 GMT",
            "(from bairemon@localhost)\n\tby sivswdev01.ir.intel.com with  id t9UF9JrW010307;\n\tFri, 30 Oct 2015 15:09:19 GMT"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,219,1444719600\"; d=\"scan'208\";a=\"591062693\"",
        "From": "Bernard Iremonger <bernard.iremonger@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 30 Oct 2015 15:08:46 +0000",
        "Message-Id": "<1446217733-9887-22-git-send-email-bernard.iremonger@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1446217733-9887-1-git-send-email-bernard.iremonger@intel.com>",
        "References": "<PATCH v7>\n\t<1446217733-9887-1-git-send-email-bernard.iremonger@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v7 21/28] librte_ether: remove branches on pci_dev",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "use dev_type to distinguish between vdev's and pdev's.\nremove pci_dev branches.\nupdate release notes.\n\nSigned-off-by: Bernard Iremonger <bernard.iremonger@intel.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n doc/guides/rel_notes/release_2_2.rst |  4 ++++\n lib/librte_ether/rte_ethdev.c        | 40 +++++++++++++++---------------------\n 2 files changed, 21 insertions(+), 23 deletions(-)",
    "diff": "diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst\nindex 89e4d58..d367580 100644\n--- a/doc/guides/rel_notes/release_2_2.rst\n+++ b/doc/guides/rel_notes/release_2_2.rst\n@@ -31,6 +31,10 @@ New Features\n \n * **Added vhost-user multiple queue support.**\n \n+* **Removed the PCI device from vdev PMD's.**\n+\n+  * This change required modifications to librte_ether and all vdev and pdev PMD's.\n+\n Resolved Issues\n ---------------\n \ndiff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex ce1d000..2fce370 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -424,7 +424,7 @@ rte_eth_dev_socket_id(uint8_t port_id)\n {\n \tif (!rte_eth_dev_is_valid_port(port_id))\n \t\treturn -1;\n-\treturn rte_eth_devices[port_id].pci_dev->numa_node;\n+\treturn rte_eth_devices[port_id].data->numa_node;\n }\n \n uint8_t\n@@ -503,27 +503,25 @@ rte_eth_dev_get_name_by_port(uint8_t port_id, char *name)\n static int\n rte_eth_dev_is_detachable(uint8_t port_id)\n {\n-\tuint32_t drv_flags;\n+\tuint32_t dev_flags;\n \n \tif (!rte_eth_dev_is_valid_port(port_id)) {\n \t\tPMD_DEBUG_TRACE(\"Invalid port_id=%d\\n\", port_id);\n \t\treturn -EINVAL;\n \t}\n \n-\tif (rte_eth_devices[port_id].dev_type == RTE_ETH_DEV_PCI) {\n-\t\tswitch (rte_eth_devices[port_id].pci_dev->kdrv) {\n-\t\tcase RTE_KDRV_IGB_UIO:\n-\t\tcase RTE_KDRV_UIO_GENERIC:\n-\t\tcase RTE_KDRV_NIC_UIO:\n-\t\t\tbreak;\n-\t\tcase RTE_KDRV_VFIO:\n-\t\tdefault:\n-\t\t\treturn -ENOTSUP;\n-\t\t}\n+\tswitch (rte_eth_devices[port_id].data->kdrv) {\n+\tcase RTE_KDRV_IGB_UIO:\n+\tcase RTE_KDRV_UIO_GENERIC:\n+\tcase RTE_KDRV_NIC_UIO:\n+\tcase RTE_KDRV_NONE:\n+\t\tbreak;\n+\tcase RTE_KDRV_VFIO:\n+\tdefault:\n+\t\treturn -ENOTSUP;\n \t}\n-\n-\tdrv_flags = rte_eth_devices[port_id].driver->pci_drv.drv_flags;\n-\treturn !(drv_flags & RTE_PCI_DRV_DETACHABLE);\n+\tdev_flags = rte_eth_devices[port_id].data->dev_flags;\n+\treturn !(dev_flags & RTE_ETH_DEV_DETACHABLE);\n }\n \n /* attach the new physical device, then store port_id of the device */\n@@ -1143,14 +1141,11 @@ rte_eth_dev_configure(uint8_t port_id, uint16_t nb_rx_q, uint16_t nb_tx_q,\n \t * If link state interrupt is enabled, check that the\n \t * device supports it.\n \t */\n-\tif (dev_conf->intr_conf.lsc == 1) {\n-\t\tconst struct rte_pci_driver *pci_drv = &dev->driver->pci_drv;\n-\n-\t\tif (!(pci_drv->drv_flags & RTE_PCI_DRV_INTR_LSC)) {\n+\tif ((dev_conf->intr_conf.lsc == 1) &&\n+\t\t(!(dev->data->dev_flags & RTE_ETH_DEV_INTR_LSC))) {\n \t\t\tPMD_DEBUG_TRACE(\"driver %s does not support lsc\\n\",\n-\t\t\t\t\tpci_drv->name);\n+\t\t\t\t\tdev->data->drv_name);\n \t\t\treturn -EINVAL;\n-\t\t}\n \t}\n \n \t/*\n@@ -1795,8 +1790,7 @@ rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info)\n \tFUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get);\n \t(*dev->dev_ops->dev_infos_get)(dev, dev_info);\n \tdev_info->pci_dev = dev->pci_dev;\n-\tif (dev->driver)\n-\t\tdev_info->driver_name = dev->driver->pci_drv.name;\n+\tdev_info->driver_name = dev->data->drv_name;\n }\n \n void\n",
    "prefixes": [
        "dpdk-dev",
        "v7",
        "21/28"
    ]
}