[RFC v3] app/dma-perf: introduce dma-perf application

2022-10-18 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- v3: improved nr_buf calculation and added support for getting subprocess exit

[RFC v4] app/dma-perf: introduce dma-perf application

2022-10-24 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- v4: fixed some building issues. v3: improved nr_buf calculation and added support

[RFC v5] app/dma-perf: introduce dma-perf application

2022-10-24 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- v5: fixed some typos. v4: fixed some building issues. v3: improved nr_buf

[PATCH v2 0/3] Async vhost packed ring optimization

2023-01-12 Thread Cheng Jiang
To improve the performance of async vhost packed ring. We remove the unnecessary data copy in async vhost packed ring. And add the batch data path in both enqueue data path and dequeue data path. v2: fixed net header settings. Cheng Jiang (3): vhost: remove redundant copy for packed shadow

[PATCH v2 1/3] vhost: remove redundant copy for packed shadow used ring

2023-01-12 Thread Cheng Jiang
for the shadow used ring. The async shadow used ring will be updated directly. Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 66 -- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c

[PATCH v2 3/3] vhost: add batch dequeue in async vhost packed ring

2023-01-12 Thread Cheng Jiang
Add batch dequeue function in asynchronous vhost packed ring to improve the performance. Chained mbufs are not supported, it will be handled in single dequeue function. Signed-off-by: Cheng Jiang Signed-off-by: Yuan Wang --- lib/vhost/virtio_net.c | 170

[PATCH v2 2/3] vhost: add batch enqueue in async vhost packed ring

2023-01-12 Thread Cheng Jiang
Add batch enqueue function in asynchronous vhost packed ring to improve the performance. Chained mbufs are not supported, it will be handled in single enqueue function. Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 163 + 1 file changed, 163

[PATCH v2] app/dma-perf: introduce dma-perf application

2023-01-16 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- v2: fixed some CI issues. app/meson.build | 1 + app/test-dma-perf

[PATCH v3] app/dma-perf: introduce dma-perf application

2023-01-17 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- v3: fixed compile issues for loongarch. fixed compile issues for intel. fixed coding

[dpdk-dev] [PATCH] examples/vhost: fix potential overflow in args process

2021-04-18 Thread Cheng Jiang
Add args length check to fix potential overflow issue. Coverity issue: 363741 Fixes: 965b06f0358 ("examples/vhost: enhance getopt_long usage") Cc: sta...@dpdk.org Signed-off-by: Cheng Jiang --- examples/vhost/main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/examples/vh

[dpdk-dev] [PATCH v8 0/4] add support for packed ring in async vhost

2021-04-19 Thread Cheng Jiang
ex in rte_vhost_poll_enqueue_completed() * add async_buffers_packed memory free in vhost_free_async_mem() Cheng Jiang (4): vhost: abstract and reorganize async split ring code vhost: add support for packed ring in async vhost vhost: add batch datapath for async vhost packed ring doc: add release note for vhost

[dpdk-dev] [PATCH v8 2/4] vhost: add support for packed ring in async vhost

2021-04-19 Thread Cheng Jiang
For now async vhost data path only supports split ring. This patch enables packed ring in async vhost data path to make async vhost compatible with virtio 1.1 spec. Signed-off-by: Cheng Jiang --- lib/librte_vhost/rte_vhost_async.h | 1 + lib/librte_vhost/vhost.c | 79 -- lib

[dpdk-dev] [PATCH v8 3/4] vhost: add batch datapath for async vhost packed ring

2021-04-19 Thread Cheng Jiang
Add batch datapath for async vhost packed ring to improve the performance of small packet processing. Signed-off-by: Cheng Jiang --- lib/librte_vhost/virtio_net.c | 41 +++ 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/lib/librte_vhost

[dpdk-dev] [PATCH v8 1/4] vhost: abstract and reorganize async split ring code

2021-04-19 Thread Cheng Jiang
This patch puts some codes of async vhost split ring into inline functions to improve the readability of the code. And, it changes the pointer index style of iterator to make the code more concise. Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 132

[dpdk-dev] [PATCH v8 4/4] doc: add release note for vhost async packed ring

2021-04-19 Thread Cheng Jiang
Add release note for the support of vhost async packed ring. Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_21_05.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index 374d6d98e..eb5200669

[dpdk-dev] [PATCH v2] examples/vhost: fix potential overflow in args process

2021-04-26 Thread Cheng Jiang
Change the way passing args to fix potential overflow in args process. Coverity issue: 363741 Fixes: 965b06f0358 ("examples/vhost: enhance getopt_long usage") Signed-off-by: Cheng Jiang --- v2: * Change the way passing args * Change git log examples/vhost/main.c | 11 -

