DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Neil Horman <nhorman@tuxdriver.com>
Cc: dev@dpdk.org
Subject: [dpdk-dev] Poor device abstraction's
Date: Fri, 11 Apr 2014 10:33:31 -0700	[thread overview]
Message-ID: <20140411103331.060c8a7d@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <20140409183952.GA16493@hmsreliant.think-freely.org>

One of my pet peeve's is that the device driver config does not abstract
the properties of the Ethernet device. The existing parameters match those
of Intel's Ethernet hardware but not much else. It also makes it hard
to write generic applications.  If the application has to query the
device driver name string and insert different parameters for igb, igbvf, ixgbe
and vmxnet3 then the API was designed wrong.

Specific examples:
  * the "descriptors" argument to rx/tx is interpreted as a hardware resource
    not the number of packets. An application really wants to say "you may buffer
    up to 100us of packets" not have to guess what the underlying driver does.

  * the rthresh/wthresh/pthresh are PCI device artifacts and correct value is
    different for each HW device shouldn't be exposed to application. The API
    should be something like "device may burst up to N packets and/or T latency".

These seems like issues of a transition from a cool toy to talk to Intel hardware
to a useful application infrastructure.

That is why I would hate to see the existing Intel device centric API frozen.

  parent reply	other threads:[~2014-04-11 17:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-09 18:39 [dpdk-dev] DPDK API/ABI Stability Neil Horman
2014-04-09 21:08 ` Stephen Hemminger
2014-04-10 10:54   ` Neil Horman
2014-04-11 17:33 ` Stephen Hemminger [this message]
2014-04-11 17:47   ` [dpdk-dev] Poor device abstraction's Neil Horman
2014-04-11 17:57     ` Venkatesan, Venky
2014-04-11 17:59       ` Neil Horman

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=20140411103331.060c8a7d@nehalam.linuxnetplumber.net \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=nhorman@tuxdriver.com \
    /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).