Last active
June 21, 2018 07:03
-
-
Save dcui/c0ee2726fa5ac82061267b2047624b30 to your computer and use it in GitHub Desktop.
fix_netvsc_poll.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/drivers/net/hyperv/netvsc.c 2018-06-21 06:21:38.510273512 +0000 | |
+++ b/drivers/net/hyperv/netvsc.c 2018-06-21 06:33:29.991826355 +0000 | |
@@ -1251,9 +1251,10 @@ | |
if (send_recv_completions(ndev, net_device, nvchan) == 0 && | |
work_done < budget && | |
netvsc_napi_complete_done(napi, work_done) && | |
- hv_end_read(&channel->inbound)) { | |
+ hv_end_read(&channel->inbound) && | |
+ napi_schedule_prep(napi)) { | |
hv_begin_read(&channel->inbound); | |
- napi_reschedule(napi); | |
+ __napi_schedule(napi); | |
} | |
/* Driver may overshoot since multiple packets per descriptor */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment