]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add a resetting check in hclgevf_init_nic_client_instance()
authorGuangbin Huang <huangguangbin2@huawei.com>
Wed, 27 May 2020 00:59:14 +0000 (08:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 21:56:08 +0000 (14:56 -0700)
commit0d7d7e776f4993521539b8a1f7ad08013f784256
tree39903b8ac34fca844c1e729fbd75b6955398e53b
parent16a8626b60f8d820830703cbd0b2bc6cadc9c0fa
net: hns3: add a resetting check in hclgevf_init_nic_client_instance()

To prevent from initializing VF NIC client in reset handling state,
this patch adds resetting check in hclgevf_init_nic_client_instance().

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c