mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Francois Romieu <romieu@fr.zoreil.com>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel 2.6.9 page allocation failures?
Date: Tue, 19 Oct 2004 21:18:17 +0200	[thread overview]
Message-ID: <20041019191817.GA13208@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0410191207000.10356@p500>

Justin Piszcz <jpiszcz@lucidpixels.com> :
[...]
> lftp: page allocation failure. order:0, mode:0x20
>  [<c01391a7>] __alloc_pages+0x247/0x3b0
>  [<c0139328>] __get_free_pages+0x18/0x40
>  [<c013c9af>] kmem_getpages+0x1f/0xc0
>  [<c013d6f0>] cache_grow+0xc0/0x1a0
>  [<c013d99b>] cache_alloc_refill+0x1cb/0x210
>  [<c013de01>] __kmalloc+0x71/0x80
>  [<c036f463>] alloc_skb+0x53/0x100
>  [<c031f9f8>] e1000_alloc_rx_buffers+0x48/0xf0
>  [<c031f6fe>] e1000_clean_rx_irq+0x18e/0x440

If you are using TSO, try patch below by Herbert Xu (available
from http://marc.theaimsgroup.com/?l=linux-netdev&m=109799935603132&w=3)

--- 1.67/net/ipv4/tcp_output.c	2004-10-01 13:56:45 +10:00
+++ edited/net/ipv4/tcp_output.c	2004-10-17 18:58:47 +10:00
@@ -455,8 +455,12 @@
 {
 	struct tcp_opt *tp = tcp_sk(sk);
 	struct sk_buff *buff;
-	int nsize = skb->len - len;
+	int nsize;
 	u16 flags;
+
+	nsize = skb_headlen(skb) - len;
+	if (nsize < 0)
+		nsize = 0;
 
 	if (skb_cloned(skb) &&
 	    skb_is_nonlinear(skb) &&


      reply	other threads:[~2004-10-19 19:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-19 16:11 Justin Piszcz
2004-10-19 19:18 ` Francois Romieu [this message]

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=20041019191817.GA13208@electric-eye.fr.zoreil.com \
    --to=romieu@fr.zoreil.com \
    --cc=jpiszcz@lucidpixels.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®