From: Jeff Garzik <jgarzik@pobox.com>
To: "Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@intel.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH 1/3] ixgbe: Add Data Center Bridging netlink listener for DCB runtime changes.
Date: Wed, 07 May 2008 17:13:29 -0400 [thread overview]
Message-ID: <48221B79.2010808@pobox.com> (raw)
In-Reply-To: <D5C1322C3E673F459512FB59E0DDC3290509D540@orsmsx414.amr.corp.intel.com>
Waskiewicz Jr, Peter P wrote:
> I've given this much more thought, and have some additional feedback.
> While I see your point about each driver wanting to support DCB
> shouldn't have to create their own netlink interface, having the ioctl's
> in ethtool for every other driver not supporting DCB isn't necessary
> either. I understand there are commands in ethtool that some drivers
> don't implement, but the required commands for DCB would add a pretty
> decent chunk of code into ethtool. But for other advanced features
> today, many drivers implement sysfs interfaces to support tweaking of
> values outside of the ethtool umbrella. Given this is less than a
> driver-only configuration tool, but it's a tool that is configuring the
> behavior of the entire network, we need one userspace tool that can
> communicate to all registered devices, and netlink lends itself well to
> that.
>
> I also looked at Thomas' proposal, and it does look fine. However, we'd
> have the same issue of needing to implement all the DCB commands in
> ethtool, which I'm still not totally convinced is the correct thing to
> do, given how the DCB stack from userspace to the link partner works.
>
> Our long-term goal is to implement the dcbd (userspace daemon) interface
> in the kernel as a module interface, so the userspace commands interact
> with it and only it directly. Much like the mac80211 interface, which
> the dcbd interface in the kernel would push the commands to registered
> drivers through a common kernel interface, most likely through the
> netdev. We're not there yet, but we need to step before we run. Hence
> why the driver is using netlink today.
If its complex enough, or doesn't fit the ioctl model well, it doesn't
necessarily have to be via the ethtool ioctl.
Two goals I have, though, are
* the userspace ethtool utility configures this stuff. Note I did /not/
say "must use ethtool ioctl." The core idea behind ethtool is to
centralize NIC-specific knowledge -- thus that's the place where
chip-specific register dumping code resides. So within reason, it's OK
to put DCB-specific commands into ethtool that do not use the ethtool ioctl.
But like everything else in life, one must weight various costs. Maybe
it is complex enough to warrant a new tool. We don't know until there's
a design doc or review of the generic interface that will be used for DCB.
* the kernel portion can be used by other non-Intel drivers, i.e. a
generic and separate piece. We should not be embedding an entire
netlink interface into each driver.
Regards,
Jeff
next prev parent reply other threads:[~2008-05-07 21:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 0:42 [ANNOUNCE] ixgbe: Data Center Bridging (DCB) support for ixgbe PJ Waskiewicz
2008-05-02 0:43 ` [PATCH 1/3] ixgbe: Add Data Center Bridging netlink listener for DCB runtime changes PJ Waskiewicz
2008-05-02 11:03 ` Jeff Garzik
2008-05-02 20:08 ` Waskiewicz Jr, Peter P
2008-05-07 20:53 ` Waskiewicz Jr, Peter P
2008-05-07 21:13 ` Jeff Garzik [this message]
2008-05-16 22:45 ` Waskiewicz Jr, Peter P
2008-05-16 23:20 ` Stephen Hemminger
2008-05-17 9:14 ` Waskiewicz Jr, Peter P
2008-05-02 0:43 ` [PATCH 2/3] ixgbe: Add DCB hardware initialization routines PJ Waskiewicz
2008-05-02 0:43 ` [PATCH 3/3] ixgbe: Enable Data Center Bridging (DCB) support PJ Waskiewicz
2008-05-02 11:19 ` [ANNOUNCE] ixgbe: Data Center Bridging (DCB) support for ixgbe Andi Kleen
2008-05-02 20:18 ` Waskiewicz Jr, Peter P
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=48221B79.2010808@pobox.com \
--to=jgarzik@pobox.com \
--cc=netdev@vger.kernel.org \
--cc=peter.p.waskiewicz.jr@intel.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).