]> git.itanic.dy.fi Git - linux-stable/commit
net: hns3: add interrupt affinity support for misc interrupt
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 29 Jul 2019 02:53:29 +0000 (10:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 15:23:41 +0000 (08:23 -0700)
commit0812545487eca362126cc1ef6b7798ecac693629
tree1627b0433a60a92a42917e9722bdb9f6129b3c89
parent7be1b9f3e99f6213d053d16ed2438126931d8351
net: hns3: add interrupt affinity support for misc interrupt

The misc interrupt is used to schedule the reset and mailbox
subtask, and service_task delayed_work is used to do periodic
management work each second.

This patch sets the above three subtask's affinity using the
misc interrupt' affinity.

Also this patch setups a affinity notify for misc interrupt to
allow user to change the above three subtask's affinity.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h