]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add initialization for nic state
authorJian Shen <shenjian15@huawei.com>
Sat, 26 Jan 2019 16:49:20 +0000 (00:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 17:33:31 +0000 (09:33 -0800)
commit5b08b68dc3d770f0380664743059f403d78f8875
treec42de64369e83b33f0a9e25eb41811b637c85ef2
parent58ab307768fbcafa3d8ecc1c594c9444ec41efc6
net: hns3: add initialization for nic state

This patch adds initialization for nic state, sets flag
HNS3_NIC_STATE_DOWN when initialize, clears it before
vectors and napi being enabled in the hns3_nic_net_up(),
and sets it back in the error handler.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c