staging: vt6655: Fix TX retransmission race condition
PATCH 1/1 staging: vt6655: Fix TX retransmission race condition
With high tx flow the same buffer can transmit more than once and get stuck in loop.
Reset TCR to zero in device_tx_srv.
Signed-off-by Malcolm Priestley <[email protected]>
Cc <[email protected]> # v3.19+
--- drivers/staging/vt6655/device_main.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/staging/vt6655/device_main.c +3 -0
@@ -963,6 +963,9 @@ static int device_tx_srv(struct vnt_private *pDevice, unsigned int uIdx)vnt_int_report_rate (pDevice, pTD->pTDInfo, byTsr0, byTsr1);device_free_tx_buf (pDevice, pTD); + +/* Done with TCR reset to avoid retransmission */ + pTD->m_td1TD1.byTCR =0 ; pDevice->iTDUsed[uIdx]--; } }
Signature · 1 line
2.1.0
Quoted 16 lines · Malcolm Priestley
With high tx flow the same buffer can transmit more than once and get stuck in loop.
Reset TCR to zero in
device_tx_srv.Signed-off-by Malcolm Priestley <[email protected]>Cc <[email protected]> # v3.19+--- drivers/staging/vt6655/device_main.c | 3 +++ 1 file changed, 3 insertions(+)drivers/staging/vt6655/device_main.c +0
-0
drivers/staging/vt6655/device_main.c static int device_tx_srv(struct vnt_private *pDevice, unsigned int uIdx) · line 971
Quoted 9 lines
drivers/staging/vt6655/device_main.c +3
-0@@ -963,6 +963,9 @@ static int device_tx_srv(struct vnt_private *pDevice, unsigned int uIdx)vnt_int_report_rate (pDevice, pTD->pTDInfo, byTsr0, byTsr1);device_free_tx_buf (pDevice, pTD); + +/* Done with TCR reset to avoid retransmission */ + pTD->m_td1TD1.byTCR =0 ; pDevice->iTDUsed[uIdx]--; } }
Hi Greg
Please could you drop this patch, it causes a regression in driver.
Thanks
Malcolm