DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jay Rolette <rolette@infinite.io>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: DPDK <dev@dpdk.org>
Subject: Re: [dpdk-dev] Instability of port ids
Date: Sun, 19 May 2019 13:42:30 -0500	[thread overview]
Message-ID: <CADNuJVqDWTsJ2J-v3RyftW4uuGC6-KWBjL0KrMZMNHTN1dd9QQ@mail.gmail.com> (raw)
In-Reply-To: <20190517114640.31e1e234@hermes.lan>

On Fri, May 17, 2019 at 1:46 PM Stephen Hemminger <
stephen@networkplumber.org> wrote:

> Several customers have reported similar issues with how the owned/stack
> device model
> works in DPDK. With failsafe/tap and VF or netvsc and VF there are DPDK
> ports which
> are marked as owned and therefore not visible.
>
> The problem is the application has to guess and workaround these port
> values in
> the port mask that gets passed in on command line. This means a working
> application
> has to modify its startup script to run on Azure. Worse the actual port
> values
> change based on the number of NIC's configured.
>
> Overall this is a nuisance for users. The whole DPDK port index concept is
> a bad
> design. In Linux/BSD there is ifindex, but few applications care, they all
> use names
> which is better. Very very few application care that eth1 is ifindex 4.
>
> The whole assignment of ports is a mess as well since it is based on probe
> order
> and that is based on PCI order, and not anything dependable. It gets worse
> with
> command line arguments, vdev, owned devices etc.
>
> All I can think of is that:
>   * DPDK network devices need to have human readable names. current PCI is
> not good.
>   * The names need to be repeatable/persistent. udev names are probably
> better than anything so far.
>     Or bsd style names but they end up being device dependent.
>   * The API to get from name to port needs to easy to use and the
> preferred method.
>   * All examples and documentation should avoid using port index directly.
>     You need port for fast rx/tx but setup should be by name.
>

+1 agree completely

      parent reply	other threads:[~2019-05-19 18:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-17 18:46 Stephen Hemminger
2019-05-18  6:03 ` Wang, Haiyue
2019-05-18 13:33   ` Stephen Hemminger
2019-05-20  8:20     ` Ray Kinsella
2019-05-19 18:42 ` Jay Rolette [this message]

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=CADNuJVqDWTsJ2J-v3RyftW4uuGC6-KWBjL0KrMZMNHTN1dd9QQ@mail.gmail.com \
    --to=rolette@infinite.io \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.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).