Repository navigation
Commit a549123
r8169: fix unsigned int wraparound with TSO
[ Upstream commit 477206a ]
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>1 parent ba3d9c0 commit a549123
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
5512 | 5516 | | |
5513 | 5517 | | |
5514 | 5518 | | |
5515 | | - | |
| 5519 | + | |
5516 | 5520 | | |
5517 | 5521 | | |
5518 | 5522 | | |
| |||
5560 | 5564 | | |
5561 | 5565 | | |
5562 | 5566 | | |
5563 | | - | |
| 5567 | + | |
5564 | 5568 | | |
5565 | 5569 | | |
5566 | 5570 | | |
| |||
5574 | 5578 | | |
5575 | 5579 | | |
5576 | 5580 | | |
5577 | | - | |
| 5581 | + | |
5578 | 5582 | | |
5579 | 5583 | | |
5580 | 5584 | | |
| |||
5683 | 5687 | | |
5684 | 5688 | | |
5685 | 5689 | | |
5686 | | - | |
| 5690 | + | |
5687 | 5691 | | |
5688 | 5692 | | |
5689 | 5693 | | |
| |||
0 commit comments