From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0048.outbound.protection.outlook.com [104.47.40.48]) by dpdk.org (Postfix) with ESMTP id B81918DB1 for ; Tue, 20 Sep 2016 14:42:59 +0200 (CEST) Received: from BN3PR0301CA0048.namprd03.prod.outlook.com (10.160.152.144) by DM5PR03MB2442.namprd03.prod.outlook.com (10.168.233.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8; Tue, 20 Sep 2016 12:42:57 +0000 Received: from BN1AFFO11FD052.protection.gbl (2a01:111:f400:7c10::158) by BN3PR0301CA0048.outlook.office365.com (2a01:111:e400:401e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8 via Frontend Transport; Tue, 20 Sep 2016 12:42:57 +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 BN1AFFO11FD052.mail.protection.outlook.com (10.58.53.67) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Tue, 20 Sep 2016 12:42:57 +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 u8KCexsk006559; Tue, 20 Sep 2016 05:42:54 -0700 From: Shreyansh Jain To: CC: , David Marchand , , Thomas Monjalon , Shreyansh Jain Date: Tue, 20 Sep 2016 18:11:30 +0530 Message-ID: <1474375296-26078-19-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474375296-26078-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1474375296-26078-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131188489777904121; (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)(48376002)(68736007)(4326007)(2906002)(97736004)(8936002)(76176999)(626004)(81166006)(575784001)(86362001)(5660300001)(50466002)(104016004)(586003)(7846002)(50226002)(2950100001)(5003940100001)(229853001)(77096005)(189998001)(47776003)(356003)(110136003)(19580405001)(305945005)(19580395003)(92566002)(50986999)(8666005)(2351001)(81156014)(85426001)(87936001)(33646002)(105606002)(8676002)(11100500001)(36756003)(106466001)(7059030)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2442; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD052; 1:BGXZD9hhb5/mtkF4slzPxMhpzPB029AYktrV4aC0EySoDFhxruMBD27N2YQO5gs6gZF0375LF06q9dkZMbF9REF2O0VYdIHyuBTy6GlhwHAJv+7gWzBIhZiZSh1PmswT9d5ch9M44BmJ72rL83ac6itlDIYZPNQUPpu8v8gXcAkGrWIy1kXnITIQk3kVfsQpRYCZTuuJcOzxVoC1GVnlKmUo+Kt8XA1jp7c8UO9BSGQVeDEZg4zh1bRWGXsMAih7OXjwIuIULoBj+vqerInpf6TaqpJHPPIj/a3FvGEkXgznODj2ICvCwQFBeSB/h5qW2fF1MOSAU3AIdH3lwKFZkbJndQtd6ma/X/bOfLGBoMHW0hi6QDDw8rDpBJ6oqttpiCrIWsP1z7gG+6ceREOIxQSgkurtw6Bkd8YhXxhceANEjA+YOg/DQizRCyiTm9Kfi6lZkPbhQ/pr6BSLswvUyH3pfnLEqbnpE1KeFvO9X/YoWTVyZKQhSWxBAsxLhyXQ+ZkyWqpseCzl2d7cOdg+oW2FQvSITiCGGFzecQtxVVQo03hu3Jb9vrsAT5kVfNc0thl3vC9vd9cYQGh0PG9eoj0Aj5MxtTOe8wSZfrmOquOYHSi5PfyOcnk9DX+vxqfVRsIWky59Si9vTzaUuSd/kSmW1RjWuiBf5OUCSY4F/J5rbRGT8POwsHX+bIQaeHIc7q8hLtIm6J3DH5Ft++OAbOMgtH49bSXkHfzbRDEWUiY= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 42c42398-109a-4e7d-989a-08d3e153a649 X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2442; 2:RMpvbq1MclK3XElLp88dkqvrBKv7zs6sZtfWutOXDvn0m93G1HK/J+hniwwYbB0IaoR2Y21t7JLeR7Pd42ApuX6Mt166G8FbrCKgY1SImX3wHvYl+R8XbLAPm4VIicQGLutdK0UmbxR4iLS1l7c6BiZiualA3xos02GlWXMnCaNwfPeB7wEfzP+pAkTUhrMB; 3:xSFnlSE2MEkqDziii/qUntDPpe+Sdq4j+jV8TR9RWkj0d3LrKr/BGRVXyiUNAoW2k/2M7qA150ADsEFHrG6urVGp5cMrFc08OLDLe5fxLJks0uRQh2XM0le6ndssSOlflRgPYFBIIhz+4CFw5BHpi6Eksdg7/9L2LPFXHa52ywLSW8NalQF6Skv3YqVMN1oOMfYkWQQxuR0IJF5zqsgJPX/3+HCY5v7Z1YfBVQWvtzU=; 25:vmYOh2ZvGhtWH2AykfXLkmlRrLLBMqj8fNfx043YB7Lf/1FVMSB2BEkMjMaV6q3VYTHtdOMdOldnfX1DNvIUe113TFz1WAHd55LYePDA5UKBd8tupZBkeVdXw3PKB14QP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S8hHxDWnno4Tnlq39LE36sDYJgGesMNkYY4IVhHL5pMEd8ymsXQURZrA1K6hYCSNc7pm5psYl6PzcC1g6kqFMnaQN7UXBdvafs4TwghJr3kLwIg= 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)(13015025)(13023025)(13017025)(13024025)(13018025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:DM5PR03MB2442; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2442; X-Forefront-PRVS: 0071BFA85B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2442; 23:aMLPam79xAoldBZy1TTgt7FhdKEKavAw9VSKgaBhy?= =?us-ascii?Q?T5oWQixChyolLlekjy9v7cMJRgB6iBscUNBJLKub5/mcob0Ha2KpNxinFPIT?= =?us-ascii?Q?OMnZtSrzt92jnvpBkghRFDjEC1rxAxcNMYtyDP4QuI64CTUsok94mXbyWROY?= =?us-ascii?Q?OqsgplqzFZw8eaQkdtv4YQxNVd5eURyTpNKSnUJQgQg2KZfxm25PR6TXkNwC?= =?us-ascii?Q?G+FnAkKNUSxbRU5++aEmwpgsjdL9DKnTnqdSE2wIxqs0JWglNLgpWSF4cbin?= =?us-ascii?Q?h5yshSy9D/ZgN7w/qrxNcQd6GgKXfkgUd0m2ga4Oxqnl/fX1hVUKm/TcvubG?= =?us-ascii?Q?cLJNjs+HVavp1sXLcnxYzeFeKs84f/r7vYz7OEAXCi46FvIx/El4Y8ym6q/j?= =?us-ascii?Q?OQxkwjI3hdQMfIoEEh8XRDdI+xm6eOj7uIr3QwsplFzYUjtdiRMR/w3SClFG?= =?us-ascii?Q?9/RP1XLQfumzdO19MSVcQyqDXHileQcy2jQY5tuCQyqZjzQ2bTcJpghqF3At?= =?us-ascii?Q?SDBu/EM4K91yAQmHj0gwq7kIdMu1F+/J+9H0E+q0G6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slGHIuKkPJoqPitFt8kI98BOTCFxt0suxL4NZ8qxduvYY3K8GCKUHSJkJhH7ij8j7kJ0Y95VgZXt71SB1DtWVk010SXuP6Hk4HzhgfI0=; 5:vadENX71QGY2Skp3QhQT61pdYPtmdBl/GQwYI8n3e99AB4ZS3QIZNqqqJu2urYCkCMmyY2BkzaSyrZ6l+sp2vCMaphkd6+iWWmG93DSqicNvQHCzSnOHdYSEKTay3a0uzu1NNLD7qy8YRM7H0/3QEso2ut9dVOGWUPQOmEpPJfI=; 24:LzGd1vZRGF5JVMMhobd9gjZvtPTaSqKU8zApuh9BVsBcoyVWHqSngMbMtV3pnWjCDm9eqtXYqnF3LWq+e8gL+ku3QCLYdLDGbKYlkE27RuY=; 7:Pz7kGD0ADTTOKLGEZsvi5sR4o36HxvoFza1mMsq7xW0SUPBLFcWQWW4tsFi4LbY7H7rS88rkuCgM4AS5132vAaqEec7f16+UCecEmzwNcz8SvQBeaBEYYHRsozfaCui2GB0Ki4POR6qAZEYcYUbyrkzi+WJGcb5aeWgNiww+x9eR2SQPAm3g1JOWUh2zXLVVEkaCCRrquB4hLCRYnb116zT8/H75giRGgUD+hfd/9pT6+wI5oill/cuFJJZ28F7xxEyuwNL7phqz22rU2JzJR7rV5/qdk0od9JnO5yeEdI/Jynl0BUckYvAyAJ5Apvmp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2016 12:42:57.5876 (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: DM5PR03MB2442 Subject: [dpdk-dev] [PATCH v11 18/24] 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: Tue, 20 Sep 2016 12:43:00 -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. 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 050f8fc..5f48ead 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 e19fc5e..9202481 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 135b78f..5b2e8cd 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 c83b62b..2adc43e 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 8c7f6eb..29cc54b 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 9cdeb51..ee435c1 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 01a1f18..1c41613 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 50de484..6afbf39 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 605aba9..4ade78c 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