netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: nbd@openwrt.org
Cc: netdev@vger.kernel.org, mb@bu3sch.de
Subject: Re: [PATCH v2] b44: fix misalignment and wasted space in rx handling
Date: Fri, 09 Jan 2009 23:08:17 -0800 (PST)	[thread overview]
Message-ID: <20090109.230817.36393679.davem@davemloft.net> (raw)
In-Reply-To: <4967459D.3070207@openwrt.org>

From: Felix Fietkau <nbd@openwrt.org>
Date: Fri, 09 Jan 2009 13:39:57 +0100

> Broadcom 4400 puts a header of configurable size (apparently needs
> to be at least 28 bytes) in front of received packets. When handling
> this, the previous code accidentally added the offset 30 *twice* for
> the software and once for the hardware, thereby cancelling out the
> IP alignment effect of the 30 byte padding and wasting an additional
> 30 bytes of memory per packet.
> 
> This patch fixes this problem and improves routing throughput by
> about 30% on MIPS, where unaligned access is expensive.
> 
> Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Applied.

      parent reply	other threads:[~2009-01-10  7:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-09 12:39 [PATCH v2] b44: fix misalignment and wasted space in rx handling Felix Fietkau
2009-01-09 22:25 ` Michael Buesch
2009-01-09 22:55   ` Felix Fietkau
2009-01-10  7:08 ` David Miller [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=20090109.230817.36393679.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=mb@bu3sch.de \
    --cc=nbd@openwrt.org \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).