From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 4/8] ethdev: Add port representor device flag Date: Thu, 29 Mar 2018 09:34:27 +0200 Message-ID: <2430508.NP3kz8ElFZ@xps> References: <20180328135433.20203-1-declan.doherty@intel.com> <20180328135433.20203-5-declan.doherty@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit 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 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) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.