netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: kaber@trash.net
Cc: netdev@vger.kernel.org, shemminger@linux-foundation.org,
	rusty@rustcorp.com.au, jgarzik@pobox.com
Subject: Re: [PATCH]: Resurrect napi_poll patch.
Date: Fri, 20 Jul 2007 23:00:50 -0700 (PDT)	[thread overview]
Message-ID: <20070720.230050.104035394.davem@davemloft.net> (raw)
In-Reply-To: <46A19DBF.6030902@trash.net>

From: Patrick McHardy <kaber@trash.net>
Date: Sat, 21 Jul 2007 07:46:39 +0200

> I believe the compat attribute should work fine. One thing thing
> that is not explicitly supported as datatype, but works fine, is
> lists of attributes (using nla_for_each_attr), which looks like a
> good match for this case. But I think its questionable whether we
> should put any effort in NAPI rtnetlink support. It seems to driver
> specific for rtnetlink to me, and I'm not aware of any user of this.
> Ethtool might have its own compatibility issues, I'm not sure, but
> I don't think it would hurt to simply remove it from rtnetlink.

Another idea is to allow the driver to decide what to do with the
value.

The driver will have to be involved anyways in order to iterate over
the per-netdev NAPI objects.

So, for example, one driver might take the given weight and distribute
it evenly amongst the RX queues it has.

Trying to let netlink set things on a per-queue basis is indeed
cumbersom and not worth doing at all in my opinion.  I however think
it's not a bad idea to keep the unary weight setting around and
let the driver figure out what to do with it in the multi-queue
case.


  reply	other threads:[~2007-07-21  6:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-21  5:31 [PATCH]: Resurrect napi_poll patch David Miller
2007-07-21  5:46 ` Patrick McHardy
2007-07-21  6:00   ` David Miller [this message]
2007-07-21  7:14 ` Rusty Russell
2007-07-21  7:42   ` David Miller
2007-07-21  8:00     ` Rusty Russell
2007-07-21 18:54       ` David Miller
2007-07-21 23:10         ` Rusty Russell
2007-07-22  1:59           ` David Miller
2007-07-22  2:39             ` Rusty Russell
2007-07-22  3:54               ` David Miller
2007-07-22  7:18                 ` David Miller
2007-07-22  7:36                   ` David Miller
2007-07-22  7:51                   ` Rusty Russell
2007-07-22  8:24                     ` David Miller
2007-07-21 13:26 ` Andi Kleen
2007-07-23  9:58   ` Stephen Hemminger
2007-07-23 17:06     ` Andi Kleen
2007-07-23 21:14       ` 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=20070720.230050.104035394.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jgarzik@pobox.com \
    --cc=kaber@trash.net \
    --cc=netdev@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=shemminger@linux-foundation.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).