linux_dsm_epyc7002/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 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-07-03 14:55:13 -07:00
efx.h sfc: Fix EEH with legacy interrupts. 2013-06-24 19:58:25 +01:00
enum.h
ethtool.c sfc: Report software timestamping capabilities 2013-06-24 19:58:29 +01:00
falcon_boards.c
falcon_xmac.c
falcon.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-05-02 14:38:53 -07:00
filter.c sfc: Enable accelerated RFS on vlans 2013-06-24 19:58:30 +01:00
filter.h
io.h
Kconfig sfc: Fix Kconfig typo "----help---" 2013-03-18 10:50:23 +01:00
Makefile
mcdi_mac.c
mcdi_mon.c
mcdi_pcol.h
mcdi_phy.c
mcdi.c sfc: Fix naming of MTD partitions for FPGA bitfiles 2013-04-25 01:37:00 -04:00
mcdi.h
mdio_10g.c
mdio_10g.h
mtd.c
net_driver.h sfc: Define and set RX buffer flag for packets parsed as TCP 2013-06-24 19:58:32 +01:00
nic.c sfc: Fix IRQ cleanup in case of a probe failure 2013-06-24 20:02:52 +01:00
nic.h sfc: Report software timestamping capabilities 2013-06-24 19:58:29 +01:00
phy.h
ptp.c sfc: Report software timestamping capabilities 2013-06-24 19:58:29 +01:00
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 sfc: Store port number in private data, not net_device::dev_id 2013-06-12 03:15:02 -07:00
spi.h
tenxpress.c
tx.c
txc43128_phy.c
vfdi.h
workarounds.h