From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0088.outbound.protection.outlook.com [104.47.42.88]) by dpdk.org (Postfix) with ESMTP id 421CA68F2 for ; Fri, 16 Sep 2016 06:33:01 +0200 (CEST) Received: from BN3PR0301CA0007.namprd03.prod.outlook.com (10.160.180.145) by BN6PR03MB2433.namprd03.prod.outlook.com (10.168.223.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Fri, 16 Sep 2016 04:32:59 +0000 Received: from BY2FFO11FD056.protection.gbl (2a01:111:f400:7c0c::179) by BN3PR0301CA0007.outlook.office365.com (2a01:111:e400:4000::17) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.629.8 via Frontend Transport; Fri, 16 Sep 2016 04:32:59 +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 BY2FFO11FD056.mail.protection.outlook.com (10.1.15.193) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.619.6 via Frontend Transport; Fri, 16 Sep 2016 04:32:59 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u8G4Trg1029256; Thu, 15 Sep 2016 21:32:56 -0700 From: Shreyansh Jain To: CC: , David Marchand , , Thomas Monjalon , Shreyansh Jain Date: Fri, 16 Sep 2016 09:59:54 +0530 Message-ID: <1474000200-16705-20-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474000200-16705-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1474000200-16705-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131184739797682812; (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)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(110136003)(11100500001)(36756003)(48376002)(586003)(85426001)(4326007)(229853001)(92566002)(2351001)(2906002)(626004)(189998001)(104016004)(19580395003)(106466001)(105606002)(87936001)(19580405001)(50226002)(68736007)(575784001)(86362001)(33646002)(5660300001)(97736004)(7846002)(50986999)(50466002)(81166006)(76176999)(8936002)(8666005)(81156014)(356003)(5003940100001)(305945005)(77096005)(2950100001)(47776003)(8676002)(7059030)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2433; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD056; 1:U/AyYVxD+RAmyo5Cw2EZX4AYuzQtxrGB8BcnFJ8k0MiCbyTCKEK8oSuPdAvNxI7sHMO+gcQqPo0bNYMvlojO5KHEEX+2OdgeRjgvChUs8JcOzTlZs4onxRFOeYXZnpB+uPPzK5AeJZnfu1FAehtqH6mVIpk3qpxkRaOM+ZrKnp6LyUx1vQP8FLv8S+iBNjFuaJEh5YvHGo2g0Nxwh1Kt/TBgaKqh1y91AOD3daGo343sJp2lccr/hUyunhCHpQlul+Q5L4iQZ+BialBtbrgz55hST4fhYOZdNI6JREsie4rvCGwUE+9QQEdQHHRKHVlzwY1GTBfaRvYvIf6BbHrZCS4bXKrHplWVnwtT3m9IGRPkPQnHQmjTI5Kmbd7QX4smoDU/mFfKIUzqGg0NLYBY2THGkTz4VFyr6vXPm5o8j4iOFTj5ODOxS4MbwVxzGSOWRiJTcsNZYFa9baaCoX5tPWPlV6cMemUY8BJbYvOKzXTpEehczGoadMoAGBAvDu5jz1LJAp/58LjAr0c/yQIIWDeTq3n5ZAyV8TRr4KQAHp9Av5AmcMql1VYR3zFbRwCrrmfIWKXu7pwGepEKyktGoKQ1L7/sdcts3UzUTdJmXuMnr8c/1r/7eO5sLNGtacZJ6BpqPkwDA7kReJ07JYWSrA9k5QgByUe4+UAnC1JzqzujgzLF2MbTv21Ge9B1uU/OwZ2UMNPw82V9qyqL4fYGbT6SxIcgFI0RpNvuYXWoMRs= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: eb9092f9-ca6c-4b8a-5e2e-08d3ddea89f9 X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2433; 2:ivymBldvQn5VSy6b+KpgTx8dMIaN6muswx25oJnM86DX6YDg1aAnV2AuLcxMkwqkyn4rAz8SFJ3KCyxGcFrIliOPHdMfS/pkwZuXgSUa2HLpO3yxViM/4sXcTh7/xf9ARhJHuVn79oIA/xbevwu4u+fuOu/TtOFDrzTXGPuRhR0jURUjiADj1/WPHgmaKt3Y; 3:jL5nTUTNaoI5r2HZGnXjeoh8VNWTNvJ4xfcpvlRZN/i2/nMouXGBra4sc9Q2gN72h3Kjg34te0AIQDopn18QJKR0nibsIeQ9E4/3H6K1Jma9B4KkjNByO9YzDs2xUON3X0P7lQMU0/7kMtd3TkPTEapTEoowjrcRJJUwgHuYlWduaO7LdC6H88KLNBQ/Qyn+Ry7ZC8hjhB4cgfs1kHKWGhbEFROtZ/+uoeft182461M= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2433; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2433; 25:uk24a4v1gH9ExorFCNm9YeVXaM2qnFRjmxua2M9q1s0zl4fYYlSYiiIiYPIDgH5zJ2Gu2KA9vPDsNyohommGevi6lDMgOJDpnkpjmlcy0WMVGlsmwD0DcnUpK0VVer46xnL+z66BWIQO591EtoDzOdyiP8YXhfwlve+/mOsuEGRu0JNedA1aKJ89suLSLG1diXPVTh6xcgg8eUCecHj52WF+IEt+ZEKZkIPDuAw5TfDnGaKkgNwTdM/L22cr7iyh7Cgj8h5M49FwWKqtDScbC9ev/IOmxHDY+f7Y/j+1lh/67JsEk9VHtgGp9exce4c91Ux1fgSz6AWVhxdyUKKWxoaXTRBRxNW7Ur0P0OP773rofbTw7fy7XHM8D9L9qydQiuRxyjNcJ51C5zgxx9x28fTaeM7EbDVJO0fuQQBvzp/lccbHRl9a+amaFIc2+uNrkvXeyjo5r1tYQjInwElFfrEc/0JLLggN5mXBCz1KwMKrKQG/OsUijYEqlG7UlmoPjwrwHHuheBKVzHlpg9TssgFxEmEawZRXNXLZ9qTi7P1itFMKVV8s3Shhbv3o8LorwSzQ3XgnkE1qQw7MB2BIBx4jynqtmLq5QI6FVObnsjBzJK5G7YsqKK5WM3BFdgCAahBQxkXehMcj4daf6b/xUTd6bPk98FDCGwApgudAFSnC3e/pNEEYRTyey9jb279yWhs61usa63k766WvX3ehQg==; 31:tpV1pXA3WNas4NiAHlozBkJO+NxHbNlxUBO32cT6M77ibYxIxV/E0o1aqHR9WGErVAQ5HAhQG2TSDfj3XuWDg2J+1faYteGkEU4TaDQTmmJXZm5T0H9DzTW8U1jZqgxcj/iMmc2eKXJG89uSI9JgMJLmDpXnk4NCcsT2O08NxbqundUxW2DpDUkadAvenOmdMbszEnMGUQz/xTUxq1TldupsWZ9/qwfSR04NrF6eGbg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(13015025)(13017025)(13023025)(13024025)(13018025)(3002001)(10201501046)(6055026); SRVR:BN6PR03MB2433; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2433; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2433; 4:r5UsmLV3r4TknXEEUfyAcveJfwfYdWCyircvN1itBYFsOzv4rVZXqq6yGDmiNf6HBdxrAhJdJs+y2+EMzDiKcR2IS9fbm315NZ2sBnmun0QVrY6wNonu19TzCoEFqtz3f7AtLHcTHjqa8Y3cJMEFM5wzC1gPE0ZE1j/qu0auKD3EdJ5I7Gjqg+8nj8WMEEwRU5ppgGUyFWm/SClIlRCjTR9IrUMGGucPyHIdl/J+44gl/cMcKPwgsJHE8rFsjUasrVPgoQ4F5OSXk8jo4gDLrgyOWgMZEeYJLelXoWhIw0UPgJaGUZZu8Xgc4mboOxND1gqjx9oGZoRiZ7tRQgT7yuobUFZnws9vu+FA+5xwA6teNJNnNz7QupKEBznz0Dt0xDrtelcGNMvg8P7BnUyvtLA8D854JeGG4ZtKIio/wdkmyLjc0K/gJuu4cilj7Fpn+1GZDmEyXhD+blZ5DwV7FnCbW5MTM9DoknVC+JLr/vXvAIWBRP9uSYqnqYoi2Nb/9ochjWMRjQztRRppvvCk3e5Pf09cq0alx+8mmPiRLHM= X-Forefront-PRVS: 0067A8BA2A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2433; 23:/Sd1e1UePTonZAdgObHlOyxd6MsEatyMuUhAqsEFy?= =?us-ascii?Q?uQEqdXlT2aqeoXxLwDHYov1Vkk+ohoKMfBJI3Ctxj+tqnCO+Z8u3kvTjT6uI?= =?us-ascii?Q?gLl4xrA4eJ+GuUW0autkbj3YUbHtPlxudsLJ+qjSVRLRKMBiM3tqsBZJsgTI?= =?us-ascii?Q?bPiVIEV5hEp1P8vNrjkrMbfQ4dStjyn3AMCDCx9D1U51w4VDtYtsdEXOlGaR?= =?us-ascii?Q?fdepoSAZjTx/c7uUrfM9p56bXhx1Vsz4cKfVTj7eQ7ItN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enant-OriginalArrivalTime: 16 Sep 2016 04:32:59.4406 (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: BN6PR03MB2433 Subject: [dpdk-dev] [PATCH v10 19/25] eal: remove unused PMD types X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 04:33:02 -0000 From: Jan Viktorin - All devices register themselfs by calling a kind of DRIVER_REGISTER_XXX. The PMD_REGISTER_DRIVER is not used anymore. - PMD_VDEV type is also not being used - can be removed from all VDEVs. Note: PMD_REGISTER_DRIVER usage by PMDINFO tool and its documentation has not yet been removed. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 3 --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 3 --- drivers/crypto/kasumi/rte_kasumi_pmd.c | 3 --- drivers/crypto/null/null_crypto_pmd.c | 3 --- drivers/crypto/snow3g/rte_snow3g_pmd.c | 3 --- drivers/net/af_packet/rte_eth_af_packet.c | 3 --- drivers/net/bonding/rte_eth_bond_pmd.c | 3 --- drivers/net/mpipe/mpipe_tilegx.c | 6 ------ drivers/net/null/rte_eth_null.c | 3 --- drivers/net/pcap/rte_eth_pcap.c | 3 --- drivers/net/ring/rte_eth_ring.c | 3 --- drivers/net/vhost/rte_eth_vhost.c | 3 --- drivers/net/virtio/virtio_user_ethdev.c | 3 --- drivers/net/xenvirt/rte_eth_xenvirt.c | 3 --- lib/librte_eal/common/include/rte_dev.h | 18 ------------------ 15 files changed, 63 deletions(-) diff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c index c93ebfe..fc939fa 100644 --- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c +++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c @@ -515,9 +515,6 @@ aesni_gcm_uninit(const char *name) } static struct rte_vdev_driver aesni_gcm_pmd_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = aesni_gcm_init, .uninit = aesni_gcm_uninit }; diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c index 30c0706..2047269 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c @@ -715,9 +715,6 @@ cryptodev_aesni_mb_uninit(const char *name) } static struct rte_vdev_driver cryptodev_aesni_mb_pmd_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = cryptodev_aesni_mb_init, .uninit = cryptodev_aesni_mb_uninit }; diff --git a/drivers/crypto/kasumi/rte_kasumi_pmd.c b/drivers/crypto/kasumi/rte_kasumi_pmd.c index ba2829d..d1b0b99 100644 --- a/drivers/crypto/kasumi/rte_kasumi_pmd.c +++ b/drivers/crypto/kasumi/rte_kasumi_pmd.c @@ -651,9 +651,6 @@ cryptodev_kasumi_uninit(const char *name) } static struct rte_vdev_driver cryptodev_kasumi_pmd_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = cryptodev_kasumi_init, .uninit = cryptodev_kasumi_uninit }; diff --git a/drivers/crypto/null/null_crypto_pmd.c b/drivers/crypto/null/null_crypto_pmd.c index 4c12faa..bd139b4 100644 --- a/drivers/crypto/null/null_crypto_pmd.c +++ b/drivers/crypto/null/null_crypto_pmd.c @@ -269,9 +269,6 @@ cryptodev_null_uninit(const char *name) } static struct rte_vdev_driver cryptodev_null_pmd_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = cryptodev_null_init, .uninit = cryptodev_null_uninit }; diff --git a/drivers/crypto/snow3g/rte_snow3g_pmd.c b/drivers/crypto/snow3g/rte_snow3g_pmd.c index 10c6b83..c46d7e5 100644 --- a/drivers/crypto/snow3g/rte_snow3g_pmd.c +++ b/drivers/crypto/snow3g/rte_snow3g_pmd.c @@ -639,9 +639,6 @@ cryptodev_snow3g_uninit(const char *name) } static struct rte_vdev_driver cryptodev_snow3g_pmd_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = cryptodev_snow3g_init, .uninit = cryptodev_snow3g_uninit }; diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 9a9a2ee..810ec48 100644 --- a/drivers/net/af_packet/rte_eth_af_packet.c +++ b/drivers/net/af_packet/rte_eth_af_packet.c @@ -890,9 +890,6 @@ rte_pmd_af_packet_devuninit(const char *name) } static struct rte_vdev_driver pmd_af_packet_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_af_packet_devinit, .uninit = rte_pmd_af_packet_devuninit }; diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 5fa2a93..1496cdf 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -2509,9 +2509,6 @@ bond_ethdev_configure(struct rte_eth_dev *dev) } static struct rte_vdev_driver bond_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = bond_init, .uninit = bond_uninit }; diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe/mpipe_tilegx.c index efb000b..9382bcf 100644 --- a/drivers/net/mpipe/mpipe_tilegx.c +++ b/drivers/net/mpipe/mpipe_tilegx.c @@ -1624,16 +1624,10 @@ rte_pmd_mpipe_devinit(const char *ifname, } static struct rte_vdev_driver pmd_mpipe_xgbe_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_mpipe_devinit }; static struct rte_vdev_driver pmd_mpipe_gbe_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_mpipe_devinit }; diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index be4169e..e85c67e 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -687,9 +687,6 @@ rte_pmd_null_devuninit(const char *name) } static struct rte_vdev_driver pmd_null_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_null_devinit, .uninit = rte_pmd_null_devuninit }; diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index d6718b8..2d76a7e 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -1084,9 +1084,6 @@ rte_pmd_pcap_devuninit(const char *name) } static struct rte_vdev_driver pmd_pcap_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_pcap_devinit, .uninit = rte_pmd_pcap_devuninit }; diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 77bd664..d687ed6 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -624,9 +624,6 @@ rte_pmd_ring_devuninit(const char *name) } static struct rte_vdev_driver pmd_ring_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_ring_devinit, .uninit = rte_pmd_ring_devuninit }; diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index e2610b4..ae49f15 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -925,9 +925,6 @@ rte_pmd_vhost_devuninit(const char *name) } static struct rte_vdev_driver pmd_vhost_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_vhost_devinit, .uninit = rte_pmd_vhost_devuninit }; diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index 7975298..7c604f9 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -463,9 +463,6 @@ virtio_user_pmd_devuninit(const char *name) } static struct rte_vdev_driver virtio_user_driver = { - .driver = { - .type = PMD_VDEV, - }, .init = virtio_user_pmd_devinit, .uninit = virtio_user_pmd_devuninit }; diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c index 7da0f17..ea69afc 100644 --- a/drivers/net/xenvirt/rte_eth_xenvirt.c +++ b/drivers/net/xenvirt/rte_eth_xenvirt.c @@ -760,9 +760,6 @@ rte_pmd_xenvirt_devuninit(const char *name) } static struct rte_vdev_driver pmd_xenvirt_drv = { - .driver = { - .type = PMD_VDEV, - }, .init = rte_pmd_xenvirt_devinit, .uninit = rte_pmd_xenvirt_devuninit }; diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 8796f97..3d0d2b8 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -105,19 +105,10 @@ rte_pmd_debug_trace(const char *func_name, const char *fmt, ...) TAILQ_HEAD(rte_driver_list, rte_driver); /** - * Driver type enumeration - */ -enum pmd_type { - PMD_VDEV = 0, - PMD_PDEV = 1, -}; - -/** * A structure describing a device driver. */ struct rte_driver { TAILQ_ENTRY(rte_driver) next; /**< Next in list. */ - enum pmd_type type; /**< PMD Driver type */ const char *name; /**< Driver name. */ }; @@ -198,15 +189,6 @@ int rte_eal_dev_detach(const char *name); static const char DRIVER_EXPORT_NAME_ARRAY(this_pmd_name, idx) \ __attribute__((used)) = RTE_STR(name) -#define PMD_REGISTER_DRIVER(drv, nm)\ -RTE_INIT(probefn_ ##drv);\ -static void probefn_ ##drv(void)\ -{\ - (drv).name = RTE_STR(nm);\ - rte_eal_driver_register(&drv);\ -} \ -DRIVER_EXPORT_NAME(nm, __COUNTER__) - #define DRV_EXP_TAG(name, tag) __##name##_##tag #define DRIVER_REGISTER_PCI_TABLE(name, table) \ -- 2.7.4