[dpdk-dev] [PATCH v9 0/4] add support for packed ring in async vhost

2021-04-27 Thread Cheng Jiang
* add doc update v3: * fix error handler for DMA-copy packet v2: * fix wrong buffer index in rte_vhost_poll_enqueue_completed() * add async_buffers_packed memory free in vhost_free_async_mem() Cheng Jiang (4): vhost: abstract and reorganize async split ring code vhost: add support for packed

[dpdk-dev] [PATCH v9 1/4] vhost: abstract and reorganize async split ring code

2021-04-27 Thread Cheng Jiang
This patch puts some codes of async vhost split ring into inline functions to improve the readability of the code. And, it changes the pointer index style of iterator to make the code more concise. Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin Reviewed-by: Jiayu Hu --- lib/vhost

[dpdk-dev] [PATCH v9 2/4] vhost: add support for packed ring in async vhost

2021-04-27 Thread Cheng Jiang
For now async vhost data path only supports split ring. This patch enables packed ring in async vhost data path to make async vhost compatible with virtio 1.1 spec. Signed-off-by: Cheng Jiang --- lib/vhost/rte_vhost_async.h | 1 + lib/vhost/vhost.c | 79 +-- lib/vhost/vhost.h

[dpdk-dev] [PATCH v9 3/4] vhost: add batch datapath for async vhost packed ring

2021-04-27 Thread Cheng Jiang
Add batch datapath for async vhost packed ring to improve the performance of small packet processing. Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 42 +- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/lib/vhost/virtio_net.c b

[dpdk-dev] [PATCH v9 4/4] doc: add release note for vhost async packed ring

2021-04-27 Thread Cheng Jiang
Add release note for the support of vhost async packed ring. Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_21_05.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index b3224dc332

[PATCH] add support for async vhost packed ring dequeue

2022-06-13 Thread Cheng Jiang
This patch implements packed ring dequeue data path for asynchronous vhost. Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin --- lib/vhost/virtio_net.c | 218 - 1 file changed, 192 insertions(+), 26 deletions(-) diff --git a/lib/vhost

[PATCH] doc: add release notes for async vhost dequeue data-path

2022-06-26 Thread Cheng Jiang
Add release notes for asynchronous vhost dequeue data-path. Emphasize that split virtqueue and packed virtqueue are both supported in asynchronous vhost dequeue data-path Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_22_07.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2] doc: add release notes for async vhost dequeue data-path

2022-06-26 Thread Cheng Jiang
Add release notes for asynchronous vhost dequeue data-path. Emphasize that split virtqueue and packed virtqueue are both supported in asynchronous vhost dequeue data-path. Signed-off-by: Cheng Jiang --- v2: fixed a full stop missing in the commit message. doc/guides/rel_notes/release_22_07.rst

[PATCH v3] doc: add release notes for async vhost dequeue data-path

2022-06-27 Thread Cheng Jiang
Add release notes for asynchronous vhost dequeue data-path. Emphasize that split virtqueue and packed virtqueue are both supported in asynchronous vhost dequeue data-path. Signed-off-by: Cheng Jiang --- v3: code rebased. v2: fixed a full stop missing in the commit message. doc/guides/rel_notes

[dpdk-dev] [PATCH v3] vhost: add support for packed ring in async vhost

2021-03-31 Thread Cheng Jiang
For now async vhost data path only supports split ring structure. In order to make async vhost compatible with virtio 1.1 spec this patch enables packed ring in async vhost data path. Signed-off-by: Cheng Jiang --- v3: * fix error handler for DMA-copy packet * remove variables that are no

[dpdk-dev] [PATCH v4 0/4] add support for packed ring in async vhost

2021-04-10 Thread Cheng Jiang
rte_vhost_poll_enqueue_completed() * add async_buffers_packed memory free in vhost_free_async_mem() Cheng Jiang (4): vhost: abstract and reorganize async split ring code vhost: add support for packed ring in async vhost vhost: add batch datapath for async vhost packed ring doc: add release note for vhost async

[dpdk-dev] [PATCH v4 1/4] vhost: abstract and reorganize async split ring code

2021-04-10 Thread Cheng Jiang
In order to improve code efficiency and readability when async packed ring support is enabled. This patch abstract some functions like shadow_ring_store and write_back_completed_descs_split. And improve the efficiency of some pointer offset calculation. Signed-off-by: Cheng Jiang --- lib

[dpdk-dev] [PATCH v4 1/4] vhost: abstract and reorganize async split ring code

