From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0041.outbound.protection.outlook.com [104.47.34.41]) by dpdk.org (Postfix) with ESMTP id 019BC6883 for ; Fri, 26 Aug 2016 15:58:19 +0200 (CEST) Received: from BN3PR0301CA0024.namprd03.prod.outlook.com (10.160.180.162) by BL2PR03MB1874.namprd03.prod.outlook.com (10.164.115.18) with Microsoft SMTP Server (TLS) id 15.1.409.10; Fri, 26 Aug 2016 13:58:15 +0000 Received: from BN1AFFO11FD022.protection.gbl (2a01:111:f400:7c10::100) by BN3PR0301CA0024.outlook.office365.com (2a01:111:e400:4000::34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9 via Frontend Transport; Fri, 26 Aug 2016 13:58:15 +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 BN1AFFO11FD022.mail.protection.outlook.com (10.58.52.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Fri, 26 Aug 2016 13:58:16 +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 u7QDvHpu023630; Fri, 26 Aug 2016 06:58:13 -0700 From: Shreyansh Jain To: CC: , , , , Shreyansh Jain Date: Fri, 26 Aug 2016 19:26:57 +0530 Message-ID: <1472219823-29486-20-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472219823-29486-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1472219823-29486-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131166934962185378; (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)(1110001)(1109001)(339900001)(189002)(199003)(81156014)(2351001)(97736004)(105606002)(50466002)(86362001)(2950100001)(356003)(106466001)(92566002)(87936001)(5660300001)(50986999)(8676002)(68736007)(575784001)(626004)(81166006)(77096005)(36756003)(229853001)(76176999)(48376002)(85426001)(11100500001)(8936002)(104016004)(33646002)(8666005)(4326007)(189998001)(19580395003)(19580405001)(110136002)(7846002)(305945005)(50226002)(5003940100001)(47776003)(2906002)(586003)(7059030)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB1874; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD022; 1:/t8JMTOoz1urML/+96qzdKtxrIXq6pEmoYsTqst5lsMuRI9dJjx70F9EOI7mroXp0MVsNO1W2ukOkLru7nQJFJ74K4TK2N6KP2BIBwiwQ0zTm/5YNIL7TG7u3cbENv7+z3nxvDegD0VlPXyhH0QK0pm9TXQ5cRMpxfW2PKHHbInnWAoujdUf5WJxQNXRM+I2BWeBvgmbbEW1en/qSLaG7JkW1jksVSFqaR6x5PPaAizLZSCTfpVcFAHoRTW8En84fOHGser2Nwrw3qUo4hlwcfb3jJ13uR9ZXafaoPVVvF/wW2FcKD5suwGv1v5QCJ3ts+V/pBUZFa52bjQyPKZPNhxZYDOSkMQ0qjexUUr9YTpK390OrshssjfYwNtdbcoH+7KgdR7pjGsxBKMtYdRQS/ZNKKxDOiRDHvWLVjP57pv5aASr99thHCk0QxEAJPybE7//UL+RsJ7z0ZDCIydtNh8newm+Cdqh557LeZGLVK6QnR/1pNmVPZ0A/JEICm/AbHcGXiLb+r9eachvqMvl6TRuY/ISryrq3j0xa2ehUNSJQgl7ThE0wRZmV+mATUu0bXE1at9CEvEu0TMKaKsbGFq5kp9gaSu4MkkLkrYjhyxX9S/UVVsGGTr2OJ19UQ5vjX5iABjviib+fSO2dqCPZRsnSd4TsNeWYWys1sbHn/W+Os7fxTWAfMTd4JllmrN1xv04qyRO1FMP7P+h+NUL3e16KacYud/ZNIxUhVGp6eU= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: cf5780e1-b80e-435e-4341-08d3cdb90727 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB1874; 2:w0jaubPJQAillB/RAni3mwXNefhsFjIRckHB+pllwXEBDPjs792mWgE9mAkIL+skfTeznGsNZ9rgGXN718cVYeKP/Szw3iTB867tE+FEBdSr8uXMsjadUeI+SqU58IwME2rcDkmSJaud8jJQ0mIW2NYo+8fE3QYlH/RK5KrU/68CYl/8Zri0IHRu0XSRHNZl; 3:WchaxsHgIs/1+bBSXVKXQNmJ57znwiD29fWXBeDivRAPaVYQHWsM7KgJau2kd/xWtaQx/fK7y/izdwFw51sLYT5xsAFuPdrAE0XEGkKde27yjF1IaXWw8RW4/wbrwXrQ047F4AL/nT5DlCoVyae9pRTFT6mFBrY/lDKjQC14/NpV3cOBJWgATHO+CbymVIxsxwlLdxRpbSXFY7n5oFm6XWI44ww5ut13mWo1B1bO4pU=; 25:Lr9iFNSZI+KZlmNrwX3bfPmAXnCMaoNAPXqWHJfsqpyW8UrMLfUjcVr1lu3rN/LAEBiyFe4MNAm8YKD8LsiRiXaZ3aVAdZk7RcTAwKG4kojqx9LXPzw0o8eTrDuB/AuPRwCjHB2ijEpSVx+6Gvw/wy6HLe7Sf2oXH08N4dA7ucF/4mkYV6oOkj8geBHSNq38e6THp0S3fvmzh4kjKUT6ES/1ibhn9AB+17gmDCeXlEIwa/C3AfoeA2GkP4R1vXULi07xzJ9itGMg34Cbm++g4vKhH+TmzvIFFfh5l/6Uv62wM9ArVJxWusPLVkWpi4HYG7dePDo1V9RfZFc6QZIaag== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB1874; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(8121501046)(13024025)(13023025)(5005006)(13015025)(13017025)(3002001)(10201501046)(6055026); SRVR:BL2PR03MB1874; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB1874; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB1874; 4:VxcAj1Dy2SVwEeAs2nAb7vLABrkU3Xfwq9BCMmp72DXHjsBIfnauWUIqLLkZdydSafSVWhGfzTZJOlzDPi7hJDtQGevfTN0zE7dOdvN008suljAyMWEHw/elk/vh8JVsLOhfrrsiTCBk+nLkFHyHWdjO5/MoR2K2cMxaTW7t9Z8+8EF06EHHsaDHiduGRlVe7v/J+42I8ri7eXeMU2q9UVJxwQyfAk+lkcFAOcs6TuUj0Tnpeg8ZkXOPB0jp86dC3xWeG+JK8WSc+XGvBILcxrMzUoF30iKIc2jeYtB2uwiXyoIIenCxy07EP8XFAx/0LWsrRjyGe+237FFJ06eQ1D2h2/GcL+hwS3eN71KxCBaasCBM3Y082LlRU5x//JOWkNJGK+sLBuOiYcRbr1qa1YDs+jocCiJAdtW7YDB/sc7Lb3qz3lKZAcIMY3StMP3N7QuVmWNpXI13CRqMgyNQRu9jksQTZ7m9/smAgGUJFuacpOakPdlhqSUYKIewrnvg/H8x4BBsnz+TK3Hm1DnEfg== X-Forefront-PRVS: 00462943DE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB1874; 23:joPXmyYIDIQWQgTo5ealN0myxjOSPXDTw4o5b2oPk?= =?us-ascii?Q?0ylqYF6H5w8eMmc3256kSx7pVAlW3VcuNLq7e3Eaym6a4Ak8FK8HBtYTnXVm?= =?us-ascii?Q?ubcQ0c3tsnl7d1LBoCZPWmrOAKoNIEzU2FfunHqCj7rNrdDgultk8dQ5SpAJ?= =?us-ascii?Q?bDn/Do4MZc39izS25W5Ym1lsT359VGDZTyeLTOiJG90KDdBEuX07CZE63KnX?= =?us-ascii?Q?fZ2v5EFmQKa68Jnxi/i9+9LGpkXnozTX8E1tXAHWUdbuRSVe0sDbtSKeCzwh?= =?us-ascii?Q?msrUuTXfAIhSi+LU64LZVF7c0Cgk4hS5Nr+3eF5W/c2mlN7FIeGWd88SO5nq?= =?us-ascii?Q?CbvvFZggUmounyVtmMGINltW2E8N1ZbgqnUnSage9Kx4AraxAck9eWvkzkZL?= =?us-ascii?Q?uaCKXFDtxLp0GwNhlu3688DEJEbRZc9fyyManpv9/5JswE32lLKIn6piBdmJ?= =?us-ascii?Q?anv107mB12V4e5w6aDs+DvCDNauEOUuuL1nb2Chx2HMfLxY50vcUqyN1ebFa?= =?us-ascii?Q?njU6BbyGGxwGMQphv06CGVXerzA3jzUA5MmkwKrIT0icJ+eq3ZqX+z69WMrC?= =?us-ascii?Q?zWJkwqaYRR/LuRRUFVTF9YBlXcPiCyh5oU5Hqq4k2tz5PAmhr8kcVKaT5XH4?= =?us-ascii?Q?Xh1aVv2F5fPPEFEgtTlvWyRa391BnNPjvXKg0XtoW2s7l4ptmYj4pLasPNv0?= =?us-ascii?Q?wUXOJm22syQqlNv7BW6VfN4NY5Owkko52Wij2vRRkgIyM2K5s6FLMyllVQbw?= =?us-ascii?Q?lmHEmAZJbpdqln8r7TSJfFdzHGb8zv7X6mN3LU6vNz0a8TgKoFo6suuBl2s9?= =?us-ascii?Q?nxD+JIf1upOnPrGX3j3YDXuejSXbWVBlB321EqNvVIHKvn6RKsuM+/kbteES?= =?us-ascii?Q?DOWymlZ3SHNtclN/zwK00Tcdx2YhdWRJFuFolGdIqJwsYvDwzQ+HTMqqd4wq?= =?us-ascii?Q?VjlyXJlTcbTa8ILCbdNfbrq76FiOmTW3AqToAXl8P8gH09XYpURZXJeMEAoe?= =?us-ascii?Q?BpKTAzHhfeo4LmhcyC4s0kR386RbRDN6s2A+XMh0tEXbCUi+GZ+AuOEVuDTZ?= =?us-ascii?Q?TuG4Y72ykg68YwegVVUY4rMf0Cn3hgqzPl3NUzXKFPgryt9bEDqW8aFj6qR6?= =?us-ascii?Q?1dtzpcwSBpseokRmlu+HtL1ScPvA88ObFDMsBCmela9EZMhamvUwQK0+nTUq?= =?us-ascii?Q?a6yXm8Wje4TbhSpyVtvLXrqVzpZ9l32Mn0tLz6SIQDJoZbvyCTZlOtoDjkrn?= =?us-ascii?Q?IrClVAl1tGMC6zfWDE=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB1874; 5:BJjkXXNUSNai8p1mkV3abqoJ0NP+PJVQaDpD/YriuTIJMWTMFyjj4AYis4DXJUIHsTSewWXgCpHuuI48Z3+Fo71KTjoPdS/N7y1G8B2DuC4I64slv5dicTh0Tt+AEh/qWWZE4ksVKahsRzNdmmrel7GbBW4jamNjLYTk0MffVgQ=; 24:558lc3LiC+vpmMkiYmVPlD7nMQuQt8xLhrg02EOT77khTK0dPwsB57KwTar35oAsr954jEPllqHoy8FzjEZZsTyLqfIqPhgR+rlxqOLbuWY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2016 13:58:16.0001 (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: BL2PR03MB1874 Subject: [dpdk-dev] [PATCH v8 19/25] eal: remove PMD_DRIVER_REGISTER and 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, 26 Aug 2016 13:58:20 -0000 - 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 0bbe130..7203742 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 3097194..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(devinitfn_ ##drv);\ -static void devinitfn_ ##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