提交 c14ab0f4 编写于 作者: H Huazhong Tan 提交者: Xie XiuQi

net: hns3: prevent unnecessary MAC TNL interruption

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

MAC TNL interrupt is used to collect statistics info about
link status changing suddenly when netdev running.

But when stopping netdev, there also be a MAC TNL interrupt
which is unnecessary, and may add some noise to the statistics
info. So this patch disables it before stopping MAC.

Fixes: a6345787 ("net: hns3: Add handling of MAC tunnel interruption")

Feature or Bugfix:Bugfix
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Nlinyunsheng <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 60712dc2
......@@ -6685,6 +6685,8 @@ static void hclge_ae_stop(struct hnae3_handle *handle)
return;
}
hclge_config_mac_tnl_int(hdev, false);
/* Mac disable */
hclge_cfg_mac_mode(hdev, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册