]> git.baikalelectronics.ru Git - kernel.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)
commitaac4bb7b4792b4d772a87956c3bf550e5d1e349b
treea6ca3f2c5a55b6010aca8b27c391655ab1bc577f
parent77c7d4dd2eee5bfb98cdc6e810c1407c8d406bf2
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: 6ef3f93fb2d3 ("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