]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: extract handling of mpf/pf msi-x errors into functions
authorWeihang Li <liweihang@hisilicon.com>
Thu, 13 Jun 2019 09:12:26 +0000 (17:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:26:16 +0000 (19:26 -0700)
commit50e4a29ded46217768fca9ac02b579617a9e8643
tree56d29f9c6dcb7e1deac4f33f2b6bd6d0fa318516
parent26851ede57f960e90bd34fbfb5a2dfab392055f8
net: hns3: extract handling of mpf/pf msi-x errors into functions

Function hclge_handle_all_hw_msix_error() contains four parts:
1. Query buffer descriptors for MSI-X errors.
2. Query and clear all main PF MSI-X errors.
3. Query and clear all PF MSI-X errors.
4. Handle mac tunnel interrupts.
Part 2 and part 3 handle errors of some different modules respectively,
this patch extracts them into dividual functions, which makes the logic
clearer.

Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Peng Li <lipeng321@huawei.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_err.c