From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [PATCHv2 01/34] lib/ether: add rte_device in rte_eth_dev Date: Tue, 20 Dec 2016 11:42:59 +0530 Message-ID: <8e0f68ed-73c6-dc81-bebc-37498f44b284@nxp.com> References: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> <1482180853-18823-1-git-send-email-hemant.agrawal@nxp.com> <1482180853-18823-2-git-send-email-hemant.agrawal@nxp.com> <20161219081651.6482f6b1@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , , , , , To: Stephen Hemminger Return-path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0065.outbound.protection.outlook.com [104.47.36.65]) by dpdk.org (Postfix) with ESMTP id 058FE20F for ; Tue, 20 Dec 2016 07:13:10 +0100 (CET) In-Reply-To: <20161219081651.6482f6b1@xeon-e3> 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 12/19/2016 9:46 PM, Stephen Hemminger wrote: > On Tue, 20 Dec 2016 02:23:40 +0530 > Hemant Agrawal wrote: > >> Signed-off-by: Hemant Agrawal >> --- >> lib/librte_ether/rte_ethdev.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h >> index 9678179..0b601e9 100644 >> --- a/lib/librte_ether/rte_ethdev.h >> +++ b/lib/librte_ether/rte_ethdev.h >> @@ -1626,6 +1626,7 @@ struct rte_eth_dev { >> eth_rx_burst_t rx_pkt_burst; /**< Pointer to PMD receive function. */ >> eth_tx_burst_t tx_pkt_burst; /**< Pointer to PMD transmit function. */ >> struct rte_eth_dev_data *data; /**< Pointer to device data */ >> + struct rte_device *device; >> const struct eth_driver *driver;/**< Driver for this device */ >> const struct eth_dev_ops *dev_ops; /**< Functions exported by PMD */ >> struct rte_pci_device *pci_dev; /**< PCI info. supplied by probing */ > > NAK > I would rather that rte_pci_device be eliminated from rte_eth_dev_data and > replace by more generic rte_device. I am working on a patch set to do this, > it is not fundamentally hard. > As discussed before, this patch is just an stop-gap arrangement till we get a proper solution. That is the very reason, I put it as first patch in my patchset - to be removed easily. It is helpful that you are coming with the proper solution.