]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: allow controlling send/recv buffer size
authorstephen hemminger <stephen@networkplumber.org>
Thu, 10 Aug 2017 00:46:11 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:00:06 +0000 (14:00 -0700)
commit8b5327975ae171ca54dfd93e6c042d1292945867
treecd8b705218c823951c0ae228dfff43651f9ad9f3
parentea5a32c00bcacce1d8ac834a70a82f95a1c79425
netvsc: allow controlling send/recv buffer size

Control the size of the buffer areas via ethtool ring settings.
They aren't really traditional hardware rings, but host API breaks
receive and send buffer into chunks. The final size of the chunks are
controlled by the host.

The default value of send and receive buffer area for host DMA
is much larger than it needs to be. Experimentation shows that
4M receive and 1M send is sufficient.

Signed-off-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/netvsc_drv.c