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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 16:45:17 +0000 (11:45 -0500)
commitca1d7669b714d35903fc5dfbf54c990c6122a1d4
treecded4363010a97071845dd47ef81f1af520846c1
parent81da3bf6e3f886267e450c422e6b7254ad6f93a5
net: hns3: Refactor of the reset interrupt handling logic

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