linux/drivers/net/ethernet/sfc
Ben Hutchings 734d4e159b sfc: Fix memory leak when discarding scattered packets
Commit 2768935a46 ('sfc: reuse pages to avoid DMA mapping/unmapping
costs') did not fully take account of DMA scattering which was
introduced immediately before.  If a received packet is invalid and
must be discarded, we only drop a reference to the first buffer's
page, but we need to drop a reference for each buffer the packet
used.

I think this bug was missed partly because efx_recycle_rx_buffers()
was not renamed and so no longer does what its name says.  It does not
change the state of buffers, but only prepares the underlying pages
for recycling.  Rename it accordingly.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-07-05 01:29:15 -07:00
..
bitfield.h
efx.c
efx.h
enum.h
ethtool.c
falcon_boards.c
falcon_xmac.c
falcon.c
filter.c
filter.h
io.h
Kconfig
Makefile
mcdi_mac.c
mcdi_mon.c
mcdi_pcol.h
mcdi_phy.c
mcdi.c
mcdi.h
mdio_10g.c
mdio_10g.h
mtd.c
net_driver.h
nic.c
nic.h
phy.h
ptp.c
qt202x_phy.c
regs.h
rx.c sfc: Fix memory leak when discarding scattered packets 2013-07-05 01:29:15 -07:00
selftest.c
selftest.h
siena_sriov.c
siena.c
spi.h
tenxpress.c
tx.c
txc43128_phy.c
vfdi.h
workarounds.h