From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2A06C210F2; Fri, 22 Sep 2017 05:56:26 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 22 Sep 2017 05:56:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=q/HNj/qaUYRtKFf oVkfzF5vTKFOxmwwV0+HwgsVhwyc=; b=k6qLUdOrtyE3PuefO691iHzkjsZp5MN q/wx4Z2xQHyFQhXxe0rtpYMGH0HtlZk6LF2HToAoJMx/ySzbuZl9A4ngJpwqlLYE hIMnuT7NAagjCpPnVZEHfsDh3R3dM76sveCAcihRsUzvQ0CGSA2B53pufWbD4PCl Yzq+t+rONQ34= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=q/HNj/qaUYRtKFfoVkfzF5vTKFOxmwwV0+HwgsVhwyc=; b=p0XYJkQS 24OOdsFE5ihbIjAxDZiuHDgfPLj1vkRzt1gmD/H+gzsMRJt6PLKfAUfSD5JVZemK TlYnLc9MSI6KI/vLn6DCYGJ4g3ENof1UFMnUssdoB6ussA5nNTXodsxC5+xVX83K T90p0kxRa2NDHxJD+r0pu12K73QsnocuI6xJ3FkUtSPgax677gW6JYgccx7IFepU 6B1NhhPh67/zQJcABz+yB5REDGKRrdICQTYJzY4gOghUThI/wqlRl/Yt9Fh3B+ed qOtDj+5wgdz2oGSae4APvZ5lhQx95MLn84GNqCC3plTsvpkxPklBTW98pemnwa08 nXIXhYmeqmjPsg== X-ME-Sender: X-Sasl-enc: gOcGpfQLeX11LrDzFDH6IM7WMXs6M/8u1D7xOTWwecQf 1506074185 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id C210324640; Fri, 22 Sep 2017 05:56:25 -0400 (EDT) From: Thomas Monjalon To: David Hunt Cc: dev@dpdk.org, Nemanja Marjanovic , Rory Sexton Date: Fri, 22 Sep 2017 11:56:24 +0200 Message-ID: <1548901.33fbra2k2h@xps> In-Reply-To: <1503676941-80981-2-git-send-email-david.hunt@intel.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v1 01/10] net/i40e: add API to convert VF Id to PF Id X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 09:56:26 -0000 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.