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
..
2012-04-26 05:36:39 -04:00
2012-04-26 05:07:45 -04:00
2012-03-23 14:51:31 -04:00
2012-03-30 17:31:56 -07:00
2012-05-03 01:42:55 -04:00
2012-04-01 23:09:36 -04:00
2012-02-22 14:44:41 -05:00
2012-03-12 17:08:34 -07:00
2012-03-12 17:08:34 -07:00