From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 27FBE1B224 for ; Thu, 5 Oct 2017 14:51:39 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Oct 2017 05:51:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,481,1500966000"; d="scan'208";a="907046345" Received: from dhunt5-mobl1.ger.corp.intel.com (HELO [10.237.220.44]) ([10.237.220.44]) by FMSMGA003.fm.intel.com with ESMTP; 05 Oct 2017 05:51:16 -0700 To: "Ananyev, Konstantin" , "dev@dpdk.org" Cc: "Wu, Jingjing" , "santosh.shukla@caviumnetworks.com" , "Sexton, Rory" , "Marjanovic, Nemanja" References: <1507130720-48891-1-git-send-email-david.hunt@intel.com> <1507206350-215367-1-git-send-email-david.hunt@intel.com> <1507206350-215367-2-git-send-email-david.hunt@intel.com> <2601191342CEEE43887BDE71AB9772585FAA4A73@IRSMSX103.ger.corp.intel.com> From: "Hunt, David" Message-ID: Date: Thu, 5 Oct 2017 13:51:15 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <2601191342CEEE43887BDE71AB9772585FAA4A73@IRSMSX103.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH v6 1/9] net/i40e: add API to convert VF MAC to VF 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: Thu, 05 Oct 2017 12:51:40 -0000 Hi Konstantin, On 5/10/2017 1:45 PM, Ananyev, Konstantin wrote: > Hi Dave, > >> -----Original Message----- >> From: Hunt, David >> Sent: Thursday, October 5, 2017 1:26 PM >> To: dev@dpdk.org >> Cc: Ananyev, Konstantin ; Wu, Jingjing ; santosh.shukla@caviumnetworks.com; >> Sexton, Rory ; Marjanovic, Nemanja ; Hunt, David >> Subject: [PATCH v6 1/9] net/i40e: add API to convert VF MAC to VF id >> >> From: "Sexton, Rory" >> >> Need a way to convert a vf id to a pf id on the host so as to query the pf >> for relevant statistics which are used for the frequency changes in the >> vm_power_manager app. Used when profiles are passed down from the guest >> to the host, allowing the host to map the vfs to pfs. >> >> Signed-off-by: Nemanja Marjanovic >> Signed-off-by: Rory Sexton >> Signed-off-by: David Hunt >> --- >> drivers/net/i40e/rte_pmd_i40e.c | 30 ++++++++++++++++++++++++++++++ >> drivers/net/i40e/rte_pmd_i40e.h | 15 +++++++++++++++ >> drivers/net/i40e/rte_pmd_i40e_version.map | 7 +++++++ >> 3 files changed, 52 insertions(+) >> >> diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c >> index f12b7f4..541d575 100644 >> --- a/drivers/net/i40e/rte_pmd_i40e.c >> +++ b/drivers/net/i40e/rte_pmd_i40e.c >> @@ -2115,3 +2115,33 @@ int rte_pmd_i40e_ptype_mapping_replace(uint8_t port, >> >> return 0; >> } >> + >> +int64_t >> +rte_pmd_i40e_query_vfid_by_mac(uint8_t port, const struct ether_addr *vf_mac) > I don't think you need int64_t as a return value here. > Just 'int' seems good enough. > Anyway vf_id is just an 'int'. > Konstantin OK. I'll push a v7 in the next couple of hours. Thanks, Dave. ---snip--