Skip to content
Snippets Groups Projects
Commit 46293832 authored by Yonglong Liu's avatar Yonglong Liu Committed by Cheng Jian
Browse files

net: hns: fix ping failed when setting "autoneg off speed 100 duplex half"


driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

-----------------------------

When setting "autoneg off speed 100 duplex half", ping will
failed. This patch turn off the autoneg mode of mac to fix
the problem.

Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarli yongxin <liyongxin1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent d5e23125
No related branches found
No related tags found
No related merge requests found
......@@ -470,9 +470,6 @@ void hns_mac_reset(struct hns_mac_cb *mac_cb)
if (drv->set_tx_auto_pause_frames)
drv->set_tx_auto_pause_frames(drv, mac_cb->tx_pause_frm_time);
if (drv->set_an_mode)
drv->set_an_mode(drv, 1);
if (drv->mac_pausefrm_cfg) {
if (mac_cb->mac_type == HNAE_PORT_DEBUG)
drv->mac_pausefrm_cfg(drv, !is_ver1, !is_ver1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment