From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0050.outbound.protection.outlook.com [104.47.42.50]) by dpdk.org (Postfix) with ESMTP id DD941F930 for ; Mon, 26 Dec 2016 14:21:42 +0100 (CET) Received: from DM2PR03CA0051.namprd03.prod.outlook.com (10.141.96.50) by CY1PR0301MB0746.namprd03.prod.outlook.com (10.160.159.152) 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 13:21:41 +0000 Received: from BY2FFO11FD016.protection.gbl (2a01:111:f400:7c0c::169) by DM2PR03CA0051.outlook.office365.com (2a01:111:e400:2428::50) 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 13:21:41 +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 BY2FFO11FD016.mail.protection.outlook.com (10.1.14.148) 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 13:21:39 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id uBQDKVCb029786; Mon, 26 Dec 2016 06:21:36 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Mon, 26 Dec 2016 18:54:04 +0530 Message-ID: <1482758645-23057-12-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482758645-23057-1-git-send-email-shreyansh.jain@nxp.com> References: <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131272321005179245; (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)(39380400002)(39410400002)(39850400002)(39400400002)(39450400003)(39840400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(76176999)(305945005)(50986999)(8656002)(356003)(2351001)(92566002)(5003940100001)(38730400001)(8936002)(81166006)(8676002)(50226002)(81156014)(33646002)(69596002)(104016004)(36756003)(68736007)(5660300001)(77096006)(97736004)(4326007)(85426001)(2906002)(6666003)(189998001)(50466002)(626004)(2950100002)(6916009)(106466001)(48376002)(105606002)(86362001)(575784001)(110136003)(47776003)(7059030)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0746; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD016; 1:QOoOYwN55a/w/+ahtjrfEXEXRf6k3mlYFJFLSWj/4LHnWf8xBA5SVZvLZQ0B7wTW0ksjf+PAFdWRw+b3wPxFT7BuzTeWXRnC4Ztv4v9yADyU8++uoOtEFYkaPbJ8v2cxDw6wwow/ZJnaOLnKX8JPSv9Y0vvZkQ2hvyCShtAh4CugrnZbKXMXHM9jjIAjvjdXBwkuQGRXureiWihUVI9OeUH2jt23is4F1cKbO+iUDD8lNKDDh04TVuKxZD1FcPw5jGPooaI7kchTEtKvAANXhb4XMlm9k2GGggGd+vuvSeSEuLHzZhrbbA7iTIggpfDcv3BsUMp5AXVcGwgn3O1iVHgWIn9nCpm2WcM4CAIPvOQ4RZHi0Ji5fCKNjqjMmsSjN4D5knLsR/iqVmUMKTKaiQ377kvof7TK0AwbrrxBBzjexMo8qFpCP0HxlhVeQp5hMD4sMDr0f+eDVkDrH6n5WQhlZDLez8ocLobkkvF1CuJ/Uo4r4ZryQAfmh/VVow/ZvPA4VKtwbRBazYRwF6vNT5siwdplhZn4/WBUOdEVI5hQMGpt4U16vi9+oGXdcfEM4wEmsglC3jL6mEnNqb5z+9UNsughZUWPZu5kKkzsh9mPgn918LFHeMQjYlTOh/KGn7Rh1L/5+Yd9zMZzPMo8wpJpcRFjGHxmQl4HhhC6itl2fBTFeY36eT/t6X8C60GvuP3ep07HhHWAVhX5Zmq5E+aHwSETAmUbnYtxsDSBOZA= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 22ff71c7-4a4e-412b-d16d-08d42d9220d1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0746; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0746; 3:isZ3l8X5mu+RPRhC5jlpfauI0zc2FwNS9Qx7Z0I99JBI/dmxRcWW4kb503FMeoMYM7NkxGciPJ5ngIfhYqaLh2nQRzPbFn65Pnvs4vbVuvwcWcDeNDM24BvIEmWaA2yDMx+j9S3TJKQPM4KMi+WRumSj1qEmOfREoZ0OJHNBr1z055W1agNC/EazkSwxkhMFdUESsLfO41CFZb1ZQkbk7Lcc/QGrBabgRBfEv6fOzsyC5qMBwco/2l/80OXhmoGRc14xV9Lzs4rAmE/J6HnZYo2YEBeTIGPtonA3Z7V/R8b8fwyzMLePTxf890roy6cfh+wGJkIy/oZ0+7ySDf2oTA5X5D7n6NLcLGWC6/DuiNZhUw86QeMGno0s8MiCeTTg; 25:rralFjuznYCdZ5hTV0S0iTiTljAxITACKSnusMOQCM5qOOCsd64Uv8eZN6AcLN+oBmpPMJyMPo57v6jft/UvJr/vVC3z2CyIb5XLKPB3pTEFr3rcwpj1F3WY/kWXlZigLFML4auBH8BINSIIRNqRnT/uKHpS4SyMBabBJiM/gjoj6VH3KxVOsEAftPL69vnRZXQCADVBDvQYfrOiTk+YZPa7vBpIJTh4ICjGgIvmmrdUYzMQ9Dr9YlcV/cNg+Rn4QolA4rYMSO8orpEh3KH+I1Z1k2np6WsmGfJYST5zW8yGAo/EQiC88zOUlbhdm6fjIzn/MTAkBjQdK0oZoTL75kYKMfVHGxsvCUDzFu5QHeL5pKXNQMHsD9iIvUDoTHdhD7llHq2k7Dv6/YUYVThG4XxH2UHGzVUiYmICRKiz8IC7FdJqRYSGPLqrxjOtNs6GMdxU3CXRGDmlJevI65t8pA== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0746; 31:qiWBMZclV2p2T5pudKgZJMf4rXOHQaoRy1Foa/jlJUZc6e6M0T7YpEYU+WgME1v2IsSJutSLCj7Uj6+MIOSaxdH0uVkInWARsyDFs4bV+pRLS0cWmkRpxX+vhmyqx7qn8ARBc0Tf1bWnPVVDpwQJFxxjS/utzqxgsK82/ibf3Xyrii4LDJS+wXHD0cWpWYRsti6nJclS/vtltiA17zFhBL7h0AMOvTA05+OoWgqNYNO2ZxUSPuyVO4UyXheihmiyHdetuTsAmKttn2dWg2K1hg== 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:CY1PR0301MB0746; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0746; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0746; 4:ngd88b71oWOr10GzLxa2IvCO5M5IGDwAI+u0pI74+akflzjEODASy75WHop1zjUdLlb02YPelC/R/8xqwWAf6/qPwB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LibfBLwrnQY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0746; 7:ZEXoOjTE4FjkwWocglhAaChZZ84Y4O6o0pAA8y5E2HSzaXGTj1Qz88Njz6pg1NGQZ9RLaCnIpxbRjRfH5mNMFY4MtmLFGGqtPQdLpzfjTO9d510Uc+Qqbad5Zvl0ZcppoOnHSlhh97Us8zO5Py8yBqnJ/G0WPWqJxYvgeJX9gXyhrmYtCTOmXV8OJWTMfHQHyLOBlMz3H7ulkSQTRXbnReYNA0+qqPYdoeiXKGCLqxMjrhlkEIyk+p8IFfsUfWxpauskUOxVdxbODzpUMCuudENBWmewl2x6Qb7t9Ps+7HcPw67Bpx1XbZenCb9wNFQ4TQflnlOWNqv2YBWj+jryHOmT39uO1VqiA8IafEpRnA7CB5MzHHEf3jbsEJ7z5mrOmh5PJyy0WwMNT03bAMTjyvvtAIoNUWmZ6hV/Gn3UxLfBU6BqbCFCqExrkEpWBedhXyMq0Q23FkaVsN9Iko3LUA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2016 13:21:39.0203 (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: CY1PR0301MB0746 Subject: [dpdk-dev] [PATCH v5 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 13:21:43 -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