[PATCH net-next 0/5] net: hns3: some optimizaions related to work task

From: Huazhong Tan
Date: Fri Dec 13 2019 - 21:06:58 EST


This series refactors the work task of the HNS3 ethernet driver.

[patch 1/5] uses delayed workqueue to replace the timer for
hclgevf_service task, make the code simpler.

[patch 2/5] & [patch 3/5] unifies current mailbox, reset and
service work into one.

[patch 4/5] allocates a private work queue with WQ_MEM_RECLAIM
for the HNS3 driver.

[patch 5/5] adds a new flag to indicate whether reset fails,
and prevent scheduling service task to handle periodic task
when this flag has been set.

Guojia Liao (1):
net: hns3: do not schedule the periodic task when reset fail

Yunsheng Lin (4):
net: hns3: schedule hclgevf_service by using delayed workqueue
net: hns3: remove mailbox and reset work in hclge_main
net: hns3: remove unnecessary work in hclgevf_main
net: hns3: allocate WQ with WQ_MEM_RECLAIM flag

.../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 10 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 179 ++++++++++++------
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 18 +-
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 1 -
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 209 ++++++++++-----------
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 13 +-
6 files changed, 242 insertions(+), 188 deletions(-)

--
2.7.4