[PATCH v2 1/3] vhost: remove redundant copy for packed shadow used ring
Maxime Coquelin
maxime.coquelin at redhat.com
Thu Feb 2 10:13:31 CET 2023
On 1/13/23 03:56, Cheng Jiang wrote:
> In the packed ring enqueue data path of the current asynchronous
> Vhost design, the shadow used ring is first copied to the sync
> shadow used ring, and then it will be moved to the async shadow
> used ring for some historical reasons. This is completely unnecessary.
> This patch removes redundant copy for the shadow used ring. The async
> shadow used ring will be updated directly.
>
> Signed-off-by: Cheng Jiang <cheng1.jiang at intel.com>
> ---
> lib/vhost/virtio_net.c | 66 ++++++++++++++++++++----------------------
> 1 file changed, 31 insertions(+), 35 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list