hv_netvsc: Implement batching of receive completions
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 19 Aug 2016 21:47:09 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2016 05:41:19 +0000 (22:41 -0700)
commitc0b558e5a393b77d2fe53335b5e07ca0e77178f8
tree2025ab10f73120af39343309c8d4d62b6d9089a6
parentdc833def42e7f2425f69d83a53bee054e80caea5
hv_netvsc: Implement batching of receive completions

The existing code uses busy retry when unable to send out receive
completions due to full ring buffer. It also gives up retrying after limit
is reached, and causes receive buffer slots not being recycled.
This patch implements batching of receive completions. It also prevents
dropping receive completions due to full ring buffer.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/rndis_filter.c