diff options
| author | Huazhong Tan <[email protected]> | 2018-11-09 22:07:52 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-11-09 16:47:35 -0800 |
| commit | ff0699e04b977b61c5505cdfa5a386b9bceb3e6d (patch) | |
| tree | 4f13cd3aa733d1a4545c5559cfd1181aee625efe /tools/perf/scripts/python/netdev-times.py | |
| parent | 6a5f6fa382f3f4d5f519a9a52ed63afb4841fc0c (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions