From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Horman Subject: Re: [PATCH v2 2/6] ethdev: add port ownership Date: Fri, 19 Jan 2018 12:37:17 -0500 Message-ID: <20180119173717.GD9519@hmswarspite.think-freely.org> References: <2601191342CEEE43887BDE71AB9772588627DE30@irsmsx105.ger.corp.intel.com> <4383328.LcqRCZq5Jg@xps> <20180119143245.GA9519@hmswarspite.think-freely.org> <3919053.IPF3Pcupc4@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Matan Azrad , "Ananyev, Konstantin" , Gaetan Rivet , "Wu, Jingjing" , dev@dpdk.org, "Richardson, Bruce" To: Thomas Monjalon Return-path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id C79DE1B31A for ; Fri, 19 Jan 2018 18:38:02 +0100 (CET) Content-Disposition: inline In-Reply-To: <3919053.IPF3Pcupc4@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Jan 19, 2018 at 06:09:47PM +0100, Thomas Monjalon wrote: > 19/01/2018 15:32, Neil Horman: > > On Fri, Jan 19, 2018 at 03:07:28PM +0100, Thomas Monjalon wrote: > > > 19/01/2018 14:57, Neil Horman: > > > > > > I specifically pointed that out above. There is no reason an owernship record > > > > > > couldn't be added to the rte_eth_dev structure. > > > > > > > > > > Sorry, don't understand why. > > > > > > > > > Because, thats the resource your trying to protect, and the object you want to > > > > identify ownership of, no? > > > > > > No > > > The rte_eth_dev structure is the port representation in the process. > > > The rte_eth_dev_data structure is the port represenation across multi-process. > > > The ownership must be in rte_eth_dev_data to cover multi-process protection. > > > > > Ok. You get the idea though right? That the port representation, > > for some definition thereof, should embody the ownership state. > > Neil > > Not sure to understand your question. > There is no real question here, only confirming that we are saying the same thing. I misspoke when I indicated ownership information should be embodied in rte_eth_dev rather than its shared data. But regardless, the concept is the same Neil