• F
    b44: fix misalignment and wasted space in rx handling · 4ca85795
    Felix Fietkau 提交于
    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: NFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    4ca85795
b44.c 57.4 KB