提交 23aa3f21 编写于 作者: Y Yonglong Liu 提交者: Xie XiuQi

net: hns3: fix default value of advertised pause frame use

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Supported flag is Pause and Asym Pause, but default advertising
should be rx on, tx on, so need clear Asym Pause in advertising
flag.

Feature or Bugfix:Bugfix
Signed-off-by: NYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: Nlinyunsheng <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 c81f5e62
...@@ -235,6 +235,12 @@ int hclge_mac_connect_phy(struct hnae3_handle *handle) ...@@ -235,6 +235,12 @@ int hclge_mac_connect_phy(struct hnae3_handle *handle)
phydev->supported &= *hdev->hw.mac.supported; phydev->supported &= *hdev->hw.mac.supported;
phydev->advertising = phydev->supported; phydev->advertising = phydev->supported;
/* supported flag is Pause and Asym Pause, but default advertising
* should be rx on, tx on, so need clear Asym Pause in advertising
* flag
*/
phydev->advertising &= ~ADVERTISED_Asym_Pause;
#endif #endif
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册