[dpdk-dev] [PATCH V3 1/2] net/netvsc: allow setting rx and tx copy break
    Ferruh Yigit 
    ferruh.yigit at intel.com
       
    Mon Nov  2 11:14:48 CET 2020
    
    
  
On 10/31/2020 12:24 AM, Long Li wrote:
> From: Stephen Hemminger <stephen at networkplumber.org>
> 
> 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 at networkplumber.org>
> Signed-off-by: Long Li <longli at microsoft.com>
Series applied to dpdk-next-net/main, thanks.
    
    
More information about the dev
mailing list