From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 2143C37A4 for ; Thu, 5 Nov 2015 10:51:18 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 05 Nov 2015 01:50:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,247,1444719600"; d="scan'208";a="843142380" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.62]) by orsmga002.jf.intel.com with SMTP; 05 Nov 2015 01:50:53 -0800 Received: by (sSMTP sendmail emulation); Thu, 05 Nov 2015 09:50:52 +0025 Date: Thu, 5 Nov 2015 09:50:52 +0000 From: Bruce Richardson To: Shaham Fridenberg Message-ID: <20151105095052.GA15324@bricha3-MOBL3> References: <2E654B490240B7449C846A96A8D8FE0CC43A4C67@ILMB2.corp.radware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2E654B490240B7449C846A96A8D8FE0CC43A4C67@ILMB2.corp.radware.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] SR-IOV: API to tell VF from PF X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 09:51:19 -0000 On Thu, Nov 05, 2015 at 09:39:19AM +0000, Shaham Fridenberg wrote: > Hey all, > > Is there some API to tell VF from PF? > > Only way I found so far is deducing that from driver name in the rte_eth_devices struct. > > Thanks, > Shaham Hi Shaham, yes, checking the driver name is probably the only way to do so. However, why do you need or want to know this? If you want to know the capabilities of a device basing it on a list of known device types is probably not the best way. Regards, /Bruce