2021-04-10 Thread Cheng Jiang
In order to improve code efficiency and readability when async packed ring support is enabled. This patch abstract some functions like shadow_ring_store and write_back_completed_descs_split. And improve the efficiency of some pointer offset calculation. Signed-off-by: Cheng Jiang --- lib

[dpdk-dev] [PATCH v4 2/4] vhost: add support for packed ring in async vhost

2021-04-10 Thread Cheng Jiang
For now async vhost data path only supports split ring structure. In order to make async vhost compatible with virtio 1.1 spec this patch enables packed ring in async vhost data path. Signed-off-by: Cheng Jiang --- lib/librte_vhost/rte_vhost_async.h | 1 + lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v4 3/4] vhost: add batch datapath for async vhost packed ring

2021-04-10 Thread Cheng Jiang
Add batch datapath for async vhost packed ring to improve the performance of small packet. Signed-off-by: Cheng Jiang --- lib/librte_vhost/virtio_net.c | 43 +++ 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib

[dpdk-dev] [PATCH v4 4/4] doc: add release note for vhost async packed ring

2021-04-10 Thread Cheng Jiang
Add release note for the support of vhost async packed ring. Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_21_05.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index 374d6d98e..eb5200669

[dpdk-dev] [PATCH v5 1/4] vhost: abstract and reorganize async split ring code

2021-04-12 Thread Cheng Jiang
In order to improve code efficiency and readability when async packed ring support is enabled. This patch abstract some functions like shadow_ring_store and write_back_completed_descs_split. And improve the efficiency of some pointer offset calculation. Signed-off-by: Cheng Jiang --- lib

[dpdk-dev] [PATCH v5 2/4] vhost: add support for packed ring in async vhost

2021-04-12 Thread Cheng Jiang
For now async vhost data path only supports split ring structure. In order to make async vhost compatible with virtio 1.1 spec this patch enables packed ring in async vhost data path. Signed-off-by: Cheng Jiang --- lib/librte_vhost/rte_vhost_async.h | 1 + lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v5 3/4] vhost: add batch datapath for async vhost packed ring

2021-04-12 Thread Cheng Jiang
Add batch datapath for async vhost packed ring to improve the performance of small packet. Signed-off-by: Cheng Jiang --- lib/librte_vhost/virtio_net.c | 43 +++ 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib

[dpdk-dev] [PATCH v5 4/4] doc: add release note for vhost async packed ring

2021-04-12 Thread Cheng Jiang
Add release note for the support of vhost async packed ring. Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_21_05.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index 374d6d98e..eb5200669

[dpdk-dev] [PATCH v5 0/4] add support for packed ring in async vhost

2021-04-12 Thread Cheng Jiang
update v3: * fix error handler for DMA-copy packet v2: * fix wrong buffer index in rte_vhost_poll_enqueue_completed() * add async_buffers_packed memory free in vhost_free_async_mem() Cheng Jiang (4): vhost: abstract and reorganize async split ring code vhost: add support for packed ring in

[dpdk-dev] [PATCH v6 3/4] vhost: add batch datapath for async vhost packed ring

2021-04-13 Thread Cheng Jiang
Add batch datapath for async vhost packed ring to improve the performance of small packet processing. Signed-off-by: Cheng Jiang --- lib/librte_vhost/virtio_net.c | 41 +++ 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/lib/librte_vhost

[dpdk-dev] [PATCH v6 1/4] vhost: abstract and reorganize async split ring code

2021-04-13 Thread Cheng Jiang
This patch puts some codes of async vhost split ring into inline functions to improve the readability of the code. And, it changes the pointer index style of iterator to make the code more concise. Signed-off-by: Cheng Jiang --- lib/librte_vhost/virtio_net.c | 132

[dpdk-dev] [PATCH v6 2/4] vhost: add support for packed ring in async vhost

2021-04-13 Thread Cheng Jiang
For now async vhost data path only supports split ring. This patch enables packed ring in async vhost data path to make async vhost compatible with virtio 1.1 spec. Signed-off-by: Cheng Jiang --- lib/librte_vhost/rte_vhost_async.h | 1 + lib/librte_vhost/vhost.c | 37 ++- lib

[dpdk-dev] [PATCH v6 0/4] add support for packed ring in async vhost

2021-04-13 Thread Cheng Jiang
alloc * remove useless code * add doc update v3: * fix error handler for DMA-copy packet v2: * fix wrong buffer index in rte_vhost_poll_enqueue_completed() * add async_buffers_packed memory free in vhost_free_async_mem() Cheng Jiang (4): vhost: abstract and reorganize async split ring

[dpdk-dev] [PATCH v6 4/4] doc: add release note for vhost async packed ring

