public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Dominik Karall <dominik.karall@gmx.net>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>,
	Daniele Venzano <webvenza@libero.it>
Subject: Re: SiS900: NULL pointer encountered in Rx ring, skipping
Date: Tue, 27 Jul 2004 12:21:58 -0400	[thread overview]
Message-ID: <41068126.3000009@pobox.com> (raw)
In-Reply-To: <200407271814.59859.dominik.karall@gmx.net>

Dominik Karall wrote:
> On Tuesday 27 July 2004 17:26, Jeff Garzik wrote:
> 
>>Dominik Karall wrote:
>>
>>>After a few hours my network doesn't work on my laptop. There appear a
>>>lot of those messages:
>>>
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>eth0: NULL pointer encountered in Rx ring, skipping
>>>
>>>It works again after restarting network. I'm using 2.6.8-rc2 now. It was
>>>the same problem in 2.6.7, but I didn't test it with earlier kernels.
>>
>>A NULL appears when the machine is temporarily unable to allocate room
>>for a new skb.  Your machine's atomic memory pools are getting too low...
>>
>>	Jeff
> 
> 
> Yes, I took a look at the code and found the debug message. But isn't there 
> any way to avoid network stop working? Because after a network restart it 
> works again, maybe there could be used any "soft reset" to make network 
> working again after such an error.

The OOM problem is completely unrelated to the network, therefore no 
reset should ever be considered for this condition.

The driver should properly handle the 'NULL in rx ring' condition as a 
normal occurence.  It should skip to the next available skb in the ring. 
  If no skbs are remain, it should drop the skb.

See natsemi.c for additional -- and optional -- OOM handling techniques.

	Jeff



  reply	other threads:[~2004-07-27 16:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23 18:52 SiS900: NULL pointer encountered in Rx ring, skipping Dominik Karall
2004-07-25  9:21 ` Dominik Karall
2004-07-27 15:26 ` Jeff Garzik
2004-07-27 16:14   ` Dominik Karall
2004-07-27 16:21     ` Jeff Garzik [this message]
2004-07-28 12:29       ` Daniele Venzano

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=41068126.3000009@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=dominik.karall@gmx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=webvenza@libero.it \
    /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