From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Viktorin Subject: Re: [PATCH v1 28/28] ether: support SoC device/driver Date: Mon, 4 Jul 2016 15:04:51 +0200 Message-ID: <20160704150451.1a61fbbd@pcviktorin.fit.vutbr.cz> References: <1462542490-15556-1-git-send-email-viktorin@rehivetech.com> <1462542490-15556-29-git-send-email-viktorin@rehivetech.com> <577397EF.2080300@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: To: Shreyansh jain Return-path: Received: from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15]) by dpdk.org (Postfix) with ESMTP id 4A63A1C52 for ; Mon, 4 Jul 2016 15:04:49 +0200 (CEST) In-Reply-To: <577397EF.2080300@nxp.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 29 Jun 2016 15:12:07 +0530 Shreyansh jain wrote: > Hi Jan, > > On Friday 06 May 2016 07:18 PM, Jan Viktorin wrote: > > Signed-off-by: Jan Viktorin > > --- > > lib/librte_ether/rte_ethdev.c | 127 +++++++++++++++++++++++++++++++++++++++++- > > lib/librte_ether/rte_ethdev.h | 31 +++++++++++ > > 2 files changed, 157 insertions(+), 1 deletion(-) > > > > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c > > index 4af2e5f..9259c2c 100644 > > --- a/lib/librte_ether/rte_ethdev.c > > +++ b/lib/librte_ether/rte_ethdev.c > > @@ -320,6 +320,99 @@ rte_eth_dev_pci_remove(struct rte_pci_device *pci_dev) > > } > > > [...] > > +int > > rte_eth_dev_is_valid_port(uint8_t port_id) > > { > > if (port_id >= RTE_MAX_ETHPORTS || > > @@ -1431,7 +1524,7 @@ rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info) > > > > RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get); > > (*dev->dev_ops->dev_infos_get)(dev, dev_info); > > - dev_info->pci_dev = dev->pci_dev; > > + dev_info->soc_dev = dev->soc_dev; > > I think both the members, pci_dev and soc_dev, should be updated by this call. > Is there some specific reason why soc_dev is the only one which is getting updated? Yes, looks like a mistake. Thanks! And sorry for delayed reply. Jan > > > dev_info->driver_name = dev->data->drv_name; > > } > > > [...] > > - > Shreyansh > -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic