Repository navigation
Commit 477206a
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>1 parent c5baa80 commit 477206a
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
5115 | 5119 | | |
5116 | 5120 | | |
5117 | 5121 | | |
5118 | | - | |
| 5122 | + | |
5119 | 5123 | | |
5120 | 5124 | | |
5121 | 5125 | | |
| |||
5169 | 5173 | | |
5170 | 5174 | | |
5171 | 5175 | | |
5172 | | - | |
| 5176 | + | |
5173 | 5177 | | |
5174 | 5178 | | |
5175 | 5179 | | |
| |||
5183 | 5187 | | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | | - | |
| 5190 | + | |
5187 | 5191 | | |
5188 | 5192 | | |
5189 | 5193 | | |
| |||
5306 | 5310 | | |
5307 | 5311 | | |
5308 | 5312 | | |
5309 | | - | |
| 5313 | + | |
5310 | 5314 | | |
5311 | 5315 | | |
5312 | 5316 | | |
| |||
0 commit comments