From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0044.outbound.protection.outlook.com [104.47.33.44]) by dpdk.org (Postfix) with ESMTP id 10B2D8D9C for ; Tue, 20 Sep 2016 14:42:53 +0200 (CEST) Received: from BN3PR0301CA0014.namprd03.prod.outlook.com (10.160.180.152) by CY4PR03MB2439.namprd03.prod.outlook.com (10.168.163.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Tue, 20 Sep 2016 12:42:52 +0000 Received: from BN1BFFO11FD018.protection.gbl (2a01:111:f400:7c10::1:118) by BN3PR0301CA0014.outlook.office365.com (2a01:111:e400:4000::24) 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:52 +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 BN1BFFO11FD018.mail.protection.outlook.com (10.58.144.81) 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:51 +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 u8KCexsi006559; Tue, 20 Sep 2016 05:42:48 -0700 From: Shreyansh Jain To: CC: , David Marchand , , Thomas Monjalon , Shreyansh Jain Date: Tue, 20 Sep 2016 18:11:28 +0530 Message-ID: <1474375296-26078-17-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: 131188489720714149; (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)(199003)(189002)(105606002)(110136003)(11100500001)(50466002)(2351001)(5003940100001)(189998001)(229853001)(81166006)(81156014)(48376002)(8676002)(106466001)(36756003)(92566002)(50226002)(47776003)(586003)(33646002)(97736004)(19580395003)(19580405001)(8936002)(86362001)(575784001)(50986999)(4326007)(8666005)(2950100001)(356003)(305945005)(76176999)(7846002)(87936001)(77096005)(68736007)(2906002)(5660300001)(626004)(85426001)(104016004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2439; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD018; 1:FV4bjaeJhS9ujYsVsiEhpzvHTAduv8DrMLdOHjKGlZ2eWN25ZnVI5DQ6CiN1OeojlzG4DR9220nz1isjm+O/aqclsCk87a96jkvdtSpyC2KHg/j4LT93YOGAtbF4nQMWG783lbTn7n7/HF6JXNnhTEvf7UXphF1gt3lNlYrqaz8oSpp2Hc4NI+EIPCtFtyZV3GWizuacpHecO+Q0+yGQ1tx9wd06iVtDXqvxdwtRK49w9/s+ngg79ES6+uzeWvFljJqwS81AYbX8GFqlg2oiOJdvM9JCcNabPTA3cqYPsXCoFTZBEGNaCneaE+UdnoRIVVO19Q0ws11s86i1AXWualS3gbgZkCNHIKbs9lDsRdj4sngIqQiiWgRAao7Ga1Gl4HNlX4eueZSdUclZpJObQPCW42UVGFCf+DgkFQftWHSPaveZ4RUwI5GONqrwVV0o+VpT0BintRgXmFG8onFCej4ft3gDr4ILT6qEQB2dSG/lX/SbBN5j3Sp3R+mo+vil8j8apvRjMv8t8c2P+fEPORQ9SyK4CVRHQzlNrMB3EaujWwXP2AoWxJHEylovpKFD0LI8448mg0MCW/5lmEBELaZ5ZxBCGPKKdTqFm9VJK2ud+KukfOKlbm2gqjToBoUCQbpHMrNeSR2p7HwvkjI1b2zhOfsz8aZbKV7gd+Hcf0Cp63vG19HgMaqeWX9np4tBuiFEcW3cCSmypCD+BDAKfk6o1quY2B/LqMKlzmyR9e0= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d9141672-d65c-4a05-ce21-08d3e153a2d9 X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2439; 2:vR6m6/AqIcUxCX4CsxQ3jWD2/+BhAWwxqSd7Bwg7yAQSaU5h0YINCCMyvgz5UYdeticLFRPp6EbGrJb6hG1Ci1FNTBmWIezSalACuM8f3faJ4Sk+CI4MyW0CiHLn3gSnndEjw8OJgd5uwpyvY2gLx1xlvhqiCS+Y2RqRxKrbOyFYfKYpbJ+QcxAsaay7jNLW; 3:e1ZlB7xQd94BDDBvboLzQZemu81Qv6+ZBhxmgTgTyaezcMfZ0Jk0I7F/S+5JTYhFPKZMzpFjYt4bLgVrqWqd/ktcihS/gPWVjuu+5FQkja+jrTj5cXfzNnCKLXsQLnHhvXQ7xVaMOGw3kzOh0lX57iDxsUXA8+80nKtKPcPsdpsFOieljgQif5Ggrg2cthT7lmk5/1/etP9vXrLrWyiwOxvtN3eD2NCqVwUOP9nXTgM= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR03MB2439; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2439; 25:fkcrGgWMrX68ZdLoE0E6fITh1wHY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TvOdWc2m3LcB5lX96QVwIzraoN3/PzsV5Vw2idLzoyEhYtxAjLBS5Rkn1BreVQsJrQWoZQhapGfdtyeq/2jVQBkj/XxplamDxYgeeHFtdAJDBUUDNYO9FnZmg2Nk2emssWOuIVO9FFpsuIUt+TooyoAbs9Bp3nFRG1LV3ckoa3p65BGVP1eO++6qEkiebclRMoI5dJRRJ2MS+WRVROwv8qDy+ABFdX1r6rGZ6ZdRhbfIuRY7ZfBLB53vC2Bp7IEFq+RXiZN4XcErS0PWDyeILWNlcUsYUFebzEMHtEz/AWXeWKjD0eoRP8JBLiM+B83rCCDklnMptsYLDS+YEJP5eL5eVUqrvCvKaIIl40q7id7lzKZ3ScONtN1yBPY+c5ai8AB1rRvV1AW48eGJNWcwzvwIM8hU21hAXqwp5laZ1Ve/iYfDdrXBc8m3ONDXo06n2tdpdpIxNUqz6vO1FWBCEY= 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)(13018025)(13023025)(13024025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:CY4PR03MB2439; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2439; X-Forefront-PRVS: 0071BFA85B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2439; 23:2rM5hLE0+NWqY6vY/6ZMZuBUDIsZbjbR7jNZPZjt5?= =?us-ascii?Q?YHVpbZOnd6/1yW8IeHGgFE6N4a/UV2eFALGivh1cMfoolhXAyjGEo3BxdljF?= =?us-ascii?Q?m1LT5Txx7iTMw8acBSOp2TkVO9SINa+eXGjL1ySEuPLYQCCJ/jmOonn+/iLx?= =?us-ascii?Q?B/8vGoE94+Yj/6HS7fEWLNRxPuvom9dHvlPHHFMgx5E8wHFY7uNd0ZQ6QNnr?= =?us-ascii?Q?3uOSyAnzgfz33r6kVvxfgaJ2OQR6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eDfGp/o9T SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2016 12:42:51.8218 (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: CY4PR03MB2439 Subject: [dpdk-dev] [PATCH v11 16/24] eal: remove PDEV/VDEV unused code 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:42:54 -0000 From: Jan Viktorin - Remove checks for VDEV from rte_eal_vdev_(init/uninint) as all devices are inherently virtual here. - PDEVs perform PCI specific inits - rte_eal_dev_init() need not call rte_driver->init(); Signed-off-by: Jan Viktorin [Shreyansh: Reword commit log] Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_dev.c | 8 -------- lib/librte_eal/common/eal_common_vdev.c | 6 ------ 2 files changed, 14 deletions(-) diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/eal_common_dev.c index 555e0d9..afa33fa 100644 --- a/lib/librte_eal/common/eal_common_dev.c +++ b/lib/librte_eal/common/eal_common_dev.c @@ -67,7 +67,6 @@ int rte_eal_dev_init(void) { struct rte_devargs *devargs; - struct rte_driver *driver; /* * Note that the dev_driver_list is populated here @@ -89,13 +88,6 @@ rte_eal_dev_init(void) } } - /* Once the vdevs are initalized, start calling all the pdev drivers */ - TAILQ_FOREACH(driver, &dev_driver_list, next) { - if (driver->type != PMD_PDEV) - continue; - /* PDEV drivers don't get passed any parameters */ - driver->init(NULL, NULL); - } return 0; } diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index 462517f..67cb397 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -66,9 +66,6 @@ rte_eal_vdev_init(const char *name, const char *args) return -EINVAL; TAILQ_FOREACH(driver, &vdev_driver_list, next) { - if (driver->driver.type != PMD_VDEV) - continue; - /* * search a driver prefix in virtual device name. * For example, if the driver is pcap PMD, driver->name @@ -93,9 +90,6 @@ rte_eal_vdev_uninit(const char *name) return -EINVAL; TAILQ_FOREACH(driver, &vdev_driver_list, next) { - if (driver->driver.type != PMD_VDEV) - continue; - /* * search a driver prefix in virtual device name. * For example, if the driver is pcap PMD, driver->name -- 2.7.4