Skip to content

Instantly share code, notes, and snippets.

@dcui
Last active June 21, 2018 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcui/c0ee2726fa5ac82061267b2047624b30 to your computer and use it in GitHub Desktop.
Save dcui/c0ee2726fa5ac82061267b2047624b30 to your computer and use it in GitHub Desktop.
fix_netvsc_poll.patch
--- 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