提交 20e4bf98 编写于 作者: F Fuyun Liang 提交者: David S. Miller

net: hns3: fix for ipv6 address loss problem after setting channels

The function of dev_close and dev_open is just likes ifconfig <netif> down
and ifconfig <netif> up. The ipv6 address will be lost after dev_close and
dev_open are called. This patch uses hns3_nic_net_stop to replace dev_close
and uses hns3_nic_net_open to replace dev_open.
Signed-off-by: NFuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8cc6c1f7
......@@ -3503,7 +3503,7 @@ int hns3_set_channels(struct net_device *netdev,
return 0;
if (if_running)
dev_close(netdev);
hns3_nic_net_stop(netdev);
hns3_clear_all_ring(h);
......@@ -3546,7 +3546,7 @@ int hns3_set_channels(struct net_device *netdev,
open_netdev:
if (if_running)
dev_open(netdev);
hns3_nic_net_open(netdev);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册