From: Neil Horman <nhorman@tuxdriver.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Poor device abstraction's
Date: Fri, 11 Apr 2014 13:47:27 -0400 [thread overview]
Message-ID: <20140411174727.GF911@hmsreliant.think-freely.org> (raw)
In-Reply-To: <20140411103331.060c8a7d@nehalam.linuxnetplumber.net>
On Fri, Apr 11, 2014 at 10:33:31AM -0700, Stephen Hemminger wrote:
> 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.
>
I agree. I think the patches that recently got integrated from Olivier are a
step toward fixing that, but theres some more work to be done.
Neil
> 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.
>
next prev parent reply other threads:[~2014-04-11 17:45 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 ` [dpdk-dev] Poor device abstraction's Stephen Hemminger
2014-04-11 17:47 ` Neil Horman [this message]
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=20140411174727.GF911@hmsreliant.think-freely.org \
--to=nhorman@tuxdriver.com \
--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).