net: hns3: Add reset service task for handling reset requests
authorSalil Mehta <salil.mehta@huawei.com>
Mon, 4 Dec 2017 01:29:54 +0000 (01:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 16:45:17 +0000 (11:45 -0500)
commitcb1b9f77c48fb014da7d020f1395eca4fdfcbd9a
tree67ae6cb08be18701c194d52d70f9eb7a4480b117
parentca1d7669b714d35903fc5dfbf54c990c6122a1d4
net: hns3: Add reset service task for handling reset requests

Existing common service task was being used to service the reset
requests. This patch tries to make the handling of reset cleaner
by separating task to handle the reset requests. This might in
turn help in adapting similar handling approach for other
interrupt events like mailbox, sharing vector 0 interrupt.

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