From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v1 01/10] net/i40e: add API to convert VF Id to PF Id Date: Fri, 22 Sep 2017 11:56:24 +0200 Message-ID: <1548901.33fbra2k2h@xps> References: <1503676941-80981-1-git-send-email-david.hunt@intel.com> <1503676941-80981-2-git-send-email-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Nemanja Marjanovic , Rory Sexton To: David Hunt Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id A9F7F199AE for ; Fri, 22 Sep 2017 11:56:26 +0200 (CEST) In-Reply-To: <1503676941-80981-2-git-send-email-david.hunt@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 25/08/2017 18:02, David Hunt: > > +static inline uint64_t > +vfid_to_pfid_direct(uint8_t port_id, uint64_t vfid) > +{ > + struct rte_eth_dev *dev = &rte_eth_devices[port_id]; > + uint64_t pfid = (*dev->dev_ops->vfid_to_pfid)(dev, vfid); > + return pfid; > +} I would like to comment this API but there is no associated doxygen. If the application is aware of the VFs, it probably already knows how PF and VF are associated. Until now, the functions to control VF from PF are driver-specifics.