diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2018-12-18 19:37:50 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-18 12:01:01 -0800 |
commit | 531eba0fe2b5172ed0ab1cc6a311b2b6b9e6b402 (patch) | |
tree | 63518061d8e3bc750fabe553d62eabb8be0333a7 /lib | |
parent | e3338205f0c700caae52a36cd0e3a815e6efd281 (diff) |
net: hns3: fix napi_disable not return problem
While doing DOWN, the calling of napi_disable() may not return, since the
napi_complete() in the hns3_nic_common_poll() will never be called when
HNS3_NIC_STATE_DOWN is set. So we need to call napi_complete() before
checking HNS3_NIC_STETE_DOWN.
Fixes: ff0699e04b97 ("net: hns3: stop napi polling when HNS3_NIC_STATE_DOWN is 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 'lib')
0 files changed, 0 insertions, 0 deletions