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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:13:05 +0000 (10:13 +0200)
commit5d326e253501868538da2c7ac602ef797b3720b1
treef97c804568c581b8e70bd7333a9bfc39c957ff32
parent494ade7aba117f8054f78addc5c36f1a622b17e8
net: hns3: fix incorrect configuration for igu_egu_hw_err

[ Upstream commit 2867298dd49ee84214b8721521dc7a5a6382520c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h