aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/bfin_mac.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-09 02:39:57 +0000
committerDavid S. Miller <davem@davemloft.net>2009-01-11 00:04:12 -0800
commit4ca857958c129781b46870ec1d2d13c50aafb8c5 (patch)
tree4046e0a5a973ec383935ae07d577bd237e40f909 /drivers/net/bfin_mac.h
parent9498c05820580afbf03a317b0b5bdb0ca0e27e40 (diff)
b44: fix misalignment and wasted space in rx handling
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bfin_mac.h')
0 files changed, 0 insertions, 0 deletions