]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 16:45:17 +0000 (11:45 -0500)
commite0c61d95eb3fc7a5fa4ba859bc026b7696a9b555
treecded4363010a97071845dd47ef81f1af520846c1
parentb239d1d751d72cd27c1d687852ab60594c3ff1e9
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