linux/drivers/net/ethernet/realtek
Julien Ducourthial 477206a018 r8169: fix unsigned int wraparound with TSO
The r8169 may get stuck or show bad behaviour after activating TSO :
the net_device is not stopped when it has no more TX descriptors.
This problem comes from TX_BUFS_AVAIL which may reach -1 when all
transmit descriptors are in use. The patch simply tries to keep positive
values.

Tested with 8111d(onboard) on a D510MO, and with 8111e(onboard) on a
Zotac 890GXITX.

Signed-off-by: Julien Ducourthial <jducourt@free.fr>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-08 19:34:10 -04:00
..
8139cp.c 8139cp: set intr mask after its handler is registered 2012-04-13 13:41:52 -04:00
8139too.c 8139too: Add 64bit statistics 2012-03-06 00:04:16 -05:00
atp.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
atp.h
Kconfig drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
Makefile
r8169.c r8169: fix unsigned int wraparound with TSO 2012-05-08 19:34:10 -04:00