From: Julien Ducourthial Date: Tue, 8 May 2012 22:00:06 +0000 (+0200) Subject: r8169: fix unsigned int wraparound with TSO X-Git-Tag: v3.2.20~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a549123336c6afafcf2fd2eea7248a8c9ac3385f;p=pandora-kernel.git 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 Acked-by: Francois Romieu Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed