From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh jain Subject: Re: [PATCH v1 28/28] ether: support SoC device/driver Date: Wed, 29 Jun 2016 15:12:07 +0530 Message-ID: <577397EF.2080300@nxp.com> References: <1462542490-15556-1-git-send-email-viktorin@rehivetech.com> <1462542490-15556-29-git-send-email-viktorin@rehivetech.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Cc: To: Jan Viktorin Return-path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0100.outbound.protection.outlook.com [207.46.100.100]) by dpdk.org (Postfix) with ESMTP id 8C54A2BA6 for ; Wed, 29 Jun 2016 11:41:27 +0200 (CEST) In-Reply-To: <1462542490-15556-29-git-send-email-viktorin@rehivetech.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" 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? > dev_info->driver_name = dev->data->drv_name; > } > [...] - Shreyansh