1
linux/drivers/staging/octeon
David Daney 166bdaa9aa Staging: Octeon Ethernet: Fix memory allocation.
After aligning the blocks returned by kmalloc, we need to save the original
pointer so they can be correctly freed.

There are no guarantees about the alignment of SKB data, so we need to
handle worst case alignment.

Since right shifts over subtraction have no distributive property, we need
to fix the back pointer calculation.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/884/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-02-27 12:53:07 +01:00
..
cvmx-address.h
cvmx-asxx-defs.h
cvmx-cmd-queue.c
cvmx-cmd-queue.h
cvmx-config.h
cvmx-dbg-defs.h
cvmx-fau.h
cvmx-fpa-defs.h
cvmx-fpa.c
cvmx-fpa.h
cvmx-gmxx-defs.h
cvmx-helper-board.c
cvmx-helper-board.h
cvmx-helper-fpa.c
cvmx-helper-fpa.h
cvmx-helper-loop.c
cvmx-helper-loop.h
cvmx-helper-npi.c
cvmx-helper-npi.h
cvmx-helper-rgmii.c
cvmx-helper-rgmii.h
cvmx-helper-sgmii.c
cvmx-helper-sgmii.h
cvmx-helper-spi.c
cvmx-helper-spi.h
cvmx-helper-util.c
cvmx-helper-util.h
cvmx-helper-xaui.c
cvmx-helper-xaui.h
cvmx-helper.c
cvmx-helper.h
cvmx-interrupt-decodes.c
cvmx-interrupt-rsl.c
cvmx-ipd.h
cvmx-mdio.h MIPS: Octeon: False positive timeout 2009-09-17 20:07:41 +02:00
cvmx-packet.h
cvmx-pcsx-defs.h
cvmx-pcsxx-defs.h
cvmx-pip-defs.h
cvmx-pip.h
cvmx-pko-defs.h
cvmx-pko.c
cvmx-pko.h
cvmx-pow.h Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
cvmx-scratch.h
cvmx-smix-defs.h
cvmx-spi.c
cvmx-spi.h
cvmx-spxx-defs.h
cvmx-srxx-defs.h
cvmx-stxx-defs.h
cvmx-wqe.h
ethernet-defines.h Staging: Octeon Ethernet: Remove unused code. 2010-02-27 12:53:06 +01:00
ethernet-mdio.c Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
ethernet-mdio.h Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
ethernet-mem.c Staging: Octeon Ethernet: Fix memory allocation. 2010-02-27 12:53:07 +01:00
ethernet-mem.h
ethernet-proc.c Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
ethernet-proc.h
ethernet-rgmii.c Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
ethernet-rx.c Staging: Octeon Ethernet: Remove unused code. 2010-02-27 12:53:06 +01:00
ethernet-rx.h
ethernet-sgmii.c Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
ethernet-spi.c Staging: Octeon: Use symbolic values for irq numbers. 2009-11-23 18:55:34 +00:00
ethernet-tx.c Staging: Octeon Ethernet: Fix memory allocation. 2010-02-27 12:53:07 +01:00
ethernet-tx.h Staging: octeon-ethernet: Fix race freeing transmit buffers. 2009-06-24 18:34:41 +01:00
ethernet-util.h
ethernet-xaui.c Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
ethernet.c Staging: Octeon Ethernet: Remove unused code. 2010-02-27 12:53:06 +01:00
Kconfig Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
Makefile Staging: octeon-ethernet: Convert to use net_device_ops. 2009-06-24 18:34:41 +01:00
octeon-ethernet.h Staging: Octeon Ethernet: Remove unused code. 2010-02-27 12:53:06 +01:00