74a5a6663b
The values for Rx and Tx copy break should be tunable rather than hard coded constants. The rx_copybreak sets the threshold where the driver uses an external mbuf to avoid having to copy data. Setting 0 for copybreak will cause driver to always create an external mbuf. Setting a value greater than the MTU would prevent it from ever making an external mbuf and always copy. The default value is 256 (bytes). Likewise the tx_copybreak sets the threshold where the driver aggregates multiple small packets into one request. If tx_copybreak is 0 then each packet goes as a VMBus request (no copying). If tx_copybreak is set larger than the MTU, then all packets smaller than the chunk size of the VMBus send buffer will be copied; larger packets always have to go as a single direct request. The default value is 512 (bytes). Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Long Li <longli@microsoft.com> |
||
---|---|---|
.. | ||
hn_ethdev.c | ||
hn_logs.h | ||
hn_nvs.c | ||
hn_nvs.h | ||
hn_rndis.c | ||
hn_rndis.h | ||
hn_rxtx.c | ||
hn_var.h | ||
hn_vf.c | ||
meson.build | ||
ndis.h | ||
rndis.h | ||
version.map |