[PATCH v4 1/5] vhost: prepare sync for descriptor to mbuf refactoring
Yang, YvonneX
yvonnex.yang at intel.com
Thu May 5 09:37:38 CEST 2022
> -----Original Message-----
> From: xuan.ding at intel.com <xuan.ding at intel.com>
> Sent: 2022年5月5日 14:24
> To: maxime.coquelin at redhat.com; Xia, Chenbo <chenbo.xia at intel.com>
> Cc: dev at dpdk.org; Hu, Jiayu <jiayu.hu at intel.com>; Jiang, Cheng1
> <cheng1.jiang at intel.com>; Pai G, Sunil <sunil.pai.g at intel.com>;
> liangma at liangbit.com; Ding, Xuan <xuan.ding at intel.com>
> Subject: [PATCH v4 1/5] vhost: prepare sync for descriptor to mbuf refactoring
>
> From: Xuan Ding <xuan.ding at intel.com>
>
> This patch extracts the descriptors to buffers filling from
> copy_desc_to_mbuf() into a dedicated function. Besides, enqueue and dequeue
> path are refactored to use the same function
> sync_fill_seg() for preparing batch elements, which simplifies the code without
> performance degradation.
>
> Signed-off-by: Xuan Ding <xuan.ding at intel.com>
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
> lib/vhost/virtio_net.c | 78 ++++++++++++++++++++----------------------
> 1 file changed, 38 insertions(+), 40 deletions(-)
>
Tested-by: Yvonne Yang <yvonnex.yang at intel.com>
More information about the dev
mailing list