net: hns3: Add mailbox interrupt handling to PF driver
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 14 Dec 2017 18:03:09 +0000 (18:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 15:55:35 +0000 (10:55 -0500)
commitc1a81619d73a436f4b796b44c2711c68aec9b787
tree803ed38bcb2eccb6ac5c929029d3914b4ac659d6
parent84e095d64ed974bd46351650fc8188d372b89fde
net: hns3: Add mailbox interrupt handling to PF driver

All PF mailbox events are conveyed through a common interrupt
(vector 0). This interrupt vector is shared by reset and mailbox.

This patch adds the handling of mailbox interrupt event and its
deferred processing in context to a separate mailbox task.

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