2021-04-13 Thread Cheng Jiang
Add release note for the support of vhost async packed ring. Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_21_05.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index 374d6d98e..eb5200669

[dpdk-dev] [PATCH v7 0/4] add support for packed ring in async vhost

2021-04-13 Thread Cheng Jiang
ee in vhost_free_async_mem() Cheng Jiang (4): vhost: abstract and reorganize async split ring code vhost: add support for packed ring in async vhost vhost: add batch datapath for async vhost packed ring doc: add release note for vhost async packed ring doc/guides/rel_notes/release_21_05.rst

[dpdk-dev] [PATCH v7 1/4] vhost: abstract and reorganize async split ring code

2021-04-13 Thread Cheng Jiang
This patch puts some codes of async vhost split ring into inline functions to improve the readability of the code. And, it changes the pointer index style of iterator to make the code more concise. Signed-off-by: Cheng Jiang --- lib/librte_vhost/virtio_net.c | 132

[dpdk-dev] [PATCH v7 2/4] vhost: add support for packed ring in async vhost

2021-04-13 Thread Cheng Jiang
For now async vhost data path only supports split ring. This patch enables packed ring in async vhost data path to make async vhost compatible with virtio 1.1 spec. Signed-off-by: Cheng Jiang --- lib/librte_vhost/rte_vhost_async.h | 1 + lib/librte_vhost/vhost.c | 49 ++-- lib

[dpdk-dev] [PATCH v7 3/4] vhost: add batch datapath for async vhost packed ring

2021-04-13 Thread Cheng Jiang
Add batch datapath for async vhost packed ring to improve the performance of small packet processing. Signed-off-by: Cheng Jiang --- lib/librte_vhost/virtio_net.c | 41 +++ 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/lib/librte_vhost

[dpdk-dev] [PATCH v7 4/4] doc: add release note for vhost async packed ring

2021-04-13 Thread Cheng Jiang
Add release note for the support of vhost async packed ring. Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_21_05.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index 374d6d98e..eb5200669

[RFC v3] add support for async vhost packed ring dequeue

2022-05-29 Thread Cheng Jiang
This RFC patch implements packed ring dequeue data path for asynchronous vhost. Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 217 - 1 file changed, 191 insertions(+), 26 deletions(-) diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c

[dpdk-dev] [RFC v2] vhost: add support async dequeue for packed ring

2021-09-14 Thread Cheng Jiang
This patch implements asynchronous dequeue data path for packed ring. Signed-off-by: Cheng Jiang --- It's based on these 2 patches: 1. vhost: remove copy threshold for async vhost http://patches.dpdk.org/project/dpdk/patch/1629463466-450012-1-git-send-email-jiayu...@intel.com/ 2. vhost: su

[dpdk-dev] [PATCH] net/virtio: fix refill order in packed ring datapath

2021-07-08 Thread Cheng Jiang
. Fixes: a76290c8f1cf ("net/virtio: implement Rx path for packed queues") Cc: sta...@dpdk.org Signed-off-by: Cheng Jiang Signed-off-by: Marvin Liu diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index 3ac847317f..d35875d9ce 100644 --- a/drivers/

[dpdk-dev] [PATCH] vhost: fix async packed ring batch datapath

2021-07-08 Thread Cheng Jiang
processed by the DMA device. This patch refactors the batch copy code and adds used ring buffer wrap check as a batch copy condition to fix this issue. Fixes: 873e8dad6f49 ("vhost: support packed ring in async datapath") Cc: sta...@dpdk.org Signed-off-by: Cheng Jiang --- lib/vhost/virtio_n

[dpdk-dev] [PATCH] vhost: fix index overflow issue in async vhost

2021-07-08 Thread Cheng Jiang
g in async datapath") Cc: sta...@dpdk.org Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c index f4a2c88d8b..61cb5a126c 100644 --- a/lib/vhost/virtio_

[dpdk-dev] [PATCH v3 0/5] vhost: handle memory hotplug for async vhost

2021-07-14 Thread Cheng Jiang
the vhost application of stopping DMA transfers. And enable it in vhost example. v3: * added a patch to fix async ops return type * fixed async ops fail handler * updated the doc v2: * changed the patch structure Cheng Jiang (4): vhost: fix async vhost ops return type vhost: add unsafe API

[dpdk-dev] [PATCH v3 1/5] vhost: fix async vhost ops return type

2021-07-14 Thread Cheng Jiang
The async vhost ops callback should return -1 when there are something wrong in the callback, so the return type should be changed into int32_t. The issue in vhost example is also fixed in this patch. Signed-off-by: Cheng Jiang --- examples/vhost/ioat.c | 4 +-- examples/vhost/ioat.h

