Received: by oss.sgi.com id ; Sun, 25 Jun 2000 05:40:19 -0700 Received: from [203.126.247.144] ([203.126.247.144]:56481 "EHLO zsngs001") by oss.sgi.com with ESMTP id ; Sun, 25 Jun 2000 05:39:51 -0700 Received: from zsngd101.asiapac.nortel.com (actually znsgd101) by zsngs001; Sun, 25 Jun 2000 20:38:54 +0800 Received: from zctwb003.asiapac.nortel.com ([47.152.32.111]) by zsngd101.asiapac.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NQ12P4N9; Sun, 25 Jun 2000 20:38:58 +0800 Received: from pwold011.asiapac.nortel.com ([47.181.193.45]) by zctwb003.asiapac.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NCLF8NV2; Sun, 25 Jun 2000 22:39:01 +1000 Received: from uow.edu.au (IDENT:akpm@[47.181.194.209]) by pwold011.asiapac.nortel.com (8.9.3/8.9.3) with ESMTP id WAA13278; Sun, 25 Jun 2000 22:37:40 +1000 Message-ID: <3955FE28.F9F16C8F@uow.edu.au> Date: Sun, 25 Jun 2000 22:42:16 +1000 X-Sybari-Space: 00000000 00000000 00000000 From: Andrew Morton X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i586) X-Accept-Language: en MIME-Version: 1.0 To: Alan Cox CC: "netdev@oss.sgi.com" , Andreas Tobler Subject: Re: [patch] 3c59x.c for 2.2.17 References: <3955EB11.519DF76B@uow.edu.au> from "Andrew Morton" at Jun 25, 2000 09:20:49 PM Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Orig: Sender: owner-netdev@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;netdev-outgoing Alan Cox wrote: > > Its much cleaner > if the last ring buffer slot is about to be used and the new alloc fails to > simply recycle the buffer and throw the received packet away. Agreed. Mark Hemment's fix basically did this. He reserved an 'emergency' skbuff and never gave it away. I was not attracted to it because it handles a _very_ rare case by adding complexity to a core code path upon which I wish to severaly beat later this year. > Several drivers simply require the ring remains full and they are a lot cleaner > for it. I don't know about the other drivers, but I think the way Donald's 3c59x handles the replenishment of the skbuffs is quite delightful. The fact that I could just call the rx ISR at a random point in time and have everything sort itself out is testament to this.