diff options
| author | Niklas Cassel <[email protected]> | 2017-06-06 07:25:00 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-06-06 20:24:09 +0000 |
| commit | 426849e6611f2092553f8d53372ae310818a6292 (patch) | |
| tree | 4fd24f7c67978e435247e14f5595f39cc32292e2 /net/dsa/dsa.c | |
| parent | net: ethoc: enable NAPI before poll may be scheduled (diff) | |
| download | kernel-426849e6611f2092553f8d53372ae310818a6292.tar.gz kernel-426849e6611f2092553f8d53372ae310818a6292.zip | |
net: stmmac: fix completely hung TX when using TSO
stmmac_tso_allocator can fail to set the Last Descriptor bit
on a descriptor that actually was the last descriptor.
This happens when the buffer of the last descriptor ends
up having a size of exactly TSO_MAX_BUFF_SIZE.
When the IP eventually reaches the next last descriptor,
which actually has the bit set, the DMA will hang.
When the DMA hangs, we get a tx timeout, however,
since stmmac does not do a complete reset of the IP
in stmmac_tx_timeout, we end up in a state with
completely hung TX.
Signed-off-by: Niklas Cassel <[email protected]>
Acked-by: Giuseppe Cavallaro <[email protected]>
Acked-by: Alexandre TORGUE <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions
