DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Shaham Fridenberg <ShahamF@Radware.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] SR-IOV: API to tell VF from PF
Date: Thu, 5 Nov 2015 09:50:52 +0000	[thread overview]
Message-ID: <20151105095052.GA15324@bricha3-MOBL3> (raw)
In-Reply-To: <2E654B490240B7449C846A96A8D8FE0CC43A4C67@ILMB2.corp.radware.com>

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

  reply	other threads:[~2015-11-05  9:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05  9:39 Shaham Fridenberg
2015-11-05  9:50 ` Bruce Richardson [this message]
2015-11-05 15:43   ` Polehn, Mike A
2015-11-05 15:51     ` Richardson, Bruce
2015-11-05 17:59       ` Polehn, Mike A
2015-11-05 21:45         ` Ananyev, Konstantin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151105095052.GA15324@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=ShahamF@Radware.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).