summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2019-01-27 00:49:20 +0800
committerDavid S. Miller <davem@davemloft.net>2019-01-26 09:33:31 -0800
commitb7b585c286ab021bdb1d0c14b93c58b6bfbe3ef0 (patch)
treec42de64369e83b33f0a9e25eb41811b637c85ef2 /drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
parent51e8439f34962794f6c5010a44893fe58450b8df (diff)
downloadlinux-b7b585c286ab021bdb1d0c14b93c58b6bfbe3ef0.tar.bz2
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c')
0 files changed, 0 insertions, 0 deletions