Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/21460/?format=api
https://patches.dpdk.org/api/patches/21460/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488794430-25179-32-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-32-git-send-email-jblunck@infradead.org>", "list_archive_url": "https://inbox.dpdk.org/dev/1488794430-25179-32-git-send-email-jblunck@infradead.org", "date": "2017-03-06T10:00:23", "name": "[dpdk-dev,31/38] net/sfc: Don't use eth_driver", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "09446433a1a5520da6c23bb28b56402b667ff4df", "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-32-git-send-email-jblunck@infradead.org/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/21460/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/21460/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 A5718FA66;\n\tMon, 6 Mar 2017 11:02:23 +0100 (CET)", "from mail-wr0-f193.google.com (mail-wr0-f193.google.com\n\t[209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 8E76DBD28\n\tfor <dev@dpdk.org>; Mon, 6 Mar 2017 11:01:21 +0100 (CET)", "by mail-wr0-f193.google.com with SMTP id u48so21047515wrc.1\n\tfor <dev@dpdk.org>; Mon, 06 Mar 2017 02:01:21 -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.20 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:20 -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=CHuOVuCiZRTbmbwlL26Rf1VMFqn+xaFPdaODkGiNpAk=;\n\tb=OlEYBtHMpk4754cBnxCYbXkOlfTYndSrXkE4WhAHeM7SVgzArhHgTg5nDmklrxsmai\n\tS/zJnT5DRPoyO3feShwZSPQxfo8FH3bzdurT+5oFjTeICyxeQtyObVb0HMjPcRIvaSc6\n\tw/o14a2/SaXzELu0Ax1GZhiBUnz1x6s35Wv3Ht9GzIMIPSXDsa2UCxVZmfxQoc4PEMYj\n\tVhvvu6WE5/dKdNd3BiZpGB/inDohPquVECA/ruIvhfEmBzsGZ9y7KduyJvw2ZXCkiAUT\n\tXN7NeP/IQnBmEgKhtP792DWg4BAgk4YJ9vGCzYf8hVZncbLu2Goep3xMhKedjywNigeT\n\tL2/g==", "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=CHuOVuCiZRTbmbwlL26Rf1VMFqn+xaFPdaODkGiNpAk=;\n\tb=QSiAEf8siJU/ctav7luFSGzi1aiD7RcuCPMR4nZJ5vOWKelhKF18jOOtM00gqsfyOP\n\tngxsmNgaGP9FT6IwBQh9SPt2Fd9NDgnLrVsetNPA/m/F9vkS2qmJKPu+6Dd7WnV92+S0\n\t1SzjFC6MwvEwQ3PK+xVMxNdnGZ6aNHpG5ikXNtqtvmzoNo/PfSuinn1paTZLW31aBUt5\n\tabLqwg5Df89Ad3tFTNH8P4RQwvv3UQnn93pCKVbn+Q+1djl+5BmqSvz0IiGXbz1GM5ET\n\tuL+Cu8wdSAA1VbvFDk5aePhoWgI+f33lWqPPhorCUcfQ4n7BJV41HSnIrA7yKny46P33\n\t05tg==", "X-Gm-Message-State": "AMke39m/lPEyf4U4JNCJunLf3HVM2govlBtOVQajZ6s5pLfspp7ZJtqPk5ZBXQJ4+SfvvA==", "X-Received": "by 10.223.172.137 with SMTP id o9mr14523923wrc.66.1488794481237; \n\tMon, 06 Mar 2017 02:01:21 -0800 (PST)", "From": "Jan Blunck <jblunck@infradead.org>", "To": "dev@dpdk.org", "Date": "Mon, 6 Mar 2017 11:00:23 +0100", "Message-Id": "<1488794430-25179-32-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 31/38] net/sfc: 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/sfc/sfc_ethdev.c | 34 +++++++++++++++++++++-------------\n 1 file changed, 21 insertions(+), 13 deletions(-)", "diff": "diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c\nindex 71587fb..ef8970d 100644\n--- a/drivers/net/sfc/sfc_ethdev.c\n+++ b/drivers/net/sfc/sfc_ethdev.c\n@@ -29,6 +29,7 @@\n \n #include <rte_dev.h>\n #include <rte_ethdev.h>\n+#include <rte_ethdev_pci.h>\n #include <rte_pci.h>\n \n #include \"efx.h\"\n@@ -1340,21 +1341,28 @@ static const struct rte_pci_id pci_id_sfc_efx_map[] = {\n \t{ .vendor_id = 0 /* sentinel */ }\n };\n \n-static struct eth_driver sfc_efx_pmd = {\n-\t.pci_drv = {\n-\t\t.id_table = pci_id_sfc_efx_map,\n-\t\t.drv_flags =\n-\t\t\tRTE_PCI_DRV_INTR_LSC |\n-\t\t\tRTE_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 = sfc_eth_dev_init,\n-\t.eth_dev_uninit = sfc_eth_dev_uninit,\n-\t.dev_private_size = sizeof(struct sfc_adapter),\n+static int sfc_eth_dev_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 sfc_adapter), sfc_eth_dev_init);\n+}\n+\n+static int sfc_eth_dev_pci_remove(struct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_remove(pci_dev, sfc_eth_dev_uninit);\n+}\n+\n+static struct rte_pci_driver sfc_efx_pmd = {\n+\t.id_table = pci_id_sfc_efx_map,\n+\t.drv_flags =\n+\t\tRTE_PCI_DRV_INTR_LSC |\n+\t\tRTE_PCI_DRV_NEED_MAPPING,\n+\t.probe = sfc_eth_dev_pci_probe,\n+\t.remove = sfc_eth_dev_pci_remove,\n };\n \n-RTE_PMD_REGISTER_PCI(net_sfc_efx, sfc_efx_pmd.pci_drv);\n+RTE_PMD_REGISTER_PCI(net_sfc_efx, sfc_efx_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_sfc_efx, pci_id_sfc_efx_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_sfc_efx, \"* igb_uio | uio_pci_generic | vfio\");\n RTE_PMD_REGISTER_PARAM_STRING(net_sfc_efx,\n", "prefixes": [ "dpdk-dev", "31/38" ] }{ "id": 21460, "url": "