]> asedeno.scripts.mit.edu Git - linux.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)
commit9e0254ddea78cf947bf6650a3ec8e50ab132e8a1
tree56d29f9c6dcb7e1deac4f33f2b6bd6d0fa318516
parent9f65e5ef900f6590dc7c90ca2a956247da393b07
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