net: hns3: fix for ipv6 address loss problem after setting channels
authorFuyun Liang <liangfuyun1@huawei.com>
Sat, 10 Mar 2018 03:29:24 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 02:53:31 +0000 (22:53 -0400)
commit20e4bf982b72e5716233542d73b1e516485b71fb
treea151441558827695145caa69da1f66a9c6ff07c1
parent8cc6c1f77ba024fac4fb0cecc359a7c6a0df443c
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: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c