Hi Wenwu,

On 4/11/22 15:38, Wenwu Ma wrote:
In async datapath, if the length of data buffer
is less than 256, the data will be copied by CPU
instead of DMA.

Signed-off-by: Wenwu Ma <wenwux...@intel.com>
---
  lib/vhost/vhost.h      |  6 ++-
  lib/vhost/virtio_net.c | 96 ++++++++++++++++++++++++++++++------------
  2 files changed, 73 insertions(+), 29 deletions(-)


As I mentioned in the past, let's have a DMA-only solution working
before trying to support CPU copy for small packets.

Thanks,
Maxime

Reply via email to