hv_netvsc: Implement partial copy into send buffer
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 13 Apr 2015 23:34:35 +0000 (16:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2015 18:57:10 +0000 (14:57 -0400)
commitaa0a34be68290aa9aa071c0691fb8b6edda38358
treebf404acc758981c7ac0fffaf1bb6afb9af26fbe3
parent6e8a9d9148b6dc2305fcaaf60550b81cbb6319c6
hv_netvsc: Implement partial copy into send buffer

If remaining space in a send buffer slot is too small for the whole message,
we only copy the RNDIS header and PPI data into send buffer, so we can batch
one more packet each time. It reduces the vmbus per-message overhead.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@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/netvsc_drv.c