From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0052.outbound.protection.outlook.com [104.47.38.52]) by dpdk.org (Postfix) with ESMTP id DE97C5679 for ; Tue, 13 Dec 2016 14:35:20 +0100 (CET) Received: from DM5PR03CA0014.namprd03.prod.outlook.com (10.175.104.24) by CY1PR0301MB0748.namprd03.prod.outlook.com (10.160.159.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.771.8; Tue, 13 Dec 2016 13:35:19 +0000 Received: from BN1AFFO11FD035.protection.gbl (2a01:111:f400:7c10::193) by DM5PR03CA0014.outlook.office365.com (2603:10b6:3:118::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.771.8 via Frontend Transport; Tue, 13 Dec 2016 13:35:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD035.mail.protection.outlook.com (10.58.52.159) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.761.6 via Frontend Transport; Tue, 13 Dec 2016 13:35:18 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:819; Count:10 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id uBDDYRwG005048; Tue, 13 Dec 2016 06:35:15 -0700 From: Shreyansh Jain To: , CC: , , , Shreyansh Jain Date: Tue, 13 Dec 2016 19:07:12 +0530 Message-ID: <1481636232-2300-13-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481636232-2300-1-git-send-email-shreyansh.jain@nxp.com> References: <1480846288-2517-1-git-send-email-shreyansh.jain@nxp.com> <1481636232-2300-1-git-send-email-shreyansh.jain@nxp.com> X-IncomingHeaderCount: 10 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131261097190339715; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39410400002)(39400400002)(39450400003)(39380400002)(39840400002)(39860400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(68736007)(8936002)(50226002)(50986999)(76176999)(77096006)(38730400001)(189998001)(36756003)(97736004)(106466001)(50466002)(105606002)(104016004)(5001770100001)(575784001)(86362001)(48376002)(5660300001)(4326007)(626004)(85426001)(2906002)(305945005)(8676002)(33646002)(92566002)(2950100002)(6666003)(81166006)(356003)(8666005)(47776003)(5003940100001)(81156014)(7059030)(21314002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0748; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD035; 1:Ll+8fiXlwj1D1XnoSZ77TVX1t9Pc14Ys/gIj3R3aJh5E6h8J+TXHfmqyrjYkkoJvZp3gU5NlZu/Tfl35lygR9098wt8jlCPgu2uixh1vTdMdUA7tlQWXIUpUP5RvnxDc5HpYOfv+ESiekRXaE50onvlYVUCOlq9k0zqxv3mmI1p9rY4tYlNlG+IETK5UUI88ZZmhop6gKxX2+DgjXTpH2WKsLM1yJq9fQOcFaWF5L9KfKco2LaBheLanVtWM5iWJSIQ6YAN7PFY2O2vKbgWoHWubz46TgnvwAacueiaxr1eOTLjF3fdGD31ljjzDSn5PlIrwzMLf/OCXFVkqn4RxDGNmpmI/PCPupsLAxP3Meqq+y63x+WL9Q73T0az3vuO0ccIwlrUAkY5jT/mcGpHnWgooAkgy64ULIWVehsvUWYTxpUlHDb0hETItCNKXguRlTOLIHI0YG+/hhbRP6d680u6UEkd37RZoN7HwBHPNQaiYQGOCbipdIMvwWV2kN7ATdsXbI8lgs9+/55el8Nj5/eDlBShtrgny3UMlIdAwUIUEXmrdkwWWGZlU1DOAkTBOMd6wGbpVZAOR9whx+4Qn+9FHyfjfUMWnGDh2duHXnPxjw3lBovGkG+9Y5xMUucz2z6c3CYnm2vOTSiPFnLPmLoDD9+TJpDX7gEjT8Fs0yoK55+UAe6/ROYDb9lMtTTgb2580ZS04XrCbEEv9yrun/q9T7y7pDybYCiW76NtXzdijtL5orOIDh361zd672nZ8PFvnyOtjKahUgD4Uj/dDRw== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a1d7c800-8a37-4f99-5322-08d4235ce150 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0748; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0748; 3:T15mxcx1vd1TX5O/KQ87VPRRVzFuum+0SaKJDcQrBNhyGZbd0Chknkck/r20DsWXg4YcsKN+qt6LikGUrg0dNbInwoJV1/zbAyP38zk+2e+QKmoAb39aQh40bIOD09vghtY8NVh5P5tr5zoIaxa/++uVjep68wHpRKxyjQLu7b5cLUq8PGXBmJEdFZLlo5ikpKaRDY+xxmOlbbOTzeL/BLaHu6eGCdrDekwNAScl052E8h11YmE6mP6fslkNBKCYk0qtgu6eYlhfFetDzd4IATGf7AlYCstOzDj741Hfr4EOIHnipx7ZcZVlGw4LIjnaiKM1zzO1R2rstf6bJMqtmx8ynxxt/9mF/V6vNHYjomJ1tyaTWmNVktFwLQLbKDeh X-Microso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0B/OULxD9ti9+IxpjmxnLPHqh4oaWMyPyCa7uIRbrvGVKcN8lDpjj2n8fq5jB+82Z4hK7qvs3bZf8K/Tifwg== 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)(13023025)(13024025)(13015025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123563025)(20161123565025)(20161123561025)(20161123556025)(20161123559025); SRVR:CY1PR0301MB0748; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0748; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0748; 4:fRRHNCmAuoUtM1YYd11qd9ZYeFV5Axye7QxEBJtw3ZP+vIc5FMiTqAl+83bDCDcwbFMUN+UKZN7rf6T6WlyoYGXIxdVPOAFpnjG5KISnBo+ZV/MOpaYJczNL0+JfDYfnufHGQ5LQXy1OCiozny3uB8CWA/CMqV3Yg0XG+kwn00SPd2H+wwNlYoGVpIf5bMYgGMMMaFjQLAMuX/L/WL3QJitamorTYIKKZxmpe0oNTNTqOoERSqXftCsJvj4JUQK4JeBrdzGVv3XeWLfTcNTMZI5xD+ygznS5OsmB7NiVtcXigp4h5w6nJguC1qUpubJR2GZCYTV3QWO4FUVN0SGpFxb+Io+2wSuRk39buSFCcwkb7sbg7Ohp/m0bYEJ2zgKVuKVVwzoEr9UuC7OP+wZS9Lfa4t0LDiCHslRp5OG0nNbKd6Ss4nRoJgWZUKkNX8MUV57Cuxh1hSp/b/sDgyWFDx4n+Fy2fxcxkAMJLNqXAB1n//PL7ZAV5XaTtG6HJC7BdYzthLzlG+S9pcHUhDFUKAbddO6vYEdQPANA/XrKeM+OZCVtco9G4Lo3gK9/Q8vVa/QxJdlcnxhPU23y2rWpXtDXKxNLa+wvppYeV43b+6XL8JS8ngiWNz9aKqmFOXE5vziNQq0pHD/MhWhPmqCsyxp89uH5rM1VoC9SvD7UL9oYMkNiaFGzbi8oX4f+cF/oTPgF3xiwhXQgEy8C2f0i0+AnotAYMlB0m6Y2ZDUToUIGjL6rsTIV2A2ZokYeV4fs X-Forefront-PRVS: 01559F388D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0748; 23:TQwFNF6qZdEK82NIuB31AluJhZEo/OrNh1EmCuH?= =?us-ascii?Q?SWbHcJpbqa/5FjCoVXToFSv61MQ0OUAaZlWPzBKiQWsEhTGFAbCGGPdY+VKf?= =?us-ascii?Q?eDYej19Dlugzpq4PC1C+8IEUdE2jI5MjY0S70Aaw6t7NjwnSKrYmU0jkfm36?= =?us-ascii?Q?abK10dHZnVuvPy8MKDWwPNKwp+LdTpKh4rv16pJgAZmrQE1vkpize/8GLYfi?= =?us-ascii?Q?G+P/HgjRayGXn9FOfbClyMXrU+3A4+BvPePX8qnR4xroxsEPPtvmSityLtRm?= =?us-ascii?Q?lIepgyjXN0VQByf2w37oIkXnqiYxwthLTzVQcFFUzWOeSRd46449eHexiETU?= =?us-ascii?Q?bpwMLNL4cAfP4ROMJhf2YHC+6GyfOxhCgQBG2XDOWdU69M2siLq+odugJ7ao?= =?us-ascii?Q?9hsI97XJItf0ABQSI9fWt2fgOlFI94SKEGjCOqo63PkbRlpQK0ZDauoV7g7W?= =?us-ascii?Q?MaN4fMyzRLPz95Vyb7R1TvYfeqST3vsmkCtp0ktuzegcvU+5Qnm/KvQLWWES?= =?us-ascii?Q?nvoC28P5V+YBuvoxRUeS/+ahLOEWp0ioT4iAeclbE8tJwyWKdtW9GfaQfrDM?= =?us-ascii?Q?OMMV4BhXlxDWbxQgTJMIH1+HDszcw1fd14o3IAK3ds1z9IkZ7p6DWCLSSeZh?= =?us-ascii?Q?rzo3IcIvAscTsXeMlhmipXUfrr5OAfJuLIrMcd0FDIL8i7YNVHLL5Bn6uvgA?= =?us-ascii?Q?+a1gGmTn7+zR4oNmLjC1ckvZcR15FT9DSxqLAJci4Fr+XMPz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Ah50zmNEcrS3gc8tVpyOCAx5AFUafLUkyHCFvya8/mN5kpYCsNAJk/z1M89R49HCjDCKkyPbxJ5qegCzFXPa27up19Q+d2vo7Jq6QOarJAV/eCpDhE+6HXLJZ0jajM5pR4164Z; 5:xHbJ7WMuKZdmrpRkE/9Z2MjGN1g9C1Pn80V3+cW3FW8CNUUSKdnBP/IKdE/Slm60nWnp/qEXjNW6ua4Y2CzorJ8+p6IpggBf6XW86Xw5VU6O1/i4tFungG1iyiuvsUrTlkSDhXpk01l56f+h6hTQYOwILec9ImbqqFW2pZbVTbCTw99Q5g6ruxQuPbns68xZ; 24:ssO53i0j8Di16MYxfipPJ8KJkabGTR7WwzkYYt4y8tyPs6BdVOLbuGkjwcHRw7aH8hHbSmI8lMSfjPBQw4VeypbdjUK3Qd4T38MGna2Wi5M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0748; 7:tN5TlQ68wPPp0WRl7K0y7LYhBQayUhoXTctUU2gAGqZWVOjKMUrrdbnE2gfqtc4V/z2bpDhcfA8LgH060Utp3eZqdaGBWozb5qNqfKgBhRpSkUxkNNXmWjUlvr2Smli6GQX3MsdPH0Mh4Xu07i/XEgJ5rpk/wi2oCfLC8SjxtPNyS5OrTYvRv4i676g3nk/sA7+e1CW3T3UMjQZJHY04KXeM+IsI/BvcXMKdsKw7p3e+QDiDEReF6BU3ig0rYJSPoq6OocRt+RGYTAYeX7Do6GdvvFSz6G2hIgBg8mng+6Vz7bpJCG1Sq5afIoncJuPrg8nsS1YocsdCwz8KaSV0sMbJpBnwQtDIedKNCElFG0Ee7dgarSWOPPV6oVFyV7IqlPD3FY+S+FXUzvnCphLSlkJxSXesvb5U2hH6F/EMcNEq2WXXuhaYI9Tn5nPd1gokFG8osyV9VEFdnSWhG9t8zA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2016 13:35:18.7219 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0748 Subject: [dpdk-dev] [PATCH v2 12/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: Tue, 13 Dec 2016 13:35:21 -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). Signed-off-by: Shreyansh Jain --- 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 | 4 +++- drivers/net/mlx5/mlx5.c | 1 + 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 ++++ 19 files changed, 86 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index 0eae433..9f3b3f2 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethdev.c @@ -618,6 +618,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, @@ -632,6 +636,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 035fe07..c8671c8 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -1160,6 +1160,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 b7f28eb..67714fa 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe/cxgbe_ethdev.c @@ -1039,6 +1039,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 aee3d34..7be5da3 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -391,6 +391,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 2fddf0c..70dd24c 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1078,6 +1078,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, @@ -1094,6 +1098,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 ab9a178..54fc8de 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1705,6 +1705,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 2b154ec..c2783db 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -634,6 +634,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 923690c..d1a2efa 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -3061,6 +3061,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 67778ba..9c5d50f 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 aa306d6..10bf6ab 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -1527,6 +1527,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 edc9b22..80ee232 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1564,6 +1564,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, @@ -1580,6 +1584,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 da61a85..e3dcd41 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -5907,7 +5907,9 @@ 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 90cc35e..76dda13 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -731,6 +731,7 @@ static struct eth_driver mlx5_driver = { .pci_drv = { .driver = { .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 de80b46..125ba86 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2469,6 +2469,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 d106dd0..31f6733 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -1642,6 +1642,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, @@ -1655,6 +1659,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 f3cd52d..a649e60 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -1572,6 +1572,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 466e49c..72ac748 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -2110,6 +2110,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 079fd6c..4d5d1bb 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1377,6 +1377,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 8bb13e5..57f66cb 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