mbox series

[v7,0/2] examples/vhost: sample code refactor

Message ID 20210105021502.33158-1-Cheng1.jiang@intel.com (mailing list archive)
Headers
Series examples/vhost: sample code refactor |

Message

Jiang, Cheng1 Jan. 5, 2021, 2:15 a.m. UTC
  Refactor the vhost sample code. Add ioat ring space count and check
in ioat callback, optimize vhost data path for batch enqueue, replace
rte_atomicNN_xxx to atomic_XXX and refactor vhost async data path.
---
v7:
 * fixed rte_ioat_completed_ops() fail handler issue

v6:
 * adjusted the value of MAX_ENQUEUED_SIZE in ioat.h

v5:
 * added vhost enqueue buffer free when destroy a vhost device
 * added rte_ioat_completed_ops() fail handler
 * changed the behavior of drain_vhost_table() function
 * changed some variable names
 * changed some variable definition
 * added rte_zmalloc() fail handler
 * added some comments
 * fixed some typos

v4:
 * improved code structure
 * improved vhost enqueue buffer memory allocation
 * cleaned some codes

v3:
 * added some variable initiation
 * cleaned some codes

v2:
 * optimized patch structure
 * optimized git log
 * replaced rte_atomicNN_xxx to atomic_XXX

Cheng Jiang (2):
  examples/vhost: add ioat ring space count and check
  examples/vhost: refactor vhost data path

 examples/vhost/ioat.c |  24 ++---
 examples/vhost/ioat.h |   2 +-
 examples/vhost/main.c | 214 ++++++++++++++++++++++++++++++++----------
 examples/vhost/main.h |   7 +-
 4 files changed, 180 insertions(+), 67 deletions(-)

--
2.29.2
  

Comments

Ling, WeiX Jan. 6, 2021, 7:47 a.m. UTC | #1
Tested-by: Wei Ling <weix.ling@intel.com>

Regards,
Ling Wei

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Cheng Jiang
> Sent: Tuesday, January 5, 2021 10:15 AM
> To: maxime.coquelin@redhat.com; Xia, Chenbo <chenbo.xia@intel.com>
> Cc: dev@dpdk.org; Hu, Jiayu <jiayu.hu@intel.com>; Yang, YvonneX
> <yvonnex.yang@intel.com>; Wang, Yinan <yinan.wang@intel.com>; Jiang,
> Cheng1 <cheng1.jiang@intel.com>
> Subject: [dpdk-dev] [PATCH v7 0/2] examples/vhost: sample code refactor
> 
> Refactor the vhost sample code. Add ioat ring space count and check in ioat
> callback, optimize vhost data path for batch enqueue, replace
> rte_atomicNN_xxx to atomic_XXX and refactor vhost async data path.
> ---
> v7:
>  * fixed rte_ioat_completed_ops() fail handler issue
> 
> v6:
>  * adjusted the value of MAX_ENQUEUED_SIZE in ioat.h
> 
> v5:
>  * added vhost enqueue buffer free when destroy a vhost device
>  * added rte_ioat_completed_ops() fail handler
>  * changed the behavior of drain_vhost_table() function
>  * changed some variable names
>  * changed some variable definition
>  * added rte_zmalloc() fail handler
>  * added some comments
>  * fixed some typos
> 
> v4:
>  * improved code structure
>  * improved vhost enqueue buffer memory allocation
>  * cleaned some codes
> 
> v3:
>  * added some variable initiation
>  * cleaned some codes
> 
> v2:
>  * optimized patch structure
>  * optimized git log
>  * replaced rte_atomicNN_xxx to atomic_XXX
> 
> Cheng Jiang (2):
>   examples/vhost: add ioat ring space count and check
>   examples/vhost: refactor vhost data path
> 
>  examples/vhost/ioat.c |  24 ++---
>  examples/vhost/ioat.h |   2 +-
>  examples/vhost/main.c | 214 ++++++++++++++++++++++++++++++++-----
> -----
>  examples/vhost/main.h |   7 +-
>  4 files changed, 180 insertions(+), 67 deletions(-)
> 
> --
> 2.29.2