DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: 安宏奎 <anhk_@126.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] 答复: Port-ids and NIC features
Date: Thu, 15 Aug 2013 07:57:04 -0700	[thread overview]
Message-ID: <20130815075704.33261119@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <008101ce9959$e4959370$adc0ba50$@126.com>

On Thu, 15 Aug 2013 09:51:00 +0800
安宏奎 <anhk_@126.com> wrote:

> For the question one, maybe you can detect it before binding to igb_uio
> 
> 
> -----邮件原件-----
> 发件人: dev-bounces@dpdk.org [mailto:dev-bounces@dpdk.org] 代表 Marc Sune
> 发送时间: 2013年8月14日 16:57
> 收件人: dev@dpdk.org
> 主题: [dpdk-dev] Port-ids and NIC features
> 
> Dear all,
> 
> Two quick questions:
> 
> 1) Is there a way to get the features available in the NIC? In particular, I
> cannot see a way to retrieve the *maximum speed* of the card and I need to
> determine whether is a FE, GE or 10GE card.

Not at present. You need to look at the information in rte_pci_device
for the ethernet (see rte_eth_dev_info) and then do your own matching
against ID and features.

As DPDK evolves more of the hardware features need to be abstracted
to allow applications to be build once and run on varying hardware.
IMHO some of the low level features like read/write thresholds really
shouldn't be exposed through the API. Setting them correctly depends
too much on the underlying hardware, chip version, and driver and really
shouldn't be something the application writer has to worry about.


> 2) For a certain number of NICs installed in the system and bound to the
> IGB_UIO driver, is it safe to assume that the association phyisical port <->
> port_id will always be the same? Even after reboot, and regardless of the
> order that are bound to the IGB_UIO driver (e.g. using pci_unbind.py)?

Since probe is single threaded. The discovery order will be constant
on the same system. But will change if hardware added/removed.

Another future area of work that needs to be addressed is hot plugging
devices into a running application.

  reply	other threads:[~2013-08-15 14:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14  8:56 [dpdk-dev] " Marc Sune
2013-08-15  1:51 ` [dpdk-dev] 答复: " 安宏奎
2013-08-15 14:57   ` Stephen Hemminger [this message]
2013-08-15 22:15     ` Marc Sune
2013-08-15 23:31       ` Stephen Hemminger

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=20130815075704.33261119@nehalam.linuxnetplumber.net \
    --to=stephen@networkplumber.org \
    --cc=anhk_@126.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).