Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/21449/?format=api
https://patches.dpdk.org/api/patches/21449/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488794430-25179-22-git-send-email-jblunck@infradead.org/", "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": "<1488794430-25179-22-git-send-email-jblunck@infradead.org>", "list_archive_url": "https://inbox.dpdk.org/dev/1488794430-25179-22-git-send-email-jblunck@infradead.org", "date": "2017-03-06T10:00:13", "name": "[dpdk-dev,21/38] net/igb: Don't use eth_driver", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f2a3878887beea106f38bc289db1a8ecfd61230c", "submitter": { "id": 249, "url": "https://patches.dpdk.org/api/people/249/?format=api", "name": "Jan Blunck", "email": "jblunck@infradead.org" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1488794430-25179-22-git-send-email-jblunck@infradead.org/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/21449/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/21449/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 0A952F97C;\n\tMon, 6 Mar 2017 11:02:06 +0100 (CET)", "from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 3C5D55A68\n\tfor <dev@dpdk.org>; Mon, 6 Mar 2017 11:01:09 +0100 (CET)", "by mail-wm0-f65.google.com with SMTP id v190so12807060wme.3\n\tfor <dev@dpdk.org>; Mon, 06 Mar 2017 02:01:09 -0800 (PST)", "from weierstrass.local.net ([91.200.109.169])\n\tby smtp.gmail.com with ESMTPSA id\n\tu145sm3829237wmu.1.2017.03.06.02.01.07 for <dev@dpdk.org>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 06 Mar 2017 02:01:07 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:subject:date:message-id:in-reply-to:references;\n\tbh=tk6Jmc1Jp0Fbae2xxBRb3BGNr1QbM/bPbsukmkVJC8A=;\n\tb=GnY9p+8GM7UBDooiTzDxJh+soE1UeEQhJVDBFlmkHQlgSpvxr1dgrFOaMgoGAJTkxx\n\t2zUn4pxzCH4S8qXXhu2lA3WH1tfo9Ubr6XRDg1JL9Fp8rmzGnb0mmkP7xNS6QDc/ow9R\n\tEdKMowZ8+nf5mIi6agYgTWWZFUheEVq7tuJ/pWkq0KP+pJx2w7+y/SK16s5oQ2oETnBx\n\t/sqirC+ZE1us7fiDW7pid2IlH+j1MeBav8kMJhnWWnK5XKD4PiL8FdmIYdxllgbuoQig\n\tMwrwzexUUPTeB3+xxlgFZ3/T2pF36IOSzPNcoCCTw0RKL1OajNa2PfZ7DCF6cDuzRsGb\n\tgZlw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=tk6Jmc1Jp0Fbae2xxBRb3BGNr1QbM/bPbsukmkVJC8A=;\n\tb=g+ddwcEfR4AhYoEBvdCyWlrgGwMxwwlW4d8IkldRvUm+rF6HjtwZqtslWq00MerR/I\n\tbKDMrHsoEPxWwJxeG5rbJR45m1BdWgBGkf4OWBPR2nk54dYmvR7EowGY3VWXM7b6p3GS\n\tGq+/KifXg4RNxnj8kJS4NciuaepcHNQ8RNTvEk98OXfz99eBMI0gmf4lGa4I44zo1rev\n\txblcQngVZxU0tpy7Q1QgAKwwh66TYtavNMRYUh0AGgIqmyRsYn/QgqCxqpDDetkLn9Hk\n\tADQwa/WXci7nJZSp/1KmbEaB2/2Vv50qXsmz/VQU70Pe2l55zwxrDL4lZl+EvKjE4kwp\n\tC+Yg==", "X-Gm-Message-State": "AMke39mc+3hmN+njc2HbRn0wICSo2Inn6j+1sgxnp2IC5q8ob4UhPKDfiYabDPNIExwoqA==", "X-Received": "by 10.28.93.194 with SMTP id r185mr12367959wmb.47.1488794468726; \n\tMon, 06 Mar 2017 02:01:08 -0800 (PST)", "From": "Jan Blunck <jblunck@infradead.org>", "To": "dev@dpdk.org", "Date": "Mon, 6 Mar 2017 11:00:13 +0100", "Message-Id": "<1488794430-25179-22-git-send-email-jblunck@infradead.org>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1488794430-25179-1-git-send-email-jblunck@infradead.org>", "References": "<1488794430-25179-1-git-send-email-jblunck@infradead.org>", "Subject": "[dpdk-dev] [PATCH 21/38] net/igb: Don't use eth_driver", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "Signed-off-by: Jan Blunck <jblunck@infradead.org>\n---\n drivers/net/e1000/igb_ethdev.c | 60 ++++++++++++++++++++++++++----------------\n 1 file changed, 38 insertions(+), 22 deletions(-)", "diff": "diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c\nindex a112b38..1a162cc 100644\n--- a/drivers/net/e1000/igb_ethdev.c\n+++ b/drivers/net/e1000/igb_ethdev.c\n@@ -45,6 +45,7 @@\n #include <rte_pci.h>\n #include <rte_ether.h>\n #include <rte_ethdev.h>\n+#include <rte_ethdev_pci.h>\n #include <rte_memory.h>\n #include <rte_memzone.h>\n #include <rte_eal.h>\n@@ -1087,31 +1088,46 @@ eth_igbvf_dev_uninit(struct rte_eth_dev *eth_dev)\n \treturn 0;\n }\n \n-static struct eth_driver rte_igb_pmd = {\n-\t.pci_drv = {\n-\t\t.id_table = pci_id_igb_map,\n-\t\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,\n-\t\t.probe = rte_eth_dev_pci_probe,\n-\t\t.remove = rte_eth_dev_pci_remove,\n-\t},\n-\t.eth_dev_init = eth_igb_dev_init,\n-\t.eth_dev_uninit = eth_igb_dev_uninit,\n-\t.dev_private_size = sizeof(struct e1000_adapter),\n+static int eth_igb_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n+\tstruct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_probe(pci_dev,\n+\t\tsizeof(struct e1000_adapter), eth_igb_dev_init);\n+}\n+\n+static int eth_igb_pci_remove(struct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_remove(pci_dev, eth_igb_dev_uninit);\n+}\n+\n+static struct rte_pci_driver rte_igb_pmd = {\n+\t.id_table = pci_id_igb_map,\n+\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,\n+\t.probe = eth_igb_pci_probe,\n+\t.remove = eth_igb_pci_remove,\n };\n \n+\n+static int eth_igbvf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n+\tstruct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_probe(pci_dev,\n+\t\tsizeof(struct e1000_adapter), eth_igbvf_dev_init);\n+}\n+\n+static int eth_igbvf_pci_remove(struct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_remove(pci_dev, eth_igbvf_dev_uninit);\n+}\n+\n /*\n * virtual function driver struct\n */\n-static struct eth_driver rte_igbvf_pmd = {\n-\t.pci_drv = {\n-\t\t.id_table = pci_id_igbvf_map,\n-\t\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING,\n-\t\t.probe = rte_eth_dev_pci_probe,\n-\t\t.remove = rte_eth_dev_pci_remove,\n-\t},\n-\t.eth_dev_init = eth_igbvf_dev_init,\n-\t.eth_dev_uninit = eth_igbvf_dev_uninit,\n-\t.dev_private_size = sizeof(struct e1000_adapter),\n+static struct rte_pci_driver rte_igbvf_pmd = {\n+\t.id_table = pci_id_igbvf_map,\n+\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING,\n+\t.probe = eth_igbvf_pci_probe,\n+\t.remove = eth_igbvf_pci_remove,\n };\n \n static void\n@@ -5309,9 +5325,9 @@ eth_igb_configure_msix_intr(struct rte_eth_dev *dev)\n \tE1000_WRITE_FLUSH(hw);\n }\n \n-RTE_PMD_REGISTER_PCI(net_e1000_igb, rte_igb_pmd.pci_drv);\n+RTE_PMD_REGISTER_PCI(net_e1000_igb, rte_igb_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_e1000_igb, pci_id_igb_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_e1000_igb, \"* igb_uio | uio_pci_generic | vfio\");\n-RTE_PMD_REGISTER_PCI(net_e1000_igb_vf, rte_igbvf_pmd.pci_drv);\n+RTE_PMD_REGISTER_PCI(net_e1000_igb_vf, rte_igbvf_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_e1000_igb_vf, pci_id_igbvf_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_e1000_igb_vf, \"* igb_uio | vfio\");\n", "prefixes": [ "dpdk-dev", "21/38" ] }{ "id": 21449, "url": "