All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Duncan Sands <baldrick@free.fr>
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.5] USB speedtouch: reduce memory usage
Date: Tue, 30 Sep 2003 16:36:02 -0700	[thread overview]
Message-ID: <20030930233602.GC21422@kroah.com> (raw)
In-Reply-To: <200309292337.08915.baldrick@free.fr>

On Mon, Sep 29, 2003 at 11:37:08PM +0200, Duncan Sands wrote:
> Currently, incoming packets are reassembled in a sk_buff which is then
> sent to the upper layers.  The sk_buff needs to be big enough to hold the
> worst case packet since the size cannot be known in advance.  This would
> not be so bad if the ATM layer paid attention to the mtu (usually 1500 bytes),
> but for some reason it blithely ignores it and typically passes 9188 bytes
> as the maximum size.  This means that at best 5/6 of the space in every
> sk_buff is wasted.  So instead let's just allocate an assembly buffer (sarb)
> which gets reused for every packet, and copy each assembled packet into
> a minimally sized sk_buff before sending.
>  
> 
>  speedtch.c |  106 +++++++++++++++++++++++++++++++------------------------------
>  1 files changed, 55 insertions(+), 51 deletions(-)


Applied, thanks.

greg k-h


      reply	other threads:[~2003-09-30 23:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29 21:37 [PATCH 2.5] USB speedtouch: reduce memory usage Duncan Sands
2003-09-30 23:36 ` Greg KH [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=20030930233602.GC21422@kroah.com \
    --to=greg@kroah.com \
    --cc=baldrick@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.