]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Refactor of the reset interrupt handling logic
authorSalil Mehta <salil.mehta@huawei.com>
Mon, 4 Dec 2017 01:29:53 +0000 (01:29 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:46:53 +0000 (10:46 -0500)
commit202f201466720e76c104a265804e919c41375cb4
treed0fa34322c0cce7d64c43a416fd73edffac998a5
parent671d68f3dfee4d9a0d2541abe520b2a24e823e08
net: hns3: Refactor of the reset interrupt handling logic

BugLink: http://bugs.launchpad.net/bugs/1756097
The reset interrupt event shares common miscellaneous interrupt
Vector 0. In the existing reset interrupt handling we disable
the Vector 0 interrupt in misc interrupt handler and re-enable
them later in context to common service task.

This also means other event sources like mailbox would also be
deferred or if the interrupt event was due to mailbox(which shall
be supported for VF soon), it could delay the reset handling.

This patch reorganizes the reset interrupt handling logic and
makes it more fair to other events.

Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit ca1d7669b714d35903fc5dfbf54c990c6122a1d4)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h