diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2019-04-06 15:43:26 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-08 15:30:49 -0700 |
commit | cd513a69750b4be20b8c077e05c5112f0fd014f2 (patch) | |
tree | 592f991c0987e2600d7fa6a905043f284abe4bc0 /drivers | |
parent | 0f14c5b1a9c9d082d9b567e3775e299ec075721d (diff) | |
download | lwn-cd513a69750b4be20b8c077e05c5112f0fd014f2.tar.gz lwn-cd513a69750b4be20b8c077e05c5112f0fd014f2.zip |
net: hns3: set up the vport alive state while reinitializing
When reinitializing, the vport alive state needs to be set up.
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 0f389a43ff8d..edfe8566fc30 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -4075,10 +4075,18 @@ static int hns3_reset_notify_init_enet(struct hnae3_handle *handle) if (ret) goto err_uninit_vector; + ret = hns3_client_start(handle); + if (ret) { + dev_err(priv->dev, "hns3_client_start fail! ret=%d\n", ret); + goto err_uninit_ring; + } + set_bit(HNS3_NIC_STATE_INITED, &priv->state); return ret; +err_uninit_ring: + hns3_uninit_all_ring(priv); err_uninit_vector: hns3_nic_uninit_vector_data(priv); priv->ring_data = NULL; |