From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0052.outbound.protection.outlook.com [104.47.42.52]) by dpdk.org (Postfix) with ESMTP id 25776F618 for ; Mon, 26 Dec 2016 13:51:07 +0100 (CET) Received: from CY4PR03CA0006.namprd03.prod.outlook.com (10.168.162.16) by BN1PR0301MB0738.namprd03.prod.outlook.com (10.160.78.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Mon, 26 Dec 2016 12:51:05 +0000 Received: from BY2FFO11FD020.protection.gbl (2a01:111:f400:7c0c::195) by CY4PR03CA0006.outlook.office365.com (2603:10b6:903:33::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11 via Frontend Transport; Mon, 26 Dec 2016 12:51:05 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD020.mail.protection.outlook.com (10.1.14.137) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.789.10 via Frontend Transport; Mon, 26 Dec 2016 12:51:03 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id uBQCl90T011201; Mon, 26 Dec 2016 05:51:00 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Mon, 26 Dec 2016 18:20:43 +0530 Message-ID: <1482756644-13726-12-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> References: <1481893853-31790-1-git-send-email-shreyansh.jain@nxp.com> <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131272302645624901; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39410400002)(39850400002)(39380400002)(39860400002)(39840400002)(39450400003)(39400400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(47776003)(92566002)(5660300001)(104016004)(8676002)(38730400001)(81166006)(2950100002)(6916009)(36756003)(50226002)(356003)(77096006)(4326007)(6666003)(110136003)(8656002)(2906002)(626004)(76176999)(8936002)(50986999)(305945005)(81156014)(50466002)(85426001)(48376002)(69596002)(5003940100001)(2351001)(33646002)(97736004)(189998001)(86362001)(575784001)(106466001)(105606002)(68736007)(7059030)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0738; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD020; 1:O2zlCdUDgWA30WaEb9jdEsRvQsfiheDdL6AhsHVOgUwgpKNwnBDdMbOpPbfLDOioauqUEuUveYowgG9cBqza8o3+Y0sYV8kU3XIHocRYqmUT6+3BHdVa6LhykGpgUbZt/RvMtCxzFgb5J0A9vqJrP3gj9jkGC1FnsIxMwvgyzXYkAVTQm972M7CwRU1kFHyw1Et7isGBoDyJPkLUFt/vrzq6YtMIIeDwqCl5z+A6GUnfCrC/xnm+ACVr8c49kbEP4GD0MVIlnZVBpYSaoEB4+V8BYf1mXxkRYCZSQcxfc7Gtkg37LOZpgXroZqfdGalFs7g/rGEy1RFfj3QZlJ0IeCgde3Spl5jrdNTT7k0RXIUXQGdGkeR98Kf/kPwFHnsvdbspbX6fkuekav/VtXdEvkx1FLz3etxUxzyv0q4S+rFFvtkA7luSawR9kBgLsv5j7gMl4RDpZRMH9lpBeDJEew8jQi/OE3v2Po6F7JfocYHJ7EnF/xs3Fj3uH9ucfGyf1pjJYfbqlW0FKJHdN9sQdRNtKmBxvmAP2zA6QeMLqOVERhU9MVCMUhe29AatLurWGBeq5v6YtnP0lGbOV6n17VlliEfX2rVsIFL0iwmE98Q2UM1R8+71lWhACWf5QpNzgYN18+n7Pfi0N3TwU2MmZ5PyuCUI1Na8iHHQofAnt4utrfTK46cGPmrj32PjxxZgjWYb3AajByZ5tLNHyOehJdSxWU71GH8VnX/CFZosAHM= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 6895d9fa-744f-46da-4045-08d42d8dda81 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN1PR0301MB0738; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0738; 3:vPszHqtdZUNrtyDbTBPfqNsCYEduHkuNrsmuwt9Qb6a5oSMGLfh63CCdf1VNVocfUBEVFOr69R9G+qCQqIZknjaC9DHl1+LHxS1QUYaNZCQMTnjHGC6iJQnxIDFiQRvETq/egTzOwq7LH2EQi0vqvggQ91U/um75UplfjJLRN1dbbPu13XX0YLn0uI4+sMNDZvbThYCTWrmcWvOXxp0b7jscVjfbNKJuqeEbKCUyIJ5+mefwHFB9EFKaNNUGuMZkz44kNKQZKKGz0arZOWI+hJYTdOVVT5+hAe9n/uMhzAZdGHmfL7vpzxIT/ZDVJRARQtRl4apUNundtBUQT2dR68A4VfYC0V6rJyGLC5hZmL4=; 25:6Zvgxcw8vMVi0SfCrZLHA3t0uoaIYe3VEXaBkxF3+yntUxl9cXiVLTYsi4VWA0eNJdXoYF4KzEESoDnv+3jaQi/u1XxqHj2jlUvwAlN+Wmz+rkvRDp4x734f6y1ZDPiOJz6jR50dVjXEpoQvZ11NAKNPlNQp79VfL6DoZxixbesYj1n7FdBpPV0xCZ6TVJ1ki5q5oxgYZ8QbwE+XW35BkgHJHd9GkDXL5O3jJyDixrepwxIrD8F25cN4g0N8xY5JgsXmObXSaMRw7R+jTrp7dqvx2XU5UbnJSu6sENC6UenZhmmL4xe2R8uw+oA8Y8ibBr8m0UBWfn+qL7OWMoRHlQAAqzeqWoj1w4Ufdhn77raB4jsCah4y5u37lhdi68SCWhIb5Dvio+IcgfyWFuyR2joJuHlDMfQk5ScA6dDn1MWjw5c9FCNyZ6IXQMi5prvor1U8AOLcHPh7bfNHH1eJ5A== X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0738; 31:ZIN7u68EiJzGARNEYeLlA9iR29raTRmcGYDtHG0vslFgA/DxQHZmbjeqd7yg92QN9m350StHeRU8sbhrKMIGkzZfgU6IRqZVkTLWoeKecT8s9MjNcvl3q6Xizyv7aEy/47ZjEF/GIXjLwUiRckRiO0qv5fiJlNAo163tGugFchaRySJ8JKZyMqcNToH8CgU4mFJfLYIm8XQ5V2Lomv6X6Zt8WZA6lcC9PY7hh7oM+aXQ+ad0jToBKeV4NgpERpNfVumC11lBwAg9jBpIAWa7W+OUnqQw0JRvc4twpOu2ngs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13024025)(13023025)(13015025)(13017025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123565025)(20161123563025); SRVR:BN1PR0301MB0738; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0738; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0738; 4:E6QIQqpFcF3lJA3O1m30mN0LVPP7UZxJyD/rofGeEj2iEXhWhC/uWY96SPA6imwt7ZwGZVMb5cOK4wHwGu536+VQzov8C+XLtO0w+INAq75+1M6entkMehNdd/knqU6X57mfdcLwQ7s8oU8J2NOPlkQoTrZ8L79m4pizoxlFjz8WBuskDz77/7M8Br7bJejXflxwqEfA4/VQQu3JmNcsC1yQkmkveZ/YIH2xUK2YRSN57qvc/PfiUMqNGqdeogeDNe1KpwqmzDIZvnxq4cRyvooyyx+pPZ4b7UM0SipQ634oggbmgtVqICF9zLghu/FN2V9Bi1r4vk7upGfbwsC4KVnSi2h46EfnwMjAMygnatoYd+lBf4uYlzK44TFNrJc4hSsPgLtt1KcFy+FuXuDylzrKLTEizEoaAjXIS1/04k4TnlWQ+wdYO0teJOvN7clds0AhSJQuSGA8aolcZeTTI4ybz+//wbdCCbYVdZKTKEOAtMuxJgoKqRSd/4K5WMctmNXFAJhty16vIo96qEFvrU1PRL/MYYCarwflZ6n6WUwEmvQco2+iqUXhVUK4jYarXfNwbDfM9Ve+u9ehFeeIgUSfWyo+yQLnjkYf9e/F51DYfNmIGpsc7QUv/dMimnV5OrLqOm8sz6h1h4cEXznRMxuV0mfuBgGfl6hXBa0LeQ0bay6zGA2yAIwxmtjhGbK1H2cKRm0EpbWdHujUIm+kJZJD70Lgi9nEw9/JVY+3Cz4sIdJg5RVHBrS11WdEnCeN X-Forefront-PRVS: 016885DD9B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0738; 23:qjEfl+yXzoc+bzz8P8CIxH9KBU3razQhFWNl0sq?= =?us-ascii?Q?nUWIc7/hnQq1gWmx2y2eha4tOhJ3hbwhWnyThIykpVikVrgD0XXJE5oEJ4Gr?= =?us-ascii?Q?ttLqfRRFJvhppwms+oEOCzkEJVzSg4yAWKW3p/X1c2+FPqkOukoC6YB5LmYG?= =?us-ascii?Q?18KdjVZF4lyrLXInoBIyjjOoa2VySD2wh2MJMgZMBL5+T66bOf384CR3YB+K?= =?us-ascii?Q?GTsh6fYms2tsTvTLxP1r/NWeQg0qadHJqPPYI6jJNG1uEqO7AdDsoueZhknj?= =?us-ascii?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osticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0738; 7:ZNUY8YunBQ+4/PXsAIpU8BvWk9DfOV78P9ZrmSk8pMINQigsSbV/vF4RvAMICudhwmzWcOxMv3SYbvm+AsI0JQe2ZFiZPUbB16XeREmfwsATJAoGTsiS8KnvkcIjQnVv9qEhnQo4F4OU7Nkrd86HxyJ02au9gENrzsP9S0oK7/jlkrmMElfyHK3CJ2Mc8XesLbm+ntLlL+ZUJopgvZSng3q6Wf4tj7afFpD/qn1IQxEVPNNvuT4rBNpWxeTB28M8YW/WLQ1F+bnClxtGqlW5nxweDoKQEjvqZ7TRS/3f5boaXR3gv1Yux7o+no3sv5hwXXyCWeUi7nZ2jrOQY5aL/7oIow+8+OaFTPBhsQaVLDeqJrK+MvaNsT5seK1r+LCOXhIG6N4FlMtjD8I41llJ0S8zhDl0rIW5IbQWDCoxubOwftCXEz6EeNbPPefxJmWfFVIw1L3QeSuonBZAt+8+yA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2016 12:51:03.0492 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0738 Subject: [dpdk-dev] [PATCH v4 11/12] drivers: update PMDs to use rte_driver probe and remove X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2016 12:51:08 -0000 These callbacks now act as first layer of PCI interfaces from the Bus. Bus probe would enter the PMDs through the rte_driver->probe/remove callbacks, falling to rte_xxx_driver->probe/remove (Currently, all the drivers are rte_pci_driver). This patch also changes QAT which is the only crypto PMD based on PCI. All others would be changed in a separate patch focused on VDEV. Signed-off-by: Shreyansh Jain --- drivers/crypto/qat/rte_qat_cryptodev.c | 4 ++++ drivers/net/bnx2x/bnx2x_ethdev.c | 8 ++++++++ drivers/net/bnxt/bnxt_ethdev.c | 4 ++++ drivers/net/cxgbe/cxgbe_ethdev.c | 4 ++++ drivers/net/e1000/em_ethdev.c | 4 ++++ drivers/net/e1000/igb_ethdev.c | 8 ++++++++ drivers/net/ena/ena_ethdev.c | 4 ++++ drivers/net/enic/enic_ethdev.c | 4 ++++ drivers/net/fm10k/fm10k_ethdev.c | 4 ++++ drivers/net/i40e/i40e_ethdev.c | 4 ++++ drivers/net/i40e/i40e_ethdev_vf.c | 4 ++++ drivers/net/ixgbe/ixgbe_ethdev.c | 8 ++++++++ drivers/net/mlx4/mlx4.c | 3 ++- drivers/net/mlx5/mlx5.c | 3 ++- drivers/net/nfp/nfp_net.c | 4 ++++ drivers/net/qede/qede_ethdev.c | 8 ++++++++ drivers/net/szedata2/rte_eth_szedata2.c | 4 ++++ drivers/net/thunderx/nicvf_ethdev.c | 4 ++++ drivers/net/virtio/virtio_ethdev.c | 2 ++ drivers/net/vmxnet3/vmxnet3_ethdev.c | 4 ++++ 20 files changed, 90 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c index 1e7ee61..bc1a9c6 100644 --- a/drivers/crypto/qat/rte_qat_cryptodev.c +++ b/drivers/crypto/qat/rte_qat_cryptodev.c @@ -120,6 +120,10 @@ crypto_qat_dev_init(__attribute__((unused)) struct rte_cryptodev_driver *crypto_ static struct rte_cryptodev_driver rte_qat_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_qat_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING, .probe = rte_cryptodev_pci_probe, diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index 2735fd0..80ccff6 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethdev.c @@ -619,6 +619,10 @@ eth_bnx2xvf_dev_init(struct rte_eth_dev *eth_dev) static struct eth_driver rte_bnx2x_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_bnx2x_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, .probe = rte_eth_dev_pci_probe, @@ -633,6 +637,10 @@ static struct eth_driver rte_bnx2x_pmd = { */ static struct eth_driver rte_bnx2xvf_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_bnx2xvf_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 7518b6b..57803df 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -1166,6 +1166,10 @@ bnxt_dev_uninit(struct rte_eth_dev *eth_dev) { static struct eth_driver bnxt_rte_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = bnxt_pci_id_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_DETACHABLE | RTE_PCI_DRV_INTR_LSC, diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c index 64345e3..7718d02 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe/cxgbe_ethdev.c @@ -1041,6 +1041,10 @@ static int eth_cxgbe_dev_init(struct rte_eth_dev *eth_dev) static struct eth_driver rte_cxgbe_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = cxgb4_pci_tbl, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 436acbb..1d507df 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -390,6 +390,10 @@ eth_em_dev_uninit(struct rte_eth_dev *eth_dev) static struct eth_driver rte_em_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_em_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_DETACHABLE, diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 4a15447..8f518d8 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1080,6 +1080,10 @@ eth_igbvf_dev_uninit(struct rte_eth_dev *eth_dev) static struct eth_driver rte_igb_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_igb_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_DETACHABLE, @@ -1096,6 +1100,10 @@ static struct eth_driver rte_igb_pmd = { */ static struct eth_driver rte_igbvf_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_igbvf_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_DETACHABLE, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index dcee8ed..7af6492 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1707,6 +1707,10 @@ static uint16_t eth_ena_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, static struct eth_driver rte_ena_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_ena_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index e5ceb98..2c68d5a 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -635,6 +635,10 @@ static int eth_enicpmd_dev_init(struct rte_eth_dev *eth_dev) static struct eth_driver rte_enic_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_enic_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index b8257e4..236ae07 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -3071,6 +3071,10 @@ static const struct rte_pci_id pci_id_fm10k_map[] = { static struct eth_driver rte_pmd_fm10k = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_fm10k_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_DETACHABLE, diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 8f63044..9f0cbc8 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -670,6 +670,10 @@ static const struct rte_i40e_xstats_name_off rte_i40e_txq_prio_strings[] = { static struct eth_driver rte_i40e_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_i40e_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_DETACHABLE, diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 0dc0af5..e32b9eb 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -1528,6 +1528,10 @@ i40evf_dev_uninit(struct rte_eth_dev *eth_dev) */ static struct eth_driver rte_i40evf_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_i40evf_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_DETACHABLE, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ec2edad..d5794e6 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1562,6 +1562,10 @@ eth_ixgbevf_dev_uninit(struct rte_eth_dev *eth_dev) static struct eth_driver rte_ixgbe_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_ixgbe_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_DETACHABLE, @@ -1578,6 +1582,10 @@ static struct eth_driver rte_ixgbe_pmd = { */ static struct eth_driver rte_ixgbevf_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_ixgbevf_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_DETACHABLE, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index eb06f56..666ef41 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -5906,7 +5906,8 @@ static const struct rte_pci_id mlx4_pci_id_map[] = { static struct eth_driver mlx4_driver = { .pci_drv = { .driver = { - .name = MLX4_DRIVER_NAME + .name = MLX4_DRIVER_NAME, + .probe = rte_eal_pci_probe, }, .id_table = mlx4_pci_id_map, .probe = mlx4_pci_probe, diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index b97b6d1..6d873aa 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -726,7 +726,8 @@ static const struct rte_pci_id mlx5_pci_id_map[] = { static struct eth_driver mlx5_driver = { .pci_drv = { .driver = { - .name = MLX5_DRIVER_NAME + .name = MLX5_DRIVER_NAME, + .probe = rte_eal_pci_probe, }, .id_table = mlx5_pci_id_map, .probe = mlx5_pci_probe, diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index e85315f..ad08666 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2474,6 +2474,10 @@ static struct rte_pci_id pci_id_nfp_net_map[] = { static struct eth_driver rte_nfp_net_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_nfp_net_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_DETACHABLE, diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index e91e627..dced594 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -1643,6 +1643,10 @@ static struct rte_pci_id pci_id_qede_map[] = { static struct eth_driver rte_qedevf_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_qedevf_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, @@ -1656,6 +1660,10 @@ static struct eth_driver rte_qedevf_pmd = { static struct eth_driver rte_qede_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_qede_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index fe7a6b3..43d6252 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -1589,6 +1589,10 @@ static const struct rte_pci_id rte_szedata2_pci_id_table[] = { static struct eth_driver szedata2_eth_driver = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = rte_szedata2_pci_id_table, .probe = rte_eth_dev_pci_probe, .remove = rte_eth_dev_pci_remove, diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index 1060319..987423f 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -2113,6 +2113,10 @@ static const struct rte_pci_id pci_id_nicvf_map[] = { static struct eth_driver rte_nicvf_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_nicvf_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, .probe = rte_eth_dev_pci_probe, diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index b11bee6..bd04436 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1379,6 +1379,8 @@ static struct eth_driver rte_virtio_pmd = { .pci_drv = { .driver = { .name = "net_virtio", + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, }, .id_table = pci_id_virtio_map, .drv_flags = RTE_PCI_DRV_DETACHABLE, diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 9c4d93c..5ddbc3e 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -335,6 +335,10 @@ eth_vmxnet3_dev_uninit(struct rte_eth_dev *eth_dev) static struct eth_driver rte_vmxnet3_pmd = { .pci_drv = { + .driver = { + .probe = rte_eal_pci_probe, + .remove = rte_eal_pci_remove, + }, .id_table = pci_id_vmxnet3_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_DETACHABLE, .probe = rte_eth_dev_pci_probe, -- 2.7.4