diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2018-11-09 17:07:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-10 03:47:35 +0300 |
commit | ff0699e04b977b61c5505cdfa5a386b9bceb3e6d (patch) | |
tree | 4f13cd3aa733d1a4545c5559cfd1181aee625efe /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 6a5f6fa382f3f4d5f519a9a52ed63afb4841fc0c (diff) | |
download | linux-ff0699e04b977b61c5505cdfa5a386b9bceb3e6d.tar.xz |
net: hns3: stop napi polling when HNS3_NIC_STATE_DOWN is set
When calling napi_disable during reset down process, if NAPIF_STATE_MISSED
is set, napi_complete will call __napi_schedule to do the polling again.
So this patch uses HNS3_NIC_STATE_DOWN to ensure the polling is not
scheduled again.
Also, when napi_complete returns true, it means polling is scheduled
again, it is not neccssary to enable the interrupt.
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions