]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add exception handling when enable NIC HW error interrupts
authorWeihang Li <liweihang@hisilicon.com>
Thu, 20 Jun 2019 08:52:45 +0000 (16:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2019 15:59:02 +0000 (11:59 -0400)
commit63d95d76b850d4d04e101fd292f81c893b3bb88a
tree2996840949d8f43a62c76464c597f3c33ac78a92
parentdeac635a3dc7f13a86d1abe31a7d1d17a43c3adf
net: hns3: add exception handling when enable NIC HW error interrupts

If we failed to enable NIC HW error interrupts during client
initialization in some cases, we should do exception handling to clear
flags and free the resources.

Fixes: 534ee872602f ("net: hns3: delay and separate enabling of NIC and ROCE HW errors")
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c