summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-04-08 01:54:08 +0300
committerDavid S. Miller <davem@davemloft.net>2016-04-13 05:41:32 +0300
commit34c2e4c9e9b3e434a31f67eecf603dc1496c8cc9 (patch)
treeb5106da438276ca96bc4f442350bf62de5843bfc /tools/perf
parent13c822f6d468ca5a16da4d9432b067d54245c5b9 (diff)
downloadlinux-34c2e4c9e9b3e434a31f67eecf603dc1496c8cc9.tar.xz
net: mediatek: fix TX locking
Inside the TX path there is a lock inside the tx_map function. This is however too late. The patch moves the lock to the start of the xmit function right before the free count check of the DMA ring happens. If we do not do this, the code becomes racy leading to TX stalls and dropped packets. This happens as there are 2 netdevs running on the same physical DMA ring. Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions