From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0081.outbound.protection.outlook.com [104.47.0.81]) by dpdk.org (Postfix) with ESMTP id DDB9D1DBF; Fri, 23 Mar 2018 09:52:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=n0FmX5zIvQD9Nc6/8jEk0fdleRVu+wUY4Cq68LOG5a4=; b=NcHL9hligFRuHNz5YcNLYwRHX1b8u7KZc5DNR4xEjDUmYPlh8dLRj8jhp/RaP5sKwzDIWlIx74J2RJo3VS4DMK1cOEyNsFo+3OvI8MNg9saXMHVjLaqt4E9zH0guBYlhZ77B9sDcYgiBX90ssSkV/CQF/GvOou9jor7Kgnq6U+s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from mail-wm0-f43.google.com (74.125.82.43) by HE1PR0402MB2777.eurprd04.prod.outlook.com (2603:10a6:3:d4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Fri, 23 Mar 2018 08:52:47 +0000 Received: by mail-wm0-f43.google.com with SMTP id v21so2129179wmc.1; Fri, 23 Mar 2018 01:52:47 -0700 (PDT) X-Gm-Message-State: AElRT7HlqCJ39F7+uwQ9W7Nz+48lbCgBr3FKqzZwmqnz+mQMK4zbGT71 nfDBFk8wZi8zsRL4JfOVw8JTCFA3kp0cEbOakEg= X-Google-Smtp-Source: AG47ELtatnRR94Ph6n+fUyzNMRFNL6eNVlrxcMMYgiU3bWOedhPOHG8haRby9T/UmWxNBSv+7L6yOv67ssv+jpfzsNo= X-Received: by 10.28.114.20 with SMTP id n20mr5984496wmc.56.1521795164144; Fri, 23 Mar 2018 01:52:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.50.67 with HTTP; Fri, 23 Mar 2018 01:52:13 -0700 (PDT) In-Reply-To: <20180322102844.8109-1-gaetan.rivet@6wind.com> References: <20180322102844.8109-1-gaetan.rivet@6wind.com> From: Shreyansh Jain Date: Fri, 23 Mar 2018 14:22:13 +0530 X-Gmail-Original-Message-ID: Message-ID: To: Gaetan Rivet Cc: dev@dpdk.org, stable@dpdk.org, Hemant Agrawal Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [74.125.82.43] X-ClientProxiedBy: AM4PR0501CA0061.eurprd05.prod.outlook.com (2603:10a6:200:68::29) To HE1PR0402MB2777.eurprd04.prod.outlook.com (2603:10a6:3:d4::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 34f4c437-09e5-405f-d4b9-08d5909b7360 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB2777; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0402MB2777; 3:xiNHkfKBcKlym401nOo5aEwXsPkZa16wR/vWSG/hUdW3AUo3euiUYPfRvjw+ax4G/MjF5nBzcJFP3Y7DuRqqYll2YzSi4hevhNSKdeX0oaNjHXq4/BUKk5RCXWa1qxilXltorZ+jOtwdPS/JeB2UhKIlJlAbV5fH+h/nutd4je98B/9w3kwmZsRkF0NKwoh3ar333MJqmAZbNfbRK9wsBv5Ov7u5YkJmwoBUQlYhRR90FSxweYwVhkqlZznShJY6; 25:/Sh+mdLy08AIP2KJmzuB/dtqDa+ea5VQ75dY9fNIRVva4uVdPJflZ7W4Oy0nCtInfJ90UVGL5ydlBUge5I92mG/jbc45DIpxa8C+WuVVU/x20Voq61nBcDM3INE9A0fylgLE1+rAajYNz6EzhlEZEEmcjPO1Fw2152m+W0jiKc3LyzhgfLMn6Big/+qhY6Bi410DXT1TU16QVxteDPVkMSxy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A96L2VEHWgH5SBN2/IJ+LkzKUlLibtjLsiW4MJpHRHf6/z9gH+W5NUKI9zAjpr1TT9czWy3U4O9MgTVM/ERgeBmS4x/8Q3Hy0qNbvpw7VzfMg3akqq62GgCwrhmGXVNWYkRbfHmz/FdqSSTBXASz9M9EJMRrhxjQ2CmuXkds4Da+Ln4SLfY0tXZKMmUDsThL7/k2uR+gwcP X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR0402MB2777; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB2777; X-Forefront-PRVS: 0620CADDF3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(346002)(39860400002)(376002)(366004)(199004)(189003)(229853002)(8936002)(498394004)(106356001)(55446002)(5820100001)(53936002)(966005)(42186006)(6246003)(186003)(76176011)(316002)(6116002)(3846002)(16586007)(53376002)(95326003)(26005)(50466002)(122856001)(98316002)(86362001)(478600001)(9686003)(6306002)(55236004)(446003)(68736007)(81166006)(7736002)(81156014)(97736004)(47776003)(8676002)(61266001)(305945005)(53546011)(5660300001)(61726006)(11346002)(69596002)(105586002)(23676004)(33896004)(2906002)(52116002)(93516011)(66066001)(6862004)(9896002)(450100002)(4326008)(386003)(55456009); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB2777; H:mail-wm0-f43.google.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA0MDJNQj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blzTI=; 7:Pviz7TqHWnziM/Yt5z7gbbMoyBr6rYDnTw7ftCY8sSxQH5C7m4Bipuci8202vZTbSDVxNLhZxt3wTSCCW5A/2sQOxEsa+6VTI/ZfqktDpbvq5F7po/HocBvTvGS859t6hTVcXCd7ym4jUBwY4tYXbNCEqA6lcO3KggDCFA0J5VxKcIJHRkn8X4OnxRkHDvTLtaYLAtKJHfNBpsOgLDFyhpbYjeFwCrLEy3ZJotBz+OEV3ltTz4IfdIqX+37hYCiq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2018 08:52:47.2849 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34f4c437-09e5-405f-d4b9-08d5909b7360 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB2777 Subject: Re: [dpdk-dev] [PATCH v1] bus/fslmc: fix find device start condition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 08:52:51 -0000 On Thu, Mar 22, 2018 at 3:58 PM, Gaetan Rivet wrote: > If start is set and a device before it matches the data, > this device is returned. > > Fixes: c7fe1eea8a74 ("bus: simplify finding starting point") > Cc: stable@dpdk.org > > Cc: Hemant Agrawal > Cc: Shreyansh Jain > Signed-off-by: Gaetan Rivet > --- > > Hi Shreyansh, Hemant, > > Sorry, I did not test this. > I found this issue while working on vdev and PCI. > > There is a better way to iterate on devices [1], but the gain > is really minimal and the implementation slightly more complex. > I preferred to avoid complex, as I could not test this patch. > > Regards, > > [1]: http://dpdk.org/ml/archives/dev/2018-March/092906.html > I think this change should suffice here. Thanks. (On a side note, it seems compilation using clang is failing for this patch [1] though it is not related to this change. I will look into that) [1] http://dpdk.org/ml/archives/test-report/2018-March/044684.html Acked-by: Shreyansh Jain