[PATCH] vhost: support sync copy when data buffer is small
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Apr 19 11:10:27 CEST 2022
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.ma at 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
More information about the dev
mailing list