diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2019-05-28 17:02:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-28 17:39:01 -0700 |
commit | 25d1817c4e5020b850b8bc383401ceff3cbc6e31 (patch) | |
tree | 653380706af2f01f91956b0ceee08f15ade50dc4 /net/lapb/lapb_in.c | |
parent | 2a0bfc36183cb4eb5f1212faafbc93876a9a2088 (diff) |
net: hns3: use HCLGEVF_STATE_NIC_REGISTERED to indicate VF NIC client has registered
When VF NIC client's init_instance() succeeds, it means this client
has been registered successfully, so we use HCLGEVF_STATE_NIC_REGISTERED
to indicate that. And before calling VF NIC client's uninit_instance(),
we clear this state.
So any operation of VF NIC client from HCLGEVF is not allowed if this
state is not set.
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 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions