From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 5F1542A62 for ; Thu, 29 Mar 2018 09:34:45 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DB4F020FCD; Thu, 29 Mar 2018 03:34:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 29 Mar 2018 03:34:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=lHWH8c0YUboDstZZ7LoPzsO2dW 2KzsrmuIpk7hPeQsY=; b=YJUbGGLDnfB99tRxh7kLZ1eII2zqwakEFpxJvxBx2u BO61J4j1WZjCU10elfbiRnJ1Ni5lyoaojQhBtoBfSVf1zuOhzqo2zsj4cft6ltfs kpa+PiqttIZrk9aaYX6tbpfMf0SbJz76m8C1C+J5hBJwJwCLItd6MdzBOF/kUM7F w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=lHWH8c 0YUboDstZZ7LoPzsO2dW2KzsrmuIpk7hPeQsY=; b=KaML2Br4SfY/icZ515mEtk llRrV3VdgHyF29uPMF3Gx+x3XRIW70kNzcaFNJigrMvMINwVIHaReW6havrTVR/0 VU3HzcxADcZtTHnguhhAa2J5nXqfY8xyaVQITZa72a8+z5w6zOYReZr7NJQ11Dy0 Np11Vxf1MgAr+SzFoUy/tTAeDo4c3k/buPwsLChI1TH8BsOICQrJGnMpXgKkKWSn 0X+NHNa4biPZ7i/gfD1MLnnz0dTgRh+b0NWK0HR/bfyZ4pLGzQLL8kD/8Blqeu/+ QMZZR51MfoBL3bGz4zLFtWsEBIfrEXlJcGZOQTijlrNS26a+08a+mxyxrQURl3dQ == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A70110339; Thu, 29 Mar 2018 03:34:42 -0400 (EDT) From: Thomas Monjalon To: Shahaf Shuler Cc: Declan Doherty , "dev@dpdk.org" , Alex Rosenbaum , Ferruh Yigit , Qi Zhang , Alejandro Lucero , Andrew Rybchenko , Mohammad Abdul Awal , Remy Horton , John McNamara , Rony Efraim , Wu , Jingjing , Lu , Wenzhuo , Vincent JArdin , Yuanhan Liu , Richardson , Bruce , Ananyev , Konstantin , Wang , Zhihong Date: Thu, 29 Mar 2018 09:34:27 +0200 Message-ID: <2430508.NP3kz8ElFZ@xps> In-Reply-To: References: <20180328135433.20203-1-declan.doherty@intel.com> <20180328135433.20203-5-declan.doherty@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v6 4/8] ethdev: Add port representor device flag 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: Thu, 29 Mar 2018 07:34:45 -0000 29/03/2018 08:13, Shahaf Shuler: > And device attributes like : RTE_ETH_DEV_BONDED_SLAVE and RTE_ETH_DEV_REPRESENTOR. > I don't think they belong together under the genetic name of dev_flags. > > Moreover, I am not sure the fact device is bonded slave should be exposed to the application. It should be internal to ethdev and its port iterators. RTE_ETH_DEV_BONDED_SLAVE flag is used to prevent a manual detach of a slave. I think it is wrong. The bonding PMD should be able to manage any detach at any time, because a real hardware plug-out can happen. So I am in favor of removing RTE_ETH_DEV_BONDED_SLAVE.