numam-dpdk/drivers/net/netvsc
Stephen Hemminger 74a5a6663b net/netvsc: allow setting Rx and Tx copy break
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>
2020-11-03 23:35:07 +01:00
..
hn_ethdev.c net/netvsc: allow setting Rx and Tx copy break 2020-11-03 23:35:07 +01:00
hn_logs.h net/netvsc: add Hyper-V network device 2018-07-13 23:48:07 +02:00
hn_nvs.c net/netvsc: fix multiple channel Rx 2020-09-18 18:55:06 +02:00
hn_nvs.h net/netvsc: fix comment spelling 2020-05-11 22:27:39 +02:00
hn_rndis.c ethdev: remove underscore prefix from internal API 2020-09-18 18:55:08 +02:00
hn_rndis.h net/netvsc: support configuring RSS parameters 2019-06-28 20:32:18 +02:00
hn_rxtx.c net/netvsc: allow setting Rx and Tx copy break 2020-11-03 23:35:07 +01:00
hn_var.h net/netvsc: allow setting Rx and Tx copy break 2020-11-03 23:35:07 +01:00
hn_vf.c ethdev: change stop operation callback to return int 2020-10-16 22:26:41 +02:00
meson.build build: replace use of old build macros 2020-10-19 22:15:44 +02:00
ndis.h net/netvsc: fix definition of offload values 2019-07-05 01:52:01 +02:00
rndis.h net/netvsc: add Hyper-V network device 2018-07-13 23:48:07 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00