]> 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)
commitbd8923f5eda4211aefecbc13bc88422e5f031370
treecd8b705218c823951c0ae228dfff43651f9ad9f3
parentde3d9aeac2a8c66ed67f973efc9ef1ff4f16a1f3
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