]> 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)
commitbf8c8b11f69fb435a5f4449bf717e5ced02bd120
treecd8b705218c823951c0ae228dfff43651f9ad9f3
parentbbc5cadb955a59c68f8ca66baa42d100f1c7a91d
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