]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09a91d1baa40cdbf2549132b2a4c4f6238480568
tree2025ab10f73120af39343309c8d4d62b6d9089a6
parent193b2d9159b3e3a9633357b98d089e18e8fdb5a9
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