[dpdk-dev] [PATCH v3 2/5] vhost: add unsafe API to drain pkts in async vhost

2021-07-14 Thread Cheng Jiang
Applications need to stop DMA transfers and finish all the in-flight pkts when in VM memory hot-plug case and async vhost is used. This patch is to provide an unsafe API to drain in-flight pkts which are submitted to DMA engine in vhost async data path. Signed-off-by: Cheng Jiang --- lib/vhost

[dpdk-dev] [PATCH v3 3/5] vhost: handle memory hotplug for async vhost

2021-07-14 Thread Cheng Jiang
From: Jiayu Hu When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the guest memory. This patch is to notify the vhost application of stopping DMA transfers. Signed-off-by: Jiayu Hu --- lib/vhost/vhost_user

[dpdk-dev] [PATCH v3 4/5] examples/vhost: handle memory hotplug for async vhost

2021-07-14 Thread Cheng Jiang
. add inflight pkt drain process in destroy_device() and vring_state_changed(). Signed-off-by: Cheng Jiang --- examples/vhost/main.c | 48 +-- examples/vhost/main.h | 1 + 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b

[dpdk-dev] [PATCH v3 5/5] doc: update doc for try drain API in vhost lib

2021-07-14 Thread Cheng Jiang
update the program guide and release notes for try drain API in vhost lib. Signed-off-by: Cheng Jiang --- doc/guides/prog_guide/vhost_lib.rst| 5 + doc/guides/rel_notes/release_21_08.rst | 5 + 2 files changed, 10 insertions(+) diff --git a/doc/guides/prog_guide/vhost_lib.rst b

[dpdk-dev] [PATCH v2] vhost: fix index overflow for packed ring in async vhost

2021-07-15 Thread Cheng Jiang
") Cc: sta...@dpdk.org Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c index f4a2c88d8b..bfb2bf8fc4 100644 --- a/lib/vhost/virtio_net.c +++ b

[dpdk-dev] [PATCH v4 0/5] vhost: handle memory hotplug for async vhost

2021-07-15 Thread Cheng Jiang
the vhost application of stopping DMA transfers. And enable it in vhost example. v4: * rebased on the latest codess v3: * added a patch to fix async ops return type * fixed async ops fail handler * updated the doc v2: * changed the patch structure Cheng Jiang (4): vhost: fix async vhost ops

[dpdk-dev] [PATCH v4 1/5] vhost: fix async vhost ops return type

2021-07-15 Thread Cheng Jiang
The async vhost ops callback should return -1 when there are something wrong in the callback, so the return type should be changed into int32_t. The issue in vhost example is also fixed in this patch. Signed-off-by: Cheng Jiang --- examples/vhost/ioat.c | 4 +-- examples/vhost/ioat.h

[dpdk-dev] [PATCH v4 2/5] vhost: add unsafe API to drain pkts in async vhost

2021-07-15 Thread Cheng Jiang
Applications need to stop DMA transfers and finish all the in-flight pkts when in VM memory hot-plug case and async vhost is used. This patch is to provide an unsafe API to drain in-flight pkts which are submitted to DMA engine in vhost async data path. Signed-off-by: Cheng Jiang --- lib/vhost

[dpdk-dev] [PATCH v4 3/5] vhost: handle memory hotplug for async vhost

2021-07-15 Thread Cheng Jiang
From: Jiayu Hu When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the guest memory. This patch is to notify the vhost application of stopping DMA transfers. Signed-off-by: Jiayu Hu --- lib/vhost/vhost_user

[dpdk-dev] [PATCH v4 4/5] examples/vhost: handle memory hotplug for async vhost

2021-07-15 Thread Cheng Jiang
. add inflight pkt drain process in destroy_device() and vring_state_changed(). Signed-off-by: Cheng Jiang --- examples/vhost/main.c | 48 +-- examples/vhost/main.h | 1 + 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b

[dpdk-dev] [PATCH v4 5/5] doc: update doc for try drain API in vhost lib

2021-07-15 Thread Cheng Jiang
update the program guide and release notes for try drain API in vhost lib. Signed-off-by: Cheng Jiang --- doc/guides/prog_guide/vhost_lib.rst| 5 + doc/guides/rel_notes/release_21_08.rst | 5 + 2 files changed, 10 insertions(+) diff --git a/doc/guides/prog_guide/vhost_lib.rst b

[dpdk-dev] [PATCH v5 0/5] vhost: handle memory hotplug for async vhost

