From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v11 07/24] driver: probe/remove common wrappers for PCI drivers Date: Tue, 4 Oct 2016 11:46:54 +0530 Message-ID: <18246d11-46f6-e207-5750-21a1ae289050@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1474375296-26078-1-git-send-email-shreyansh.jain@nxp.com> <1474375296-26078-8-git-send-email-shreyansh.jain@nxp.com> <1868462.9szsyjFR7X@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , David Marchand , To: Thomas Monjalon Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0081.outbound.protection.outlook.com [104.47.42.81]) by dpdk.org (Postfix) with ESMTP id 5AD10374E for ; Tue, 4 Oct 2016 08:16:03 +0200 (CEST) In-Reply-To: <1868462.9szsyjFR7X@xps13> 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 Monday 03 October 2016 07:51 PM, Thomas Monjalon wrote: > 2016-09-20 18:11, Shreyansh Jain: >> --- a/lib/librte_ether/rte_ethdev.h >> +++ b/lib/librte_ether/rte_ethdev.h >> @@ -4372,6 +4372,19 @@ rte_eth_dev_get_port_by_name(const char *name, uint8_t *port_id); >> int >> rte_eth_dev_get_name_by_port(uint8_t port_id, char *name); >> >> +/** >> + * Wrapper for use by pci drivers as a .probe function to attach to a ethdev >> + * interface. >> + */ >> +int rte_eth_dev_pci_probe(struct rte_pci_driver *pci_drv, >> + struct rte_pci_device *pci_dev); >> + >> +/** >> + * Wrapper for use by pci drivers as a .remove function to detach a ethdev >> + * interface. >> + */ >> +int rte_eth_dev_pci_remove(struct rte_pci_device *pci_dev); > > These functions are used by the drivers only (as helpers). > So they should be marked @internal (added after applying the patch). > Ok. Thanks! - Shreyansh