aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorJulien Ducourthial <jducourt@free.fr>2012-05-09 00:00:06 +0200
committerBen Hutchings <ben@decadent.org.uk>2012-06-10 14:42:05 +0100
commita549123336c6afafcf2fd2eea7248a8c9ac3385f (patch)
treebf1e9bc96965a91c01433d840947977934ccb1cc /net/core/dev.c
parentba3d9c0eb1ed88c156e49eadcb1e9ec22cfc2fed (diff)
downloadkernel_samsung_smdk4412-a549123336c6afafcf2fd2eea7248a8c9ac3385f.zip
kernel_samsung_smdk4412-a549123336c6afafcf2fd2eea7248a8c9ac3385f.tar.gz
kernel_samsung_smdk4412-a549123336c6afafcf2fd2eea7248a8c9ac3385f.tar.bz2
r8169: fix unsigned int wraparound with TSO
[ Upstream commit 477206a018f902895bfcd069dd820bfe94c187b1 ] 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> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions