From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0074.outbound.protection.outlook.com [104.47.42.74]) by dpdk.org (Postfix) with ESMTP id E795B91CA for ; Wed, 7 Sep 2016 16:10:19 +0200 (CEST) Received: from BN3PR0301CA0065.namprd03.prod.outlook.com (10.160.152.161) by CY1PR0301MB2011.namprd03.prod.outlook.com (10.164.2.17) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Wed, 7 Sep 2016 14:10:18 +0000 Received: from BL2FFO11FD062.protection.gbl (2a01:111:f400:7c09::155) by BN3PR0301CA0065.outlook.office365.com (2a01:111:e400:401e::33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9 via Frontend Transport; Wed, 7 Sep 2016 14:10:18 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; rehivetech.com; dkim=none (message not signed) header.d=none;rehivetech.com; dmarc=fail action=none header.from=nxp.com; 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 BL2FFO11FD062.mail.protection.outlook.com (10.173.161.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Wed, 7 Sep 2016 14:10:17 +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 u87E8BD4013556; Wed, 7 Sep 2016 07:10:15 -0700 From: Shreyansh Jain To: CC: , Shreyansh Jain , "Jan Viktorin" Date: Wed, 7 Sep 2016 19:38:11 +0530 Message-ID: <1473257297-7221-20-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131177310173610708; (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)(199003)(189002)(47776003)(19580405001)(2906002)(189998001)(50226002)(105606002)(106466001)(19580395003)(4326007)(586003)(68736007)(50986999)(76176999)(229853001)(36756003)(2351001)(110136002)(48376002)(104016004)(305945005)(97736004)(11100500001)(33646002)(5003940100001)(575784001)(50466002)(86362001)(77096005)(92566002)(2950100001)(8936002)(87936001)(8676002)(81156014)(81166006)(8666005)(356003)(85426001)(5660300001)(7846002)(626004)(7059030)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB2011; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD062; 1:yg6b3lDuQOlx1WPOAszxJMuEE04KlghTLLEuBRtaFF191Y6/R+K9W5fo6Q4dsTgJ+KXh23P29x+lg2nC5feZfAVae3BJxb+BsVnLLof6bWrK1qbzEgjI+U5oGvPlulFna/1OIqdoBqrbbNIJz+2LhPhKrCgs7B5nlKvvlzRzWqwuc3EUhmaXh8K7ckuYKZMmnF9DtcSCXobQ3ysnNfN2s9uyZWT/+ic69f918cDJJ48nczIzJXjC4bdvNvQ6Y7nztNhMKz9BO7Ic5zgdFMPzY2c2QPH5Yv3QoTkH7t1uNgASX/Q/bl25TRqtgDzAyoB2HnrU6HP0jz4cvql9jdU1ecw4FvfWiaYtLX8pSRjgUF9eG/l6JZq1N1aJxSjjtULH61lEbMSl0f9g6DUDkpHEJgip9VSYsujzok+HTXQyGa2umM9K/d/jsI/5v8AyE2xc6mFXM5JtRf8uYH8mQL4IONT9Jxe+rfIL/tgwqNE5yUpLOMxDshayeY0jYEgN+KaLuDlswepxLvO1VivEji8GqWf3M28elbqa5lYiBITpTWio2BE24bJ4ryuM7HjI0Bn45NYyOmx9ho9wLUIfBTIaKgKt73eU4YwzCFRwt6d35M/x0/3HIQre7Dg7JDG98sNI MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: ce1533fc-93b3-4fba-e173-08d3d728b1f1 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB2011; 2:vPQjK7oYEganDR5Vh1oxa/iKCOshhiqv4Rqk/U0HlBG9p3IEIKf7Cd8DPIQM+cxnYKwQgrWXiBeBHLV1aEeXZjV5046g+vFHc8/RL++cUL7OTmXfGMhk0QoOhf6I1/Hnk2pz192Se9olPNGpHFeFEi3pRx/4yxUImaTs6dJfIUbzrFIXwioD4P2P40GyF72p; 3:dp63aQul33Um4YqOOM2H6kUxe0uViwSukPR6mMUlArXYbkWBn8IKKsVYFNtZJKLksQD75aeBXiHbxmtzOdWvyzfLIA7gMrnLRsLixMtBC3Xf63oKj4M0/8xuo9Ku9abX4az8TCTrdliI5byOflXV2JyGwPCFYEqeb2EeGEDoCdLD84XAQEfY0TNpqFM0NwAimRTgMlLxwsX5DOQqAEVYo65CeHZnPq4ihmWKne3B2m0=; 25:5dPFfltxEosqvav50Eq0WgeopYJdHbJ62JzXikITwhJ8yO6EpvN2cRtlzGY00kAsVCPIluwDleRz9YnVF6rJ4ISSdQNnfZ9bMeySwvHht9VWEapXjKfy2/cbSU3LZ50YJlHkNsFrqqms/Vlw+qYESYSsfjFOWj2jC3NbwpG+KzOiod31xw5PQ/sVm7YEnewiyejWDQyLpCnAPqgFTFPddHmj5Gqnef0QF2eNzovkdQhEB784U88BRZCjyc3v65/yW2eHKISyIjlibYtqf7fj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RVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13017025)(13015025)(13023025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB2011; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB2011; X-Forefront-PRVS: 0058ABBBC7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB2011; 23:YTZp91eyHfk9CRV1j7qaPoyT6/j3ZCTnpFJCdFG?= =?us-ascii?Q?vD/NoUwtSb1oARfejGp3Wsyf47hv82VWKeFCG8/GraIq7jRtPK3lyLcda+4d?= =?us-ascii?Q?mhpBS+Ou/83PcbTRL1OrD9RRNRTq6jQUWwQmF2WfmzF9wUrhJ7parttRxkZJ?= =?us-ascii?Q?+C981Aba/Xlkazvduy80fHziX2hKUgb28LrRSIko7dGMGzqqwGzhGc0I+TeI?= =?us-ascii?Q?WuiU+yU1ovsyG0z9gb/2cBRBTKpgZAgIY3P6b1awTgmzLD0Se6C6jpRPrIRr?= =?us-ascii?Q?aRrZVTlpcTq3WsjcYIoTvZSjeGIz9yqijPyT07qfTe0RsNnfAxgVUmoumVR9?= =?us-ascii?Q?ESxb7P3ASutm1F/iGQVsA3JT+xdls9Xbu67L0cTFsnrNXnmfPfkKsegwp9WP?= =?us-ascii?Q?HG3Sauvy/++kMWB0GzrM0qEhvmAhfgW/dLMjJkoizJ/tnhkBeaInEReUQQMQ?= =?us-ascii?Q?nBR2hs5rcsHYCeCTpzuwI+h8r8gvS547YWy5QTMep7dVPyFpBLR8JtlUlhCd?= =?us-ascii?Q?ShqeDwtM1DzxWtXdDfoWymq//UbBQ/YfEY4hnXJt0q+n5lSqozX9SGjCNFu0?= =?us-ascii?Q?Y5syEUKeIcp6bJDOkkeDMbM8s5OkQ0JTplgC98aKp7XYpZNXCJQfOL3rEp6A?= =?us-ascii?Q?IUunhZK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; 5:I9eciQw5Ogd4wOibyVSJeMtuQdecz/mJKE40Dobvc87ghR5DSpeiLN7ruQ0ABCseiA6lXz+2IqM+FnORgkoAlY12yeh+YT3CVrCFKkeT26LWdh3TyiORapWD8LEyV+rstqweOOz15L617xTJfvSvA1hkAritWGC2LZT6zxnwMCc=; 24:JNG1Ls9g50NVSci7MFq7DKOukZR5W49dPkMEnlxtHkFvvWY/bIH3NkPNN2DRA6vMIOhjHqZ+Pe1Bc0NWPEgIWPwo6YC8wJnJ33xCZNdXiyQ=; 7:OVEODCRgwSuMobqi9jeVSAf0sPGQCNd2Py+isc24jX3YtGztR9OcaSer9kY4In0+yxz1FPFeU4w7fb6xqULlZYkOdOZdovQvdzPd6mUtecY+YgjpyQYjjxt2MfXYN7AllPjA0ZUeRgMD21p++TD1lcI+QnmoMAmrdUzAVXwf1dmc/fZi1OIWpAUl/pdGayaK6jgO1VKk04JyiESUIiqz3T1mJkmaG5mjFdg3x9Op5ND4IzMC7UsyDhJ6XhVcNgVY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2016 14:10:17.1738 (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: CY1PR0301MB2011 Subject: [dpdk-dev] [PATCH v9 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: Wed, 07 Sep 2016 14:10:21 -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 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 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