From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 98548E5D for ; Tue, 5 Dec 2017 15:57:34 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2017 06:57:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,364,1508828400"; d="scan'208";a="1252135329" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga002.fm.intel.com with ESMTP; 05 Dec 2017 06:57:31 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.67]) by IRSMSX152.ger.corp.intel.com ([169.254.6.87]) with mapi id 14.03.0319.002; Tue, 5 Dec 2017 14:57:31 +0000 From: "Ananyev, Konstantin" To: Thomas Monjalon CC: Matan Azrad , Neil Horman , =?iso-8859-1?Q?Ga=EBtan_Rivet?= , "Wu, Jingjing" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 2/5] ethdev: add port ownership Thread-Index: AQHTaEBN2MZq7Ar1QEOc1EFfayHFMqMs3xqAgAANj4CAAX1kAIAC4D6AgAAvRkCAADBDgIAC8rjggAANrJCAAASkAIAAMtPw Date: Tue, 5 Dec 2017 14:57:30 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772585FAC4B33@irsmsx105.ger.corp.intel.com> References: <1511870281-15282-1-git-send-email-matan@mellanox.com> <2601191342CEEE43887BDE71AB9772585FAC4A12@irsmsx105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772585FAC4A55@irsmsx105.ger.corp.intel.com> <2265552.PIKhXtTqDC@xps> In-Reply-To: <2265552.PIKhXtTqDC@xps> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGExYTVhY2YtNWFiNi00MWVhLWE3MDUtZDZjMjYzNzdiZWM1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImtaNnZMTlhNYWRVZDRjSm9uWWJLWGFlN25lTFFZb3o3U2ExT2lINnNMdzQ9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/5] ethdev: add port ownership 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: Tue, 05 Dec 2017 14:57:35 -0000 >> Just forgot to mention - I don' think it is good idea to disallow second= ary process to set theowner. =A0 >I think we all agree on that. >My initial suggestion was to use the ownership in secondary processes. >I think Matan forbid it as a first step because there is no >multi-process synchronization currently. =A0 >> Let say in secondary process I have few tap/ring/pcap devices. >> Why it shouldn't be allowed to unite them under bonding device and make = that device to own them? >> That's why I think get/set owner better to be atomic. >> If the owner is just a pointer - in that case get operation will be atom= ic by nature, >> set could be implemented just by CAS. =A0 >It would be perfect. >Can we be sure that the atomic will work perfectly on shared memory? >On every architectures? I believe - yes, how otherwise rte_ring and rte_mbuf would work for MP? :) Konstantin