netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan-Bernd Themann <ossthema@de.ibm.com>
To: David Miller <davem@davemloft.net>
Cc: shemminger@linux-foundation.org, netdev@vger.kernel.org,
	themann@de.ibm.com, raisch@de.ibm.com
Subject: Re: new NAPI interface broken
Date: Tue, 18 Sep 2007 18:15:45 +0200	[thread overview]
Message-ID: <200709181815.45954.ossthema@de.ibm.com> (raw)
In-Reply-To: <20070914.151252.85399360.davem@davemloft.net>

Hi,

On Saturday 15 September 2007 00:12, David Miller wrote:
> Ok, for now I'm going to try and deal with this by reverting
> the list handling to something approximating the old NAPI
> code, as per the patch below.
> 
> I've only quickly test booted into this kernel on my workstation.
> So take care when trying it out.
> 
> I took the liberty to add some assertions and comments all over
> wrt. list and quota handling.  One thing to note that (and this
> was true previously too) that if ->poll() uses the whole quota
> it _MUST_ _NOT_ modify the NAPI state by doing a complete or
> reschedule.  The net_rx_action code still owns the NAPI state in
> that case, and therefore is allowed to make modifications to the
> ->poll_list.

I'm currently updating the eHEA polling function to work with this
scheme. Up to now we had sort of a quota for or TX refill part as well,
which was also done in the poll function. This was possible as the device
could be scheduled again even if the quota has not been used
completely. If I got it right this is not longer possible. 
The idea was to benefit from the same "fairness" scheme of NAPI as it is
done for the RX side.

One other thing I observed is that I can not unload the module as the
ref counter of the eth device is too low. I haven't tracked down the 
source of this problem yet.

Regards,
Jan-Bernd

  reply	other threads:[~2007-09-18 16:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07  9:37 new NAPI interface broken Jan-Bernd Themann
2007-09-12 12:50 ` David Miller
2007-09-12 13:10   ` new NAPI interface broken for POWER architecture? Christoph Raisch
2007-09-12 13:27     ` David Miller
2007-09-12 15:18     ` Arnd Bergmann
2007-10-16  7:29   ` new NAPI interface broken Benjamin Herrenschmidt
2007-10-16  7:42     ` Benjamin Herrenschmidt
2007-10-16  7:44     ` David Miller
2007-10-16  8:28       ` Benjamin Herrenschmidt
2007-10-16  8:31         ` David Miller
2007-10-16  9:01           ` Benjamin Herrenschmidt
2007-10-16 21:01             ` Anton Blanchard
2007-10-17 15:26             ` Christoph Raisch
2007-10-16 15:56           ` Arjan van de Ven
2007-09-14 22:12 ` David Miller
2007-09-18 16:15   ` Jan-Bernd Themann [this message]
2007-09-18 19:08     ` David Miller
2007-09-19 15:33     ` Roland Dreier
2007-09-19 15:43       ` Jan-Bernd Themann

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=200709181815.45954.ossthema@de.ibm.com \
    --to=ossthema@de.ibm.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=raisch@de.ibm.com \
    --cc=shemminger@linux-foundation.org \
    --cc=themann@de.ibm.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).