> -----Original Message-----
> From: Ma, WenwuX <wenwux...@intel.com>
> Sent: Tuesday, September 7, 2021 4:49 AM
> To: dev@dpdk.org
> Cc: maxime.coque...@redhat.com; Xia, Chenbo <chenbo....@intel.com>;
> Jiang, Cheng1 <cheng1.ji...@intel.com>; Hu, Jiayu <jiayu...@intel.com>;
> Pai G, Sunil <sunil.pa...@intel.com>; Yang, YvonneX
> <yvonnex.y...@intel.com>; Ma, WenwuX <wenwux...@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...@intel.com>
> Reviewed-by: Maxime Coquelin <maxime.coque...@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.y...@intel.com>