]> git.itanic.dy.fi Git - linux-stable/commit
net: hns3: remove unnecessary work in hclgevf_main
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 14 Dec 2019 02:06:39 +0000 (10:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:12:25 +0000 (16:12 -0800)
commitff200099d271cb14e4415449559da7cc6a38f4a1
tree6f7e7aecd91ac51422a5dd4ff8be8984a35dcb1d
parent1c6dfe6fc6f77f3d124e63c2c2c3f9bb73f8d92c
net: hns3: remove unnecessary work in hclgevf_main

There are four work (mbx_service_task, service_task,
rst_service_task and keep_alive_task)in the hclgevf module,
mbx_service_task is for handling mailbox issue, service_task is
for periodic management issue and rst_service_task is for reset
related issue, keep_alive_task is used to keepalive between PF
and VF, which can be done in a single work.

This patch removes the mbx_service_task, rst_service_task and
keep_alive_task, and moves the related handling to the
service_task work in order to remove concurrency between the four
work and to improve efficiency.

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>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h