]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: hns3: fix incorrect configuration for igu_egu_hw_err
authorYufeng Mo <moyufeng@huawei.com>
Thu, 29 Apr 2021 08:34:50 +0000 (16:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Apr 2021 22:41:43 +0000 (15:41 -0700)
commit2867298dd49ee84214b8721521dc7a5a6382520c
treea6ca3f2c5a55b6010aca8b27c391655ab1bc577f
parent1a70f6597d5f8abf6cea8e2df213740a18746194
net: hns3: fix incorrect configuration for igu_egu_hw_err

According to the UM, the type and enable status of igu_egu_hw_err
should be configured separately. Currently, the type field is
incorrect when disable this error. So fix it by configuring these
two fields separately.

Fixes: bf1faf9415dd ("net: hns3: Add enable and process hw errors from IGU, EGU and NCSI")
Signed-off-by: Yufeng Mo <moyufeng@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
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h