[dpdk-dev] [PATCH 2/4] examples/vhost: refactor vhost enqueue and dequeue datapaths

Yang, YvonneX yvonnex.yang at intel.com
Fri Sep 10 09:38:31 CEST 2021



> -----Original Message-----
> From: Ma, WenwuX <wenwux.ma at intel.com>
> Sent: Tuesday, September 7, 2021 4:49 AM
> To: dev at dpdk.org
> Cc: maxime.coquelin at redhat.com; Xia, Chenbo <chenbo.xia at intel.com>;
> Jiang, Cheng1 <cheng1.jiang at intel.com>; Hu, Jiayu <jiayu.hu at intel.com>;
> Pai G, Sunil <sunil.pai.g at intel.com>; Yang, YvonneX
> <yvonnex.yang at intel.com>; Ma, WenwuX <wenwux.ma at intel.com>
> Subject: [PATCH 2/4] examples/vhost: refactor vhost enqueue and dequeue
> datapaths
> 
> Previously, by judging the flag, we call different enqueue/dequeue functions
> in data path.
> 
> Now, we use an ops that was initialized when Vhost was created, so that we
> can call ops directly in Vhost data path without any more flag judgment.
> 
> Signed-off-by: Wenwu Ma <wenwux.ma at intel.com>
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
>  examples/vhost/main.c       | 100 +++++++++++++++++++++---------------
>  examples/vhost/main.h       |  31 +++++++++--
>  examples/vhost/virtio_net.c |  16 +++++-
>  3 files changed, 101 insertions(+), 46 deletions(-)
> 

Tested-by: Yvonne Yang <yvonnex.yang at intel.com>


More information about the dev mailing list