2021-07-16 Thread Cheng Jiang
c ops fail handler * updated the doc v2: * changed the patch structure Cheng Jiang (4): vhost: fix async vhost ops return type vhost: add unsafe API to drain pkts in async vhost examples/vhost: handle memory hotplug for async vhost doc: update doc for try drain API in vhost lib Jiayu Hu (1

[dpdk-dev] [PATCH v5 1/5] vhost: fix async vhost ops return type

2021-07-16 Thread Cheng Jiang
26 ("vhost: fix async callback return type") Fixes: 6b3c81db8bb7 ("vhost: simplify async copy completion") Fixes: abec60e7115d ("examples/vhost: support vhost async data path") Fixes: 873e8dad6f49 ("vhost: support packed ring in async datapath") Cc: sta...@d

[dpdk-dev] [PATCH v5 2/5] vhost: add unsafe API to drain pkts in async vhost

2021-07-16 Thread Cheng Jiang
Applications need to stop DMA transfers and finish all the in-flight pkts when in VM memory hot-plug case and async vhost is used. This patch is to provide an unsafe API to drain in-flight pkts which are submitted to DMA engine in vhost async data path. Signed-off-by: Cheng Jiang --- lib/vhost

[dpdk-dev] [PATCH v5 3/5] vhost: handle memory hotplug for async vhost

2021-07-16 Thread Cheng Jiang
From: Jiayu Hu When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the guest memory. This patch is to notify the vhost application of stopping DMA transfers. Signed-off-by: Jiayu Hu --- lib/vhost/vhost_user

[dpdk-dev] [PATCH v5 4/5] examples/vhost: handle memory hotplug for async vhost

2021-07-16 Thread Cheng Jiang
. add inflight pkt drain process in destroy_device() and vring_state_changed(). Signed-off-by: Cheng Jiang --- examples/vhost/main.c | 48 +-- examples/vhost/main.h | 1 + 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b

[dpdk-dev] [PATCH v5 5/5] doc: update doc for try drain API in vhost lib

2021-07-16 Thread Cheng Jiang
update the program guide and release notes for try drain API in vhost lib. Signed-off-by: Cheng Jiang --- doc/guides/prog_guide/vhost_lib.rst| 5 + doc/guides/rel_notes/release_21_08.rst | 5 + 2 files changed, 10 insertions(+) diff --git a/doc/guides/prog_guide/vhost_lib.rst b

[dpdk-dev] [PATCH v6 0/5] vhost: handle memory hotplug for async vhost

2021-07-19 Thread Cheng Jiang
: fix async vhost ops return type' * improved git log, variable names and logs v4: * rebased on the latest codess v3: * added a patch to fix async ops return type * fixed async ops fail handler * updated the doc v2: * changed the patch structure Cheng Jiang (4): vhost: fix async vhost ops r

[dpdk-dev] [PATCH v6 1/5] vhost: fix async vhost ops return type

2021-07-19 Thread Cheng Jiang
26 ("vhost: fix async callback return type") Fixes: 6b3c81db8bb7 ("vhost: simplify async copy completion") Fixes: abec60e7115d ("examples/vhost: support vhost async data path") Fixes: 873e8dad6f49 ("vhost: support packed ring in async datapath") Cc: sta...@d

[dpdk-dev] [PATCH v6 2/5] vhost: add unsafe API to clear packets in async vhost

2021-07-19 Thread Cheng Jiang
Applications need to stop DMA transfers and finish all the inflight packets when in VM memory hot-plug case and async vhost is used. This patch is to provide an unsafe API to clear inflight packets which are submitted to DMA engine in vhost async data path. Signed-off-by: Cheng Jiang --- lib

[dpdk-dev] [PATCH v6 3/5] vhost: handle memory hotplug for async vhost

2021-07-19 Thread Cheng Jiang
From: Jiayu Hu When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the guest memory. This patch is to notify the vhost application of stopping DMA transfers. Signed-off-by: Jiayu Hu --- lib/vhost/vhost_user

[dpdk-dev] [PATCH v6 4/5] examples/vhost: handle memory hotplug for async vhost

2021-07-19 Thread Cheng Jiang
. add inflight packets clear process in destroy_device() and vring_state_changed(). Signed-off-by: Cheng Jiang --- examples/vhost/main.c | 55 +-- examples/vhost/main.h | 1 + 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/examples/vhost

[dpdk-dev] [PATCH v6 5/5] doc: update doc for inflight packets clear API in vhost lib

2021-07-19 Thread Cheng Jiang
Update the program guide and release notes for inflight packets clear API in vhost lib. Signed-off-by: Cheng Jiang --- doc/guides/prog_guide/vhost_lib.rst| 5 + doc/guides/rel_notes/release_21_08.rst | 5 + 2 files changed, 10 insertions(+) diff --git a/doc/guides/prog_guide

[dpdk-dev] [PATCH v7 0/5] vhost: handle memory hotplug for async vhost

2021-07-21 Thread Cheng Jiang
structure Cheng Jiang (4): vhost: fix async vhost ops return type vhost: add unsafe API to clear packets in async vhost examples/vhost: handle memory hotplug for async vhost doc: update doc for queue clear API in vhost lib Jiayu Hu (1): vhost: handle memory hotplug for async vhost

[dpdk-dev] [PATCH v7 1/5] vhost: fix async vhost ops return type

2021-07-21 Thread Cheng Jiang
26 ("vhost: fix async callback return type") Fixes: 6b3c81db8bb7 ("vhost: simplify async copy completion") Fixes: abec60e7115d ("examples/vhost: support vhost async data path") Fixes: 873e8dad6f49 ("vhost: support packed ring in async datapath") Cc: sta...

[dpdk-dev] [PATCH v7 2/5] vhost: add unsafe API to clear packets in async vhost

2021-07-21 Thread Cheng Jiang
Applications need to stop DMA transfers and finish all the inflight packets when in VM memory hot-plug case and async vhost is used. This patch is to provide an unsafe API to clear inflight packets which are submitted to DMA engine in vhost async data path. Signed-off-by: Cheng Jiang Reviewed-by

[dpdk-dev] [PATCH v7 3/5] vhost: handle memory hotplug for async vhost

2021-07-21 Thread Cheng Jiang
From: Jiayu Hu When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the guest memory. This patch is to notify the vhost application of stopping DMA transfers. Signed-off-by: Jiayu Hu Reviewed-by: Maxime Coque

[dpdk-dev] [PATCH v7 4/5] examples/vhost: handle memory hotplug for async vhost

2021-07-21 Thread Cheng Jiang
. add inflight packets clear process in destroy_device() and vring_state_changed(). Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin --- examples/vhost/main.c | 55 +-- examples/vhost/main.h | 1 + 2 files changed, 54 insertions(+), 2 deletions

[dpdk-dev] [PATCH v7 5/5] doc: update doc for queue clear API in vhost lib

2021-07-21 Thread Cheng Jiang
Update the program guide and release notes for virtqueue inflight packets clear API in vhost lib. Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide/vhost_lib.rst| 5 + doc/guides/rel_notes/release_21_08.rst | 5 + 2 files changed, 10 insertions

[dpdk-dev] [PATCH v8 0/4] vhost: handle memory hotplug for async vhost

2021-07-23 Thread Cheng Jiang
eturn type * fixed async ops fail handler * updated the doc v2: * changed the patch structure Cheng Jiang (3): vhost: fix async vhost ops return type vhost: add unsafe API to clear packets in async vhost examples/vhost: handle memory hotplug for async vhost Jiayu Hu (1): vhost: handle memory h

[dpdk-dev] [PATCH v8 1/4] vhost: fix async vhost ops return type

2021-07-23 Thread Cheng Jiang
"vhost: support packed ring in async datapath") Cc: sta...@dpdk.org Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin --- examples/vhost/ioat.c | 4 +-- examples/vhost/ioat.h | 8 ++--- lib/vhost/rte_vhost_async.h | 8 ++--- lib/vhost/virtio_net.c | 61 +

[dpdk-dev] [PATCH v8 2/4] vhost: add unsafe API to clear packets in async vhost

2021-07-23 Thread Cheng Jiang
notes for virtqueue inflight packets clear API in vhost lib. Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide/vhost_lib.rst| 5 ++ doc/guides/rel_notes/release_21_08.rst | 5 ++ lib/vhost/rte_vhost_async.h| 22 ++ lib/vhost/version.map

[dpdk-dev] [PATCH v8 3/4] vhost: handle memory hotplug for async vhost

2021-07-23 Thread Cheng Jiang
From: Jiayu Hu When the guest memory is hotplugged, the vhost application which enables DMA acceleration must stop DMA transfers before the vhost re-maps the guest memory. This patch is to notify the vhost application of stopping DMA transfers. Signed-off-by: Jiayu Hu Reviewed-by: Maxime Coque

[dpdk-dev] [PATCH v8 4/4] examples/vhost: handle memory hotplug for async vhost

2021-07-23 Thread Cheng Jiang
. add inflight packets clear process in destroy_device() and vring_state_changed(). Signed-off-by: Cheng Jiang Reviewed-by: Maxime Coquelin --- examples/vhost/main.c | 55 +-- examples/vhost/main.h | 1 + 2 files changed, 54 insertions(+), 2 deletions

[dpdk-dev] [PATCH] examples/vhost: add error propagation in ioat ops

2021-01-31 Thread Cheng Jiang
It makes more sense to add error propagation for rte_ioat_completed_ops. Signed-off-by: Cheng Jiang --- examples/vhost/ioat.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/vhost/ioat.c b/examples/vhost/ioat.c index dbad28d43..60b73be93 100644 --- a

[dpdk-dev] [PATCH] examples/vhost: remove async inflight packet counter

2021-01-31 Thread Cheng Jiang
Remove async inflight packet counter since there is no need to keep traking it. Increase MAX_ENQUEUED_SIZE to prevent packet segment number traking ring from being exhausted. Fixes: 63dabdeda690 ("examples/vhost: refactor vhost data path") Signed-off-by: Cheng Jiang --- examples/vh

[dpdk-dev] [PATCH v2] examples/vhost: remove async inflight packet counter

2021-01-31 Thread Cheng Jiang
Remove async inflight packet counter since there is no need to keep tracking it. Increase MAX_ENQUEUED_SIZE to prevent packet segment number tracking ring from being exhausted. Fixes: 63dabdeda690 ("examples/vhost: refactor vhost data path") Signed-off-by: Cheng Jiang --- v2: fi

[dpdk-dev] [PATCH v3] examples/vhost: remove async inflight packet counter

2021-02-01 Thread Cheng Jiang
Remove async inflight packet counter since there is no need to keep tracking it. Increase MAX_ENQUEUED_SIZE to prevent packet segment number tracking ring from being exhausted. Fixes: a68ba8e0a6b6 ("examples/vhost: refactor vhost data path") Signed-off-by: Cheng Jiang --- v3: fixed fi

[dpdk-dev] [PATCH] examples/vhost: fix potentially overflowing expression

2021-02-01 Thread Cheng Jiang
Change the type of buff_idx from uint64_t to uint32_t to fix coverity issue. Fixes: a68ba8e0a6b6 ("examples/vhost: refactor vhost data path") Coverity issue: 366264 Signed-off-by: Cheng Jiang --- examples/vhost/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v2] examples/vhost: fix potentially overflowing expression

2021-02-01 Thread Cheng Jiang
Change the type of buff_idx from uint64_t to uint32_t to fix coverity issue. Coverity issue: 366264 Fixes: a68ba8e0a6b6 ("examples/vhost: refactor vhost data path") Signed-off-by: Cheng Jiang --- v2: fixed the format of git log examples/vhost/main.c | 2 +- 1 file changed, 1 inser

[dpdk-dev] [PATCH v2] examples/vhost: add error propagation in ioat ops

2021-02-03 Thread Cheng Jiang
It makes more sense to add error propagation for rte_ioat_completed_ops. And change the type of dev_id from int to uint16_t. Signed-off-by: Cheng Jiang --- v2: mentioned dev_id type changes in git log examples/vhost/ioat.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions

[PATCH] vhost: fix slot index in async split virtqueue Tx

2023-02-22 Thread Cheng Jiang
The slot_idx in the asynchronous Vhost split virtqueue dequeue data path is supposed to be decreased by 1 when desc_to_mbuf() fails. Fixes: 84d5204310d7 ("vhost: support async dequeue for split ring") Cc: sta...@dpdk.org Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 1

[PATCH v2] app/dma-perf: introduce dma-perf application

2023-05-16 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- v2: added lcore/dmadev designation; added error case process; removed

[PATCH v3] app/dma-perf: introduce dma-perf application

2023-05-17 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- v3: fixed some typos; v2: added lcore/dmadev designation; added error case

[PATCH] app/dma-perf: introduce dma-perf application

2023-04-20 Thread Cheng Jiang
different scenarios automatically with a pre-set config file. Memory Copy performance test are supported for now. Signed-off-by: Cheng Jiang Signed-off-by: Jiayu Hu Signed-off-by: Yuan Wang Acked-by: Morten Brørup --- app/meson.build | 1 + app/test-dma-perf/benchmark.c | 467

[PATCH 0/2] vhost: add port mirroring function in the vhost lib

2023-04-20 Thread Cheng Jiang
. Cheng Jiang (2): vhost: add ingress API for port mirroring datapath vhost: add egress API for port mirroring datapath lib/vhost/rte_vhost_async.h | 17 + lib/vhost/version.map |3 + lib/vhost/virtio_net.c | 1266 +++ 3 files changed, 1286

  1   2   3   >