From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 001411E34 for ; Sun, 24 Feb 2019 18:22:24 +0100 (CET) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id EFE0A9C0059; Sun, 24 Feb 2019 17:22:23 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 24 Feb 2019 17:22:18 +0000 To: Thomas Monjalon , Ferruh Yigit CC: References: <20181130002716.27325-1-thomas@monjalon.net> <20190220221051.7928-1-thomas@monjalon.net> <20190220221051.7928-3-thomas@monjalon.net> From: Andrew Rybchenko Message-ID: <4aee1ab3-0872-4d8b-b7b2-489095543ac4@solarflare.com> Date: Sun, 24 Feb 2019 20:22:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190220221051.7928-3-thomas@monjalon.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24452.000 X-TM-AS-Result: No-2.048200-8.000000-10 X-TMASE-MatchedRID: fgYTp5XatxYOwH4pD14DsPHkpkyUphL9Ct59Uh3p/NWo+b+yOP0oGAaT alM8C7731YbwuGGKHRGFIfr8YIN9TJe/bF1ays2SY1bQMCMvmn59LQinZ4QefL6qvLNjDYTwIq9 5DjCZh0zCLNfu05PakAtuKBGekqUpnH7sbImOEBSS/RKz75jFH03/HNDWAYROMwp5mIbeAEOLr4 +i8KX9F34DoIeM2hW+BXHwea3WH0a4jYqiH07O4dr5pZD8CraTxNpmoXJ0dfOHzGTHoCwyHhlNK Sp2rPkW5wiX7RWZGYs2CWDRVNNHu2A7bUFBqh2V X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--2.048200-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24452.000 X-MDID: 1551028944-Da63k_E1SPNt Subject: Re: [dpdk-dev] [PATCH v2 2/4] ethdev: add siblings iterators 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: Sun, 24 Feb 2019 17:22:25 -0000 On 2/21/19 1:10 AM, Thomas Monjalon wrote: > If multiple ports share the same hardware device (rte_device), > they are siblings and can be found thanks to the new functions > and loop macros. > One iterator takes a port id as reference, > while the other one directly refers to the parent device. > > The ownership is not checked because siblings may have > different owners. > > Signed-off-by: Thomas Monjalon LGTM Reviewed-by: Andrew Rybchenko