get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87295,
    "url": "https://patches.dpdk.org/api/patches/87295/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210126101639.250481-8-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": "<20210126101639.250481-8-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210126101639.250481-8-maxime.coquelin@redhat.com",
    "date": "2021-01-26T10:16:02",
    "name": "[v4,07/44] net/virtio: move PCI device init in dedicated file",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "83d8f9717c6f88dcc872cec05fe9ef0eb0021934",
    "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/20210126101639.250481-8-maxime.coquelin@redhat.com/mbox/",
    "series": [
        {
            "id": 14950,
            "url": "https://patches.dpdk.org/api/series/14950/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14950",
            "date": "2021-01-26T10:15:55",
            "name": "net/virtio: Virtio PMD rework",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/14950/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87295/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/87295/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 F3CF5A052A;\n\tTue, 26 Jan 2021 11:17:59 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 00DD3141328;\n\tTue, 26 Jan 2021 11:17:16 +0100 (CET)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [63.128.21.124])\n by mails.dpdk.org (Postfix) with ESMTP id BEF0F14131F\n for <dev@dpdk.org>; Tue, 26 Jan 2021 11:17:14 +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-534-JzeacteNNx63oX1bdxsIQw-1; Tue, 26 Jan 2021 05:17:12 -0500",
            "from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com\n [10.5.11.11])\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 1AF45100C60F;\n Tue, 26 Jan 2021 10:17:11 +0000 (UTC)",
            "from max-t490s.redhat.com (unknown [10.36.110.31])\n by smtp.corp.redhat.com (Postfix) with ESMTP id EADD46F45C;\n Tue, 26 Jan 2021 10:17:01 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1611656234;\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=B1JQCVRMzHTViTnJbyH0vrITgY04vgiXtgUBE1By888=;\n b=Sx8sAP53FcaMU+3Xg68MXCGfAbYXXPTpw5Nr2N7q0U40O88GgKnDlNhA2h3y//Fx1BcCrM\n QXl36TH18mhfj1Y9mk2/7embToCn/KC/HOMDsZFK/cDO+V+aiBGktGQD4cK1xU8q0LHpTD\n wRsfDPThTtH17tquKy1guTEdZobJrg8=",
        "X-MC-Unique": "JzeacteNNx63oX1bdxsIQw-1",
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "dev@dpdk.org, chenbo.xia@intel.com, olivier.matz@6wind.com,\n amorenoz@redhat.com, david.marchand@redhat.com",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "Date": "Tue, 26 Jan 2021 11:16:02 +0100",
        "Message-Id": "<20210126101639.250481-8-maxime.coquelin@redhat.com>",
        "In-Reply-To": "<20210126101639.250481-1-maxime.coquelin@redhat.com>",
        "References": "<20210126101639.250481-1-maxime.coquelin@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"",
        "Subject": "[dpdk-dev] [PATCH v4 07/44] net/virtio: move PCI device init in\n dedicated file",
        "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": "This patch moves the PCI Ethernet device registration bits\nin a dedicated patch. In following patches, more code will\nbe moved there, with the goal of making virtio_ethdev.c\ntruly bus-agnostic.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\nReviewed-by: Chenbo Xia <chenbo.xia@intel.com>\n---\n drivers/net/virtio/meson.build         |   1 +\n drivers/net/virtio/virtio_ethdev.c     | 117 +------------------\n drivers/net/virtio/virtio_ethdev.h     |   2 +\n drivers/net/virtio/virtio_pci_ethdev.c | 149 +++++++++++++++++++++++++\n 4 files changed, 157 insertions(+), 112 deletions(-)\n create mode 100644 drivers/net/virtio/virtio_pci_ethdev.c",
    "diff": "diff --git a/drivers/net/virtio/meson.build b/drivers/net/virtio/meson.build\nindex 0e78d1243b..07e085376b 100644\n--- a/drivers/net/virtio/meson.build\n+++ b/drivers/net/virtio/meson.build\n@@ -8,6 +8,7 @@ if is_windows\n endif\n \n sources += files('virtio_ethdev.c',\n+\t'virtio_pci_ethdev.c',\n \t'virtio_pci.c',\n \t'virtio_rxtx.c',\n \t'virtio_rxtx_simple.c',\ndiff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex aafba15ac2..ad7e9efd5f 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -38,17 +38,14 @@\n #include \"virtio_rxtx.h\"\n #include \"virtio_user/virtio_user_dev.h\"\n \n-static int eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev);\n static int  virtio_dev_configure(struct rte_eth_dev *dev);\n static int  virtio_dev_start(struct rte_eth_dev *dev);\n-static int  virtio_dev_stop(struct rte_eth_dev *dev);\n static int virtio_dev_promiscuous_enable(struct rte_eth_dev *dev);\n static int virtio_dev_promiscuous_disable(struct rte_eth_dev *dev);\n static int virtio_dev_allmulticast_enable(struct rte_eth_dev *dev);\n static int virtio_dev_allmulticast_disable(struct rte_eth_dev *dev);\n static uint32_t virtio_dev_speed_capa_get(uint32_t speed);\n static int virtio_dev_devargs_parse(struct rte_devargs *devargs,\n-\tint *vdpa,\n \tuint32_t *speed,\n \tint *vectorized);\n static int virtio_dev_info_get(struct rte_eth_dev *dev,\n@@ -89,15 +86,6 @@ static int virtio_dev_queue_stats_mapping_set(\n static void virtio_notify_peers(struct rte_eth_dev *dev);\n static void virtio_ack_link_announce(struct rte_eth_dev *dev);\n \n-/*\n- * The set of PCI devices this driver supports\n- */\n-static const struct rte_pci_id pci_id_virtio_map[] = {\n-\t{ RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_LEGACY_DEVICEID_NET) },\n-\t{ RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_MODERN_DEVICEID_NET) },\n-\t{ .vendor_id = 0, /* sentinel */ },\n-};\n-\n struct rte_virtio_xstats_name_off {\n \tchar name[RTE_ETH_XSTATS_NAME_SIZE];\n \tunsigned offset;\n@@ -714,7 +702,7 @@ virtio_alloc_queues(struct rte_eth_dev *dev)\n \n static void virtio_queues_unbind_intr(struct rte_eth_dev *dev);\n \n-static int\n+int\n virtio_dev_close(struct rte_eth_dev *dev)\n {\n \tstruct virtio_hw *hw = dev->data->dev_private;\n@@ -1932,8 +1920,7 @@ eth_virtio_dev_init(struct rte_eth_dev *eth_dev)\n \n \t\treturn 0;\n \t}\n-\tret = virtio_dev_devargs_parse(eth_dev->device->devargs,\n-\t\t NULL, &speed, &vectorized);\n+\tret = virtio_dev_devargs_parse(eth_dev->device->devargs, &speed, &vectorized);\n \tif (ret < 0)\n \t\treturn ret;\n \thw->speed = speed;\n@@ -1995,36 +1982,6 @@ eth_virtio_dev_init(struct rte_eth_dev *eth_dev)\n \treturn ret;\n }\n \n-static int\n-eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev)\n-{\n-\tint ret;\n-\tPMD_INIT_FUNC_TRACE();\n-\n-\tif (rte_eal_process_type() == RTE_PROC_SECONDARY)\n-\t\treturn 0;\n-\n-\tret = virtio_dev_stop(eth_dev);\n-\tvirtio_dev_close(eth_dev);\n-\n-\tPMD_INIT_LOG(DEBUG, \"dev_uninit completed\");\n-\n-\treturn ret;\n-}\n-\n-\n-static int vdpa_check_handler(__rte_unused const char *key,\n-\t\tconst char *value, void *ret_val)\n-{\n-\tif (strcmp(value, \"1\") == 0)\n-\t\t*(int *)ret_val = 1;\n-\telse\n-\t\t*(int *)ret_val = 0;\n-\n-\treturn 0;\n-}\n-\n-\n static uint32_t\n virtio_dev_speed_capa_get(uint32_t speed)\n {\n@@ -2062,10 +2019,8 @@ static int vectorized_check_handler(__rte_unused const char *key,\n }\n \n #define VIRTIO_ARG_SPEED      \"speed\"\n-#define VIRTIO_ARG_VDPA       \"vdpa\"\n #define VIRTIO_ARG_VECTORIZED \"vectorized\"\n \n-\n static int\n link_speed_handler(const char *key __rte_unused,\n \t\tconst char *value, void *ret_val)\n@@ -2084,8 +2039,7 @@ link_speed_handler(const char *key __rte_unused,\n \n \n static int\n-virtio_dev_devargs_parse(struct rte_devargs *devargs, int *vdpa,\n-\tuint32_t *speed, int *vectorized)\n+virtio_dev_devargs_parse(struct rte_devargs *devargs, uint32_t *speed, int *vectorized)\n {\n \tstruct rte_kvargs *kvlist;\n \tint ret = 0;\n@@ -2098,18 +2052,7 @@ virtio_dev_devargs_parse(struct rte_devargs *devargs, int *vdpa,\n \t\tPMD_INIT_LOG(ERR, \"error when parsing param\");\n \t\treturn 0;\n \t}\n-\tif (vdpa && rte_kvargs_count(kvlist, VIRTIO_ARG_VDPA) == 1) {\n-\t\t/* vdpa mode selected when there's a key-value pair:\n-\t\t * vdpa=1\n-\t\t */\n-\t\tret = rte_kvargs_process(kvlist, VIRTIO_ARG_VDPA,\n-\t\t\t\tvdpa_check_handler, vdpa);\n-\t\tif (ret < 0) {\n-\t\t\tPMD_INIT_LOG(ERR, \"Failed to parse %s\",\n-\t\t\t\tVIRTIO_ARG_VDPA);\n-\t\t\tgoto exit;\n-\t\t}\n-\t}\n+\n \tif (speed && rte_kvargs_count(kvlist, VIRTIO_ARG_SPEED) == 1) {\n \t\tret = rte_kvargs_process(kvlist,\n \t\t\t\t\tVIRTIO_ARG_SPEED,\n@@ -2138,53 +2081,6 @@ virtio_dev_devargs_parse(struct rte_devargs *devargs, int *vdpa,\n \treturn ret;\n }\n \n-static int eth_virtio_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n-\tstruct rte_pci_device *pci_dev)\n-{\n-\tint vdpa = 0;\n-\tint ret = 0;\n-\n-\tret = virtio_dev_devargs_parse(pci_dev->device.devargs, &vdpa, NULL,\n-\t\tNULL);\n-\tif (ret < 0) {\n-\t\tPMD_INIT_LOG(ERR, \"devargs parsing is failed\");\n-\t\treturn ret;\n-\t}\n-\t/* virtio pmd skips probe if device needs to work in vdpa mode */\n-\tif (vdpa == 1)\n-\t\treturn 1;\n-\n-\treturn rte_eth_dev_pci_generic_probe(pci_dev, sizeof(struct virtio_pci_dev),\n-\t\teth_virtio_dev_init);\n-}\n-\n-static int eth_virtio_pci_remove(struct rte_pci_device *pci_dev)\n-{\n-\tint ret;\n-\n-\tret = rte_eth_dev_pci_generic_remove(pci_dev, eth_virtio_dev_uninit);\n-\t/* Port has already been released by close. */\n-\tif (ret == -ENODEV)\n-\t\tret = 0;\n-\treturn ret;\n-}\n-\n-static struct rte_pci_driver rte_virtio_pmd = {\n-\t.driver = {\n-\t\t.name = \"net_virtio\",\n-\t},\n-\t.id_table = pci_id_virtio_map,\n-\t.drv_flags = 0,\n-\t.probe = eth_virtio_pci_probe,\n-\t.remove = eth_virtio_pci_remove,\n-};\n-\n-RTE_INIT(rte_virtio_pmd_init)\n-{\n-\trte_eal_iopl_init();\n-\trte_pci_register(&rte_virtio_pmd);\n-}\n-\n static bool\n rx_offload_enabled(struct virtio_hw *hw)\n {\n@@ -2535,7 +2431,7 @@ static void virtio_dev_free_mbufs(struct rte_eth_dev *dev)\n /*\n  * Stop device: disable interrupt and mark link down\n  */\n-static int\n+int\n virtio_dev_stop(struct rte_eth_dev *dev)\n {\n \tstruct virtio_hw *hw = dev->data->dev_private;\n@@ -2686,8 +2582,5 @@ __rte_unused uint8_t is_rx)\n \treturn 0;\n }\n \n-RTE_PMD_EXPORT_NAME(net_virtio, __COUNTER__);\n-RTE_PMD_REGISTER_PCI_TABLE(net_virtio, pci_id_virtio_map);\n-RTE_PMD_REGISTER_KMOD_DEP(net_virtio, \"* igb_uio | uio_pci_generic | vfio-pci\");\n RTE_LOG_REGISTER(virtio_logtype_init, pmd.net.virtio.init, NOTICE);\n RTE_LOG_REGISTER(virtio_logtype_driver, pmd.net.virtio.driver, NOTICE);\ndiff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h\nindex b7d52d497f..13395937c8 100644\n--- a/drivers/net/virtio/virtio_ethdev.h\n+++ b/drivers/net/virtio/virtio_ethdev.h\n@@ -117,6 +117,8 @@ void virtio_interrupt_handler(void *param);\n \n int virtio_dev_pause(struct rte_eth_dev *dev);\n void virtio_dev_resume(struct rte_eth_dev *dev);\n+int virtio_dev_stop(struct rte_eth_dev *dev);\n+int virtio_dev_close(struct rte_eth_dev *dev);\n int virtio_inject_pkts(struct rte_eth_dev *dev, struct rte_mbuf **tx_pkts,\n \t\tint nb_pkts);\n \ndiff --git a/drivers/net/virtio/virtio_pci_ethdev.c b/drivers/net/virtio/virtio_pci_ethdev.c\nnew file mode 100644\nindex 0000000000..7c849d01ec\n--- /dev/null\n+++ b/drivers/net/virtio/virtio_pci_ethdev.c\n@@ -0,0 +1,149 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2010-2016 Intel Corporation\n+ */\n+\n+#include <stdint.h>\n+#include <string.h>\n+#include <stdio.h>\n+#include <errno.h>\n+#include <unistd.h>\n+\n+#include <rte_ethdev_driver.h>\n+#include <rte_ethdev_pci.h>\n+#include <rte_pci.h>\n+#include <rte_bus_pci.h>\n+#include <rte_errno.h>\n+\n+#include <rte_memory.h>\n+#include <rte_eal.h>\n+#include <rte_dev.h>\n+#include <rte_kvargs.h>\n+\n+#include \"virtio_ethdev.h\"\n+#include \"virtio_pci.h\"\n+#include \"virtio_logs.h\"\n+\n+/*\n+ * The set of PCI devices this driver supports\n+ */\n+static const struct rte_pci_id pci_id_virtio_map[] = {\n+\t{ RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_LEGACY_DEVICEID_NET) },\n+\t{ RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_MODERN_DEVICEID_NET) },\n+\t{ .vendor_id = 0, /* sentinel */ },\n+};\n+\n+static int\n+eth_virtio_pci_init(struct rte_eth_dev *eth_dev)\n+{\n+\treturn eth_virtio_dev_init(eth_dev);\n+}\n+\n+static int\n+eth_virtio_pci_uninit(struct rte_eth_dev *eth_dev)\n+{\n+\tint ret;\n+\tPMD_INIT_FUNC_TRACE();\n+\n+\tif (rte_eal_process_type() == RTE_PROC_SECONDARY)\n+\t\treturn 0;\n+\n+\tret = virtio_dev_stop(eth_dev);\n+\tvirtio_dev_close(eth_dev);\n+\n+\tPMD_INIT_LOG(DEBUG, \"dev_uninit completed\");\n+\n+\treturn ret;\n+}\n+\n+static int vdpa_check_handler(__rte_unused const char *key,\n+\t\tconst char *value, void *ret_val)\n+{\n+\tif (strcmp(value, \"1\") == 0)\n+\t\t*(int *)ret_val = 1;\n+\telse\n+\t\t*(int *)ret_val = 0;\n+\n+\treturn 0;\n+}\n+\n+#define VIRTIO_ARG_VDPA       \"vdpa\"\n+\n+static int\n+virtio_pci_devargs_parse(struct rte_devargs *devargs, int *vdpa)\n+{\n+\tstruct rte_kvargs *kvlist;\n+\tint ret = 0;\n+\n+\tif (devargs == NULL)\n+\t\treturn 0;\n+\n+\tkvlist = rte_kvargs_parse(devargs->args, NULL);\n+\tif (kvlist == NULL) {\n+\t\tPMD_INIT_LOG(ERR, \"error when parsing param\");\n+\t\treturn 0;\n+\t}\n+\n+\tif (rte_kvargs_count(kvlist, VIRTIO_ARG_VDPA) == 1) {\n+\t\t/* vdpa mode selected when there's a key-value pair:\n+\t\t * vdpa=1\n+\t\t */\n+\t\tret = rte_kvargs_process(kvlist, VIRTIO_ARG_VDPA,\n+\t\t\t\tvdpa_check_handler, vdpa);\n+\t\tif (ret < 0)\n+\t\t\tPMD_INIT_LOG(ERR, \"Failed to parse %s\", VIRTIO_ARG_VDPA);\n+\t}\n+\n+\trte_kvargs_free(kvlist);\n+\n+\treturn ret;\n+}\n+\n+static int eth_virtio_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n+\tstruct rte_pci_device *pci_dev)\n+{\n+\tint vdpa = 0;\n+\tint ret = 0;\n+\n+\tret = virtio_pci_devargs_parse(pci_dev->device.devargs, &vdpa);\n+\tif (ret < 0) {\n+\t\tPMD_INIT_LOG(ERR, \"devargs parsing is failed\");\n+\t\treturn ret;\n+\t}\n+\t/* virtio pmd skips probe if device needs to work in vdpa mode */\n+\tif (vdpa == 1)\n+\t\treturn 1;\n+\n+\treturn rte_eth_dev_pci_generic_probe(pci_dev, sizeof(struct virtio_pci_dev),\n+\t\teth_virtio_pci_init);\n+}\n+\n+static int eth_virtio_pci_remove(struct rte_pci_device *pci_dev)\n+{\n+\tint ret;\n+\n+\tret = rte_eth_dev_pci_generic_remove(pci_dev, eth_virtio_pci_uninit);\n+\t/* Port has already been released by close. */\n+\tif (ret == -ENODEV)\n+\t\tret = 0;\n+\treturn ret;\n+}\n+\n+static struct rte_pci_driver rte_virtio_net_pci_pmd = {\n+\t.driver = {\n+\t\t.name = \"net_virtio\",\n+\t},\n+\t.id_table = pci_id_virtio_map,\n+\t.drv_flags = 0,\n+\t.probe = eth_virtio_pci_probe,\n+\t.remove = eth_virtio_pci_remove,\n+};\n+\n+RTE_INIT(rte_virtio_net_pci_pmd_init)\n+{\n+\trte_eal_iopl_init();\n+\trte_pci_register(&rte_virtio_net_pci_pmd);\n+}\n+\n+RTE_PMD_REGISTER_PCI_TABLE(net_virtio, pci_id_virtio_map);\n+RTE_PMD_REGISTER_KMOD_DEP(net_virtio, \"* igb_uio | uio_pci_generic | vfio-pci\");\n+RTE_PMD_EXPORT_NAME(net_virtio, __COUNTER__);\n",
    "prefixes": [
        "v4",
        "07/44"
    ]
}