projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f14c5b
)
net: hns3: set up the vport alive state while reinitializing
author
Huazhong Tan
<
[email protected]
>
Sat, 6 Apr 2019 07:43:26 +0000
(15:43 +0800)
committer
David S. Miller
<
[email protected]
>
Mon, 8 Apr 2019 22:30:49 +0000
(15:30 -0700)
When reinitializing, the vport alive state needs to be set up.
Signed-off-by: Huazhong Tan <
[email protected]
>
Signed-off-by: Peng Li <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index 0f389a43ff8de03d0a11fd08a6dbbfef1fc1ab0c..edfe8566fc30dbe2dad314373968a16de3c686c3 100644
(file)
--- 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;