summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-10-19 16:03:51 +0800
committerDavid S. Miller <davem@davemloft.net>2019-10-21 09:22:09 -0700
commit88b7c58c199dd231fd87703f4a6209eec60ab138 (patch)
tree07a5cb0e1334c3bbded477faf9ffbb1ae0441ecf /scripts/gcc-plugins
parent0e02a53d64b470b96739189c015f6d9225c11587 (diff)
net: hns3: minor optimization for barrier in IO path
Currently, the TX and RX ring in a queue is bounded to the same IRQ, there may be unnecessary barrier op when only one of the ring need to be processed. This patch adjusts the location of rmb() in hns3_clean_tx_ring() and adds a checking in hns3_clean_rx_ring() to avoid unnecessary barrier op when there is nothing to do for the ring. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions