diff options
author | Antoine Tenart <antoine.tenart@free-electrons.com> | 2017-10-23 15:24:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-24 18:34:10 +0900 |
commit | 082297e61480c4d72ed75b31077e74aca0e7c799 (patch) | |
tree | b3c0c88736e2f73dde398930d2418c1c704a1c69 /net/sctp | |
parent | 20920267885218fda08dc12c7d3814938ab15b54 (diff) | |
download | op-kernel-dev-082297e61480c4d72ed75b31077e74aca0e7c799.zip op-kernel-dev-082297e61480c4d72ed75b31077e74aca0e7c799.tar.gz |
net: mvpp2: do not call txq_done from the Tx path when Tx irqs are used
When Tx IRQs are used, txq_bufs_free() can be called from both the Tx
path and from NAPI poll(). This led to CPU stalls as if these two tasks
(Tx and Poll) are scheduled on two CPUs at the same time, DMA unmapping
operations are done on the same txq buffers.
This patch adds a check not to call txq_done() from the Tx path if Tx
interrupts are used as it does not make sense to do so.
Fixes: edc660fa09e2 ("net: mvpp2: replace TX coalescing interrupts with hrtimer")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions