From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 7FD6527D for ; Mon, 1 Apr 2019 09:23:38 +0200 (CEST) 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 872E8480059; Mon, 1 Apr 2019 07:23:36 +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; Mon, 1 Apr 2019 08:23:30 +0100 To: Thomas Monjalon , , "Ferruh Yigit" CC: References: <20181130002716.27325-1-thomas@monjalon.net> <20190401022700.1570-1-thomas@monjalon.net> <20190401022700.1570-3-thomas@monjalon.net> From: Andrew Rybchenko Message-ID: Date: Mon, 1 Apr 2019 10:23:27 +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: <20190401022700.1570-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-24524.003 X-TM-AS-Result: No-2.048200-8.000000-10 X-TMASE-MatchedRID: lORh06tOiKgOwH4pD14DsPHkpkyUphL9Ct59Uh3p/NWo+b+yOP0oGAaT alM8C7731YbwuGGKHRGFIfr8YIN9TAyJM1t3sBlJngIgpj8eDcC063Wh9WVqgmWCfbzydb0g1Ao zErC5dcfkwjHXXC/4I7I7zVffJqTzn4qJtReHsqJrvkUZIbXV1j1QNKuf6WawAjpWjQK40uSLKU FFwoxaoNQ17CngTb9OBKmZVgZCVnezGTWRXUlrx+EijnvekEIH 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-24524.003 X-MDID: 1554103417-UoI2e-15HoBM Subject: Re: [dpdk-dev] [PATCH v3 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: Mon, 01 Apr 2019 07:23:38 -0000 On 4/1/19 5:26 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 Reviewed-by: Andrew Rybchenko From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id B7E49A068B for ; Mon, 1 Apr 2019 09:23:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84B02343C; Mon, 1 Apr 2019 09:23:40 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 7FD6527D for ; Mon, 1 Apr 2019 09:23:38 +0200 (CEST) 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 872E8480059; Mon, 1 Apr 2019 07:23:36 +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; Mon, 1 Apr 2019 08:23:30 +0100 To: Thomas Monjalon , , "Ferruh Yigit" CC: References: <20181130002716.27325-1-thomas@monjalon.net> <20190401022700.1570-1-thomas@monjalon.net> <20190401022700.1570-3-thomas@monjalon.net> From: Andrew Rybchenko Message-ID: Date: Mon, 1 Apr 2019 10:23:27 +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: <20190401022700.1570-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-24524.003 X-TM-AS-Result: No-2.048200-8.000000-10 X-TMASE-MatchedRID: lORh06tOiKgOwH4pD14DsPHkpkyUphL9Ct59Uh3p/NWo+b+yOP0oGAaT alM8C7731YbwuGGKHRGFIfr8YIN9TAyJM1t3sBlJngIgpj8eDcC063Wh9WVqgmWCfbzydb0g1Ao zErC5dcfkwjHXXC/4I7I7zVffJqTzn4qJtReHsqJrvkUZIbXV1j1QNKuf6WawAjpWjQK40uSLKU FFwoxaoNQ17CngTb9OBKmZVgZCVnezGTWRXUlrx+EijnvekEIH 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-24524.003 X-MDID: 1554103417-UoI2e-15HoBM Subject: Re: [dpdk-dev] [PATCH v3 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190401072327.GeKsGTlcD3ZhuRfbbXrcZ9leqoDxeRo1-viNvikrauk@z> On 4/1/19 5:26 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 Reviewed-by: Andrew Rybchenko