From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0052.outbound.protection.outlook.com [104.47.42.52]) by dpdk.org (Postfix) with ESMTP id 4E32B569F for ; Thu, 15 Sep 2016 09:29:07 +0200 (CEST) Received: from DM2PR03CA0045.namprd03.prod.outlook.com (10.141.96.44) by BN6PR03MB2434.namprd03.prod.outlook.com (10.168.223.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Thu, 15 Sep 2016 07:29:05 +0000 Received: from BN1BFFO11FD035.protection.gbl (2a01:111:f400:7c10::1:115) by DM2PR03CA0045.outlook.office365.com (2a01:111:e400:2428::44) 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; Thu, 15 Sep 2016 07:29:05 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.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 BN1BFFO11FD035.mail.protection.outlook.com (10.58.144.98) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.619.6 via Frontend Transport; Thu, 15 Sep 2016 07:29:03 +0000 Received: from [10.232.14.87] ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u8F7T1F0016072; Thu, 15 Sep 2016 00:29:01 -0700 To: David Marchand References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-14-git-send-email-shreyansh.jain@nxp.com> CC: "dev@dpdk.org" , From: Shreyansh Jain Message-ID: <4d5e4a29-0942-d688-3ab3-ca0fb519bd89@nxp.com> Date: Thu, 15 Sep 2016 12:59:29 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131183981449342690; (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)(24454002)(189002)(377454003)(50986999)(586003)(68736007)(54356999)(76176999)(106466001)(93886004)(11100500001)(31696002)(105606002)(65806001)(110136003)(305945005)(626004)(81156014)(86362001)(230700001)(8936002)(4326007)(23676002)(65956001)(2950100001)(8676002)(81166006)(31686004)(104016004)(2906002)(97736004)(47776003)(4001350100001)(189998001)(50466002)(19580395003)(33646002)(65826007)(5660300001)(19580405001)(64126003)(8666005)(7846002)(5890100001)(36756003)(92566002)(87936001)(85426001)(77096005)(356003)(83506001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2434; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD035; 1:obfyPsJjfEr7+Gw6+v6G+vRh5gUJzCJe1lBZPmXWzJyHUnenZpNxccrE5ZvDk+upUc+suOpRcS3lK2lOgJhZo5pWIgBOWDQ0SNuGflgGd3ohml5hQnoZm8BqbdpvhHYAdEP83RmyYJc5pNj/lpaK0G3UiwkB/JLpHNFWs8xpgcccI6vXdDKj7mrGTn7iVxyVXYUa0Eg0dwFx3FRgqYl9X8mMA17Ej056D95gP0S8mw4FyWp+s30pNe4tUPWK8ew4pTeDrgMvNq9ukD/gxORuixYDWdZtD7EehfxsgxESBwa1u3rS6tEssWGtqjy1OmlwjE6plztGSIZW9+nD2sZswQkQ45TYTxVN4nX4800FoP8HdRPfy6DZs+FZyUrqoKalDlJ/Xek3CeGch7JC7tcuRAXI8Qzc7rAb/tddqdbj951FCmb8bwzgHIk3T1iZUvwTtCxiU9l32sqWrS3GknSc92QzgrSHFMpxC21VRFkfUPcx68ZjtTU/qT40xmJbpsE0iWQJHlpArQj05FkYntMppiOsSMxLKo3qsnArDpzhaGo+xbLF4q0/k02BgxcCDxSmix01JLUpgN3Uy+4RmhnwNw== X-MS-Office365-Filtering-Correlation-Id: 6a0ae1b7-9d40-484f-ac20-08d3dd39f8f4 X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2434; 2:yhkeB7EQBsZwBtlMUljYFGZG+QUKPsGy4q7J4G7B/I6PKv6s4yigRif1hRCq1b+EjLPtDb/CTsxdfi43uaRE4ComB9TgBvq7p8X3Hq4EDriKKhLSw8sm6vLoGk2KSLMjG5BcAfzitiEpvveczQ6nCeYskmrZlVMETPNmaPi4jimUSCDMzAn3BGucQhoqAJ3D; 3:H4Myf7oj4RlsIr1gavSVq55/7P1HrMdV8DSsNB0rDaEJAB5zGMTSrpDqFOAGPO63NpkOq4MlcXIUM5mqzczGF9U7YyvYUnUGtC7dzvvVMzrzy48FT9QDcztSBlJoQMYZw/ZoCaWeuNKeQfUxntUUCfYywJPrJ0nfzPLEMkWQlCjVywJOWBgeRMeHuzayzU4NumELqwB3mCnW9jachGU3+Sf7f2USMFafHA+blSSdEqw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2434; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2434; 25:8vmhBPVXvMUJACA7xcTMyzp6HvejN2isZSB1+QRpqyPJjjwZ5pMT5dGRJhN+8FCMFYKIBAGtZ5PyjfSc7fnllofUt6puMgj+qSHU7P+i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KWhRiui2CHcBSA+65uMwJEHCqqDJPjWVKGfJZkB1952FTBV5qj0GnXT+rtQt4tihqmbZ4qoq5hwVXlzEdwDbDAoZdw91S1mHTfW4UBPztOr+zSgukr5jWmO61GupysRUJBqyLjs2wHe5PEuuBiLu8uWdAwJkkDpOXnRgkxSq2EngPd7YuFTjg5ayFkAs840NOZf1vlgEo5m7A75+5+jFWHil81WygYdWWlz5+ZJHfOHsiD+xmb9vu/rhAfxspu95eq2XHm61DOz9QP+dYdPHfBOzhI2xK2G7LeNiK936Bk7KHyTYZ7PnoLUTg8W1ESGOa7ZGoeYNZ1/8BBy/mSBbSnf/dREIf631HLRgIS5ksRII3f5+Y+JC1eQ4p4CbE5qs6BvfszqehwmPssEU6gMFoQ8r+0Y3fw+oUM= 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)(13017025)(13023025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BN6PR03MB2434; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2434; X-Forefront-PRVS: 0066D63CE6 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAzTUIyNDM0OzIzOkRnUXR5TktKNzFoZmM1UlVUdDFzb29OUURS?= =?utf-8?B?NXo3U28vZERHejcrMlEzNS9XRUczZ3dEbnhPY3BvZEFZeDRKNUJZN2poeG5V?= =?utf-8?B?SjV2SDBIK09OZWJhL1VaZWEveE52U3Q4MnVScFYyTEZsTjg5Y1NLRnlkOHd6?= =?utf-8?B?Z3N4Ull1TTllTjB3K3BSbmFacG9YMGRMYVRsRVN1bTFBMkNCYXpkSWQ3UDZj?= =?utf-8?B?d29iSE1IbzZyandjQVQ3YWszd1h3TkdiZ05tUEcrdFpwNkp6WFBzc1FKV0Qw?= =?utf-8?B?T3B2aXpZNHBISFE0ZE53c283NmdH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w9PNBz3geHz4zHi4Nx30Ot5xX6AqEgg9/V7JrBAgZ6g1fwlh1HbQn/SvQp3t6utXHA1ZZxrVqTJsfGay0=; 5:t+pYAYfkZYe20s+T2t3BQ4TVMmCMcsNT5jZGb/GpTxqPsa30hnEsiJOKwdRSszIKQ6wLgmpYDcWeDqO2tO0U58klH8ujvk6vbDKUPRsF6uXxzdRIbwwWCsb6NlMVQzXhMVInHYk5zc6nsNXQISD7c/5sy8CbWI249ZerOSpt/TM=; 24:TB+2ES94ScFjBvvY46afe0LyjWMuHTmmLpCeEqD74yIz4ivT7QV1xH+ESs2GSIg65KK0MmZ8xcN7M0LobWIn4Aqk/CaJDTzxSrqj4Lyw9ec=; 7:CmD3C+47JTAA/O8Z+sNHejbCoSe65X/iWXrz2Q8oUAag2sNUQn55LUGtf8klVnElDMURkGxuFq7G54z1U7jqbWK3XEienN3zAeRR3AXh7n93XYqEpCd1vq4vqKrBPjbPNaaPJV41fKreGq1ugvpGNsKPgCrRVqq9ozGKT8B4xubmUtylkqIXvQt3QkX48YL//mGmw69FtGGyZiqfRLnnIVurom5ijJ6WQVKIq6f2eC8jCL5byUSWS0GPpoFpMbxM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2016 07:29:03.7018 (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: BN6PR03MB2434 Subject: Re: [dpdk-dev] [PATCH v9 13/25] ethdev: convert to eal hotplug 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: Thu, 15 Sep 2016 07:29:08 -0000 On Monday 12 September 2016 12:46 PM, David Marchand wrote: > On Wed, Sep 7, 2016 at 4:08 PM, Shreyansh Jain wrote: > > [snip] > >> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c >> index fdeac86..86c9d1a 100644 >> --- a/lib/librte_ether/rte_ethdev.c >> +++ b/lib/librte_ether/rte_ethdev.c > > [snip] > >> + ret = rte_eal_dev_attach(name, args); >> + if (ret < 0) >> + goto err; >> + >> + /* no point looking at eth_dev_last_created_port if no port exists */ >> + if (!nb_ports) { >> + RTE_LOG(ERR, EAL, "No ports founds for device (%s)\n", name); > > No port found ? Yes, that will be corrected in next version. Thanks. > > -- Shreyansh