提交 5cc236fd 编写于 作者: S shenjian 提交者: Xie XiuQi

net: hns3: fix HCLGE_SWITCH_ALW_LPBK_B set error

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

When doing loopback test, it should set HCLGE_SWITCH_ALW_LPBK_B
intead of HCLGE_SWITCH_ALW_LCL_LPBK_B, which may cause loopback
test fail.

Feature or Bugfix:Bugfix
Signed-off-by: Nshenjian (K) <shenjian15@huawei.com>
Reviewed-by: Nhuangdaode <huangdaode@hisilicon.com>
Reviewed-by: NYunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 fea4e7dc
......@@ -6619,9 +6619,9 @@ static int hclge_set_loopback(struct hnae3_handle *handle,
* is disabled, packets can reach MAC even if SMAC is the same as DMAC.
*/
if (hdev->pdev->revision >= 0x21) {
value = en ? 0 : ~BIT(HCLGE_SWITCH_ALW_LCL_LPBK_B);
value = en ? 0 : BIT(HCLGE_SWITCH_ALW_LPBK_B);
ret = hclge_config_switch_param(hdev, PF_VPORT_ID, value,
HCLGE_SWITCH_ALW_LCL_LPBK_MASK);
HCLGE_SWITCH_ALW_LPBK_MASK);
if (ret)
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册