]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: call hns3_nic_net_open() while doing HNAE3_UP_CLIENT
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 31 Dec 2018 02:58:29 +0000 (10:58 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commitac2dca6bc94e972ad038fabcc7921134e80e956f
tree06b0ed1d78848fd9825caff262e739652608d820
parenta80faab25352759d4df53f7c236fa0dcce03365c
net: hns3: call hns3_nic_net_open() while doing HNAE3_UP_CLIENT

BugLink: https://bugs.launchpad.net/bugs/1810457
For HNAE3_DOWN_CLIENT calling hns3_nic_net_stop(), HNAE3_UP_CLIENT
should call hns3_nic_net_open(), since if the number of queue or
the map of TC has is changed before HHAE3_UP_CLIENT is called,
it will cause problem.

Also the HNS3_NIC_STATE_RESETTING flag needs to be cleared before
hns3_nic_net_open() called, and set it back while hns3_nic_net_open()
failed.

Fixes: bb6b94a896d4 ("net: hns3: Add reset interface implementation in client")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e888402789b9db5de4fcda361331d66dbf0cd9fd)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c