[PATCH v8 0/5] vhost: support async dequeue data path

2022-05-16 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This

[PATCH v8 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-05-16 Thread xuan . ding
From: Xuan Ding 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

[PATCH v8 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin

[PATCH v8 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48

[PATCH v8 4/5] vhost: support async dequeue for split ring

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide

[PATCH v8 5/5] examples/vhost: support async dequeue data path

2022-05-16 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides

[PATCH] doc: announce header split deprecation

2022-05-23 Thread xuan . ding
From: Xuan Ding RTE_ETH_RX_OFFLOAD_HEADER_SPLIT offload was introduced some time ago to substitute bit-field header_split in struct rte_eth_rxmode. It allows to enable header split offload with the header size controlled using split_hdr_size in the same structure. Right now, no single PMD

[PATCH v6] ethdev: introduce protocol header based buffer split

2022-05-27 Thread xuan . ding
k memory and external memory, respectively. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang Signed-off-by: Wenxuan Wu Reviewed-by: Qi Zhang --- lib/ethdev/rte_ethdev.c | 40 +--- lib/ethdev/rte_ethdev.h | 28 +++- 2 files changed, 60 inserti

[PATCH v6 0/1] ethdev: introduce protocol based buffer split

2022-05-27 Thread xuan . ding
From: Xuan Ding Protocol based buffer split consists of splitting a received packet into several separate segments based on the packet content. It is useful in some scenarios, such as GPU acceleration. The splitting will help to enable true zero copy and hence improve the performance

[PATCH v6 1/1] ethdev: introduce protocol header based buffer split

2022-05-27 Thread xuan . ding
k memory and external memory, respectively. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang Signed-off-by: Wenxuan Wu Reviewed-by: Qi Zhang --- lib/ethdev/rte_ethdev.c | 40 +--- lib/ethdev/rte_ethdev.h | 28 +++- 2 files changed, 60 inserti

[PATCH] vhost: fix missing statistics update

2022-06-16 Thread xuan . ding
From: Xuan Ding This patch adds missing per-virtqueue statistics in async dequeue path. Fixes: 84d5204310d7("vhost: support async dequeue for split ring") Cc: sta...@dpdk.org Signed-off-by: Xuan Ding --- lib/vhost/virtio_net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH v2] vhost: fix missing statistics update

2022-06-16 Thread xuan . ding
From: Xuan Ding This patch adds missing per-virtqueue statistics in async dequeue path. Fixes: 84d5204310d7("vhost: support async dequeue for split ring") Signed-off-by: Xuan Ding --- v2: * Since this issue was introduced and fixed in same release, no need to add cc stable. ---

[PATCH] doc: update async enqueue API usage

2022-06-17 Thread xuan . ding
From: Xuan Ding This patch updates the correct usage for async enqueue APIs. The rte_vhost_poll_enqueue_completed() needs to be called in time to avoid packet loss due to full dma ring. Signed-off-by: Xuan Ding --- doc/guides/prog_guide/vhost_lib.rst | 9 + 1 file changed, 9

[PATCH v4 0/2] vhost: introduce DMA vchannel unconfiguration

2022-10-12 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free DMA vchannels finished to use. Note: this API should be called after async channel unregister. v4: * Rebase to 22.11 rc1. * Fix the usage of 'dma_ref_count' to mak

[PATCH v4 1/2] vhost: introduce DMA vchannel unconfiguration

2022-10-12 Thread xuan . ding
From: Xuan Ding Add a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides/prog_guide

[PATCH v4 2/2] examples/vhost: unconfigure DMA vchannel

2022-10-12 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() to manually free DMA vchannels. Before unconfiguration, need make sure the specified DMA device is no longer used by any vhost ports. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 38

[PATCH v5 0/2] vhost: introduce DMA vchannel unconfiguration

2022-10-13 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free DMA vchannels finished to use. Note: this API should be called after async channel unregister. v5: * Use mutex instead of spinlock. * Improve code readability. v4: * Rebase to

[PATCH v5 1/2] vhost: introduce DMA vchannel unconfiguration

2022-10-13 Thread xuan . ding
From: Xuan Ding Add a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides/prog_guide

[PATCH v5 2/2] examples/vhost: unconfigure DMA vchannel

2022-10-13 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() to manually free DMA vchannels. Before unconfiguration, make sure the specified DMA device is no longer used by any vhost ports. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 40

[PATCH v6 0/2] vhost: introduce DMA vchannel unconfiguration

2022-10-18 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free DMA vchannels finished to use. v6: * Move DMA unconfiguration to the end due to DMA devices maybe reused after destroy_device(). * Refine the doc to claim the DMA device should

[PATCH v6 1/2] vhost: introduce DMA vchannel unconfiguration

2022-10-18 Thread xuan . ding
From: Xuan Ding Add a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides/prog_guide

[PATCH v6 2/2] examples/vhost: unconfigure DMA vchannel

2022-10-18 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() to manually free DMA vchannels. Before unconfiguration, make sure the specified DMA device is no longer used by any vhost ports. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 8 1 file changed, 8 insertions

[PATCH v7 0/2] vhost: introduce DMA vchannel unconfiguration

2022-10-20 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free DMA vchannels finished to use. v7: * Add inflight packets processing. * Fix CI error. v6: * Move DMA unconfiguration to the end due to DMA devices maybe reused after

[PATCH v7 1/2] vhost: introduce DMA vchannel unconfiguration

2022-10-20 Thread xuan . ding
From: Xuan Ding Add a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides/prog_guide

[PATCH v7 2/2] examples/vhost: unconfigure DMA vchannel

2022-10-20 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() to manually free DMA vchannels. Before unconfiguration, make sure the specified DMA device is no longer used by any vhost ports. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 8 1 file changed, 8 insertions

[PATCH v8 1/2] vhost: introduce DMA vchannel unconfiguration

2022-10-25 Thread xuan . ding
From: Xuan Ding Add a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vChannels in vhost async data path. Lock protection are also added to protect DMA vChannel configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides/prog_guide

[PATCH v8 0/2] vhost: introduce DMA vchannel unconfiguration

2022-10-25 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free DMA vChannels finished to use. v8: * Check inflight packets release virtual channel. v7: * Add inflight packets processing. * Fix CI error. v6: * Move DMA unconfiguration to the

[PATCH v8 2/2] examples/vhost: unconfigure DMA vchannel

2022-10-25 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() to manually free DMA vChannels. Before unconfiguration, make sure the specified DMA vChannel is no longer used by any vhost ports. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 8 1 file changed, 8 insertions

[PATCH v3 0/2] vhost: introduce DMA vchannel unconfiguration

2022-09-28 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free the DMA vchannel finished to use. Note: this API should be called after async channel unregister. v3: * Rebase to latest DPDK. * Refine some descriptions in the doc. * Fix one bug

[PATCH v3 1/2] vhost: introduce DMA vchannel unconfiguration

2022-09-28 Thread xuan . ding
From: Xuan Ding This patch adds a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides

[PATCH v3 2/2] examples/vhost: unconfigure DMA vchannel

2022-09-28 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() API to manually free DMA vchannels instead of waiting until the program ends to be released. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 45 ++- examples/vhost/main.h | 1

[PATCH v1 0/2] vhost: introduce DMA vchannel unconfiguration

2022-08-14 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free the DMA vchannel finished to use. Note: this API should be called after async channel unregister. Xuan Ding (2): vhost: introduce DMA vchannel unconfiguration example/vhost

[PATCH v1 1/2] vhost: introduce DMA vchannel unconfiguration

2022-08-14 Thread xuan . ding
From: Xuan Ding This patch adds a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Signed-off-by: Xuan Ding --- doc/guides/prog_guide/vhost_lib.rst| 5 doc/guides/rel_notes/release_22_11.rst | 2 ++ lib/vhost/rte_vhost_async.h

[PATCH v1 2/2] example/vhost: unconfigure DMA vchannel

2022-08-14 Thread xuan . ding
From: Xuan Ding This patch uses rte_vhost_async_dma_unconfigure() API to manually free 'dma_coy_track' array rather than wait for the program to finish before being freed. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 0/2] vhost: introduce DMA vchannel unconfiguration

2022-09-05 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free the DMA vchannel finished to use. Note: this API should be called after async channel unregister. v2: * Add spinlock protection. * Fix a memory leak issue. * Refine the doc. Xuan

[PATCH v2 1/2] vhost: introduce DMA vchannel unconfiguration

2022-09-05 Thread xuan . ding
From: Xuan Ding This patch adds a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides

[PATCH v2 2/2] examples/vhost: unconfigure DMA vchannel

2022-09-05 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() API to manually free 'dma_copy_track' array instead of waiting until the program ends to be released. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2] doc: update async enqueue API usage

2022-06-21 Thread xuan . ding
From: Xuan Ding This patch updates the correct usage for async enqueue APIs. The rte_vhost_poll_enqueue_completed() needs to be called in time to notify the guest of completed packets and avoid packet loss. Signed-off-by: Xuan Ding --- v2: * refine doc and commit log --- doc/guides/prog_guide

[PATCH] doc: clean vhost async path doc

2022-06-21 Thread xuan . ding
From: Xuan Ding This patch moves the 'Recommended IOVA mode in async datapath' section under 'Vhost asynchronous data path' as a subsection, which make the doc cleaner. Signed-off-by: Xuan Ding --- doc/guides/prog_guide/vhost_lib.rst | 12 ++-- 1 file changed

[PATCH v2] doc: clean vhost async path doc

2022-06-21 Thread xuan . ding
From: Xuan Ding This patch moves the 'Recommended IOVA mode in async datapath' section under 'Vhost asynchronous data path' as a subsection, which makes the doc cleaner. Signed-off-by: Xuan Ding --- v2: * fix a typo in commit log --- doc/guides/prog_guide/vhost_lib.rst

[PATCH v3] doc: clean vhost async path doc

2022-06-21 Thread xuan . ding
From: Xuan Ding This patch moves the 'Recommended IOVA mode in async datapath' section under 'Vhost asynchronous data path' as a sub-section, which makes the doc cleaner. Signed-off-by: Xuan Ding Reviewed-by: Jiayu Hu --- v3: * add Reviewd-by v2: * fix a typo in commit

[PATCH] vhost: fix sync dequeue offload

2022-06-23 Thread xuan . ding
From: Xuan Ding This patch fixes the missing virtio net header copy in sync dequeue path caused by refactoring, which affects dequeue offloading. Fixes: 6d823bb302c7("vhost: prepare sync for descriptor to mbuf refactoring") Signed-off-by: Xuan Ding --- lib/vhost/virtio_

[PATCH] net/vhost: fix compliant offloading flag

2022-06-28 Thread xuan . ding
From: Xuan Ding This patch fixes the check to set compliant offloading flag. Compliant offloading flag should be set when the 'legacy-ol-flags' is true. Fixes: 3a6ee8dafb21("net/vhost: enable compliant offloading mode") Signed-off-by: Xuan Ding --- drivers/net/vhost/rte_e

[PATCH] vhost: fix unnecessary dirty page logging

2022-07-06 Thread xuan . ding
From: Xuan Ding The dirty page logging is only required in vhost enqueue direction for live migration. This patch removes the unnecessary dirty page logging in vhost dequeue direction. Otherwise, it will result in a performance drop. Some if-else judgements are also optimized to improve

[PATCH v2] doc: announce header split deprecation

2022-07-15 Thread xuan . ding
From: Xuan Ding RTE_ETH_RX_OFFLOAD_HEADER_SPLIT offload was introduced some time ago to substitute bit-field header_split in struct rte_eth_rxmode. It allows to enable per-port header split offload with the header size controlled using split_hdr_size in the same structure. Right now, no single

[PATCH] ethdev: remove header split Rx offload

2022-08-11 Thread xuan . ding
From: Xuan Ding As announced in the deprecation note, this patch removes the Rx offload flag 'RTE_ETH_RX_OFFLOAD_HEADER_SPLIT' and 'split_hdr_size' field from the structure 'rte_eth_rxmode'. User can still use `RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT` for per-queue

[PATCH v2] ethdev: remove header split Rx offload

2022-08-11 Thread xuan . ding
From: Xuan Ding As announced in the deprecation note, this patch removes the Rx offload flag 'RTE_ETH_RX_OFFLOAD_HEADER_SPLIT' and 'split_hdr_size' field from the structure 'rte_eth_rxmode'. Meanwhile, the place where the examples and apps initialize the 's

[PATCH v1 0/5] vhost: support async dequeue data path

2022-04-07 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch implements vhost async dequeue data path for split ring. This patch set is a new design and implementation of [2

[PATCH v1 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-04-07 Thread xuan . ding
From: Xuan Ding 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 simplies the code without performance

[PATCH v1 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-04-07 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplies the code without performance degradation. Signed-off-by: Xuan Ding --- lib/vhost/virtio_net.c | 23 +++ 1

[PATCH v1 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-04-07 Thread xuan . ding
From: Xuan Ding This patches refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 47 -- 2 files changed, 37

[PATCH v1 4/5] vhost: support async dequeue for split ring

2022-04-07 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 7 + doc/guides/rel_notes/release_22_07.rst

[PATCH v1 5/5] examples/vhost: support async dequeue data path

2022-04-07 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding --- doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/main.c

[PATCH v1 0/2] vhost: add unsafe API to get DMA inflight packets

2022-04-08 Thread xuan . ding
From: Xuan Ding This patchset introduces an unsafe API to get the number of inflight packets in DMA engine. It should be only used within the vhost ops which already holds the lock. Like vring state changes or device is destroyed. Compared with rte_vhost_async_get_inflight(), this is a lock free

[PATCH v1 1/2] vhost: add unsafe API to check inflight packets

2022-04-08 Thread xuan . ding
From: Xuan Ding In async data path, when vring state changes or device is destroyed, it is necessary to know the number of inflight packets in DMA engine. This patch provides a thread unsafe API to return the number of inflight packets for a vhost queue without using any lock. Signed-off-by

[PATCH v1 2/2] examples/vhost: use API to check inflight packets

2022-04-08 Thread xuan . ding
From: Xuan Ding In async data path, call rte_vhost_async_get_inflight_thread_unsafe() API to directly return the number of inflight packets instead of maintaining a local variable. Signed-off-by: Xuan Ding Reviewed-by: Maxime Coquelin --- examples/vhost/main.c | 28

[PATCH v2 0/5] vhost: support async dequeue data path

2022-04-11 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This

[PATCH v2 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-04-11 Thread xuan . ding
From: Xuan Ding 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

[PATCH v2 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-04-11 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding --- lib/vhost/virtio_net.c | 23 +++ 1

[PATCH v2 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-04-11 Thread xuan . ding
From: Xuan Ding This patches refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48 -- 2 files changed, 38

[PATCH v2 4/5] vhost: support async dequeue for split ring

2022-04-11 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 7 + doc/guides/rel_notes/release_22_07.rst

[PATCH v2 5/5] examples/vhost: support async dequeue data path

2022-04-11 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding --- doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/main.c

[PATCH v3] doc: fix vhost multi-queue reconnection

2022-04-14 Thread xuan . ding
From: Xuan Ding Since QEMU 5.2.0 fixes the vhost split ring multi-queue reconnection issue in commit f66337bdbfda ("vhost-user: save features of multiqueues if chardev is closed"), this patch updates known issue to indicate the range of affeacted QEMU versions. Fixes: b37e95507e1b

[PATCH v3 0/5] vhost: support async dequeue data path

2022-04-18 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This

[PATCH v3 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-04-18 Thread xuan . ding
From: Xuan Ding 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

[PATCH v3 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-04-18 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding --- lib/vhost/virtio_net.c | 23 +++ 1

[PATCH v3 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-04-18 Thread xuan . ding
From: Xuan Ding This patches refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48 -- 2 files changed, 38

[PATCH v3 4/5] vhost: support async dequeue for split ring

2022-04-18 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 7 + doc/guides/rel_notes/release_22_07.rst

[PATCH v3 5/5] examples/vhost: support async dequeue data path

2022-04-18 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding --- doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/main.c

[PATCH v4 0/5] vhost: support async dequeue data path

2022-05-04 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This

[PATCH v4 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-05-04 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding Reviewed-by: Maxime Coquelin --- lib/vhost/virtio_net.c

[PATCH v4 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-05-04 Thread xuan . ding
From: Xuan Ding 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

[PATCH v4 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-05-04 Thread xuan . ding
From: Xuan Ding This patch refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding Reviewed-by: Maxime Coquelin --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48

[PATCH v4 4/5] vhost: support async dequeue for split ring

2022-05-04 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 7 + doc/guides/rel_notes/release_22_07.rst

[PATCH v4 5/5] examples/vhost: support async dequeue data path

2022-05-04 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding --- doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/main.c

[PATCH v4] doc: fix vhost multi-queue reconnection

2022-05-08 Thread xuan . ding
From: Xuan Ding Since QEMU 5.2.0 fixes the vhost split ring multi-queue reconnection issue in commit f66337bdbfda ("vhost-user: save features of multiqueues if chardev is closed"), this patch updates known issue to indicate the range of affeacted QEMU versions. Fixes: b37e95507e1b

[PATCH v5 0/5] vhost: support async dequeue data path

2022-05-12 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This

[PATCH v5 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-05-12 Thread xuan . ding
From: Xuan Ding 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

[PATCH v5 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin

[PATCH v5 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48

[PATCH v5 4/5] vhost: support async dequeue for split ring

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide

[PATCH v5 5/5] examples/vhost: support async dequeue data path

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides

[PATCH v6 0/5] vhost: support async dequeue data path

2022-05-12 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This

[PATCH v6 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-05-12 Thread xuan . ding
From: Xuan Ding 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

[PATCH v6 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin

[PATCH v6 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48

[PATCH v6 4/5] vhost: support async dequeue for split ring

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide

[PATCH v6 5/5] examples/vhost: support async dequeue data path

2022-05-12 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides

[PATCH v7 0/5] vhost: support async dequeue data path

2022-05-15 Thread xuan . ding
From: Xuan Ding The presence of asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set implements vhost async dequeue data path for split ring. The code is based on latest enqueue changes [1]. This

[PATCH v7 1/5] vhost: prepare sync for descriptor to mbuf refactoring

2022-05-15 Thread xuan . ding
From: Xuan Ding 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

[PATCH v7 2/5] vhost: prepare async for descriptor to mbuf refactoring

2022-05-15 Thread xuan . ding
From: Xuan Ding This patch refactors vhost async enqueue path and dequeue path to use the same function async_fill_seg() for preparing batch elements, which simplifies the code without performance degradation. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin

[PATCH v7 3/5] vhost: merge sync and async descriptor to mbuf filling

2022-05-15 Thread xuan . ding
From: Xuan Ding This patch refactors copy_desc_to_mbuf() used by the sync path to support both sync and async descriptor to mbuf filling. Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- lib/vhost/vhost.h | 1 + lib/vhost/virtio_net.c | 48

[PATCH v7 4/5] vhost: support async dequeue for split ring

2022-05-15 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, a new API rte_vhost_async_try_dequeue_burst() is introduced. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide

[PATCH v7 5/5] examples/vhost: support async dequeue data path

2022-05-15 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Tested-by: Yvonne Yang Reviewed-by: Maxime Coquelin --- doc/guides

[PATCH] doc: remove multi-queue reconnection known issue

2022-02-20 Thread xuan . ding
From: Xuan Ding Since QEMU 5.2.0 fixes the vhost multi-queue reconnection issue in commit f66337bdbfda ("vhost-user: save features of multiqueues if chardev is closed"), this patch removes the previous description from known issue. Signed-off-by: Xuan Ding --- doc/guides

[RFC,v2 0/2] vhost: support async dequeue data path

2022-02-23 Thread xuan . ding
From: Xuan Ding The presence of an asynchronous path allows applications to offload memory copies to DMA engine, so as to save CPU cycles and improve the copy performance. This patch set is a draft implementation for split ring in vhost async dequeue data path. The code is based on latest

[RFC,v2 1/2] vhost: support async dequeue for split ring

2022-02-23 Thread xuan . ding
From: Xuan Ding This patch implements asynchronous dequeue data path for vhost split ring, with dmadev library integrated. Signed-off-by: Xuan Ding Signed-off-by: Yuan Wang --- lib/vhost/rte_vhost_async.h | 37 ++- lib/vhost/version.map | 1 + lib/vhost/vhost.h | 1

[RFC,v2 2/2] examples/vhost: support async dequeue data path

2022-02-23 Thread xuan . ding
From: Xuan Ding This patch adds the use case for async dequeue API. Vswitch can leverage DMA device to accelerate vhost async dequeue path. Signed-off-by: Wenwu Ma Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding --- doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/main.c

[PATCH v2] doc: fix vhost multi-queue reconnection

2022-02-23 Thread xuan . ding
From: Xuan Ding Since QEMU 5.2.0 fixes the vhost multi-queue reconnection issue in commit f66337bdbfda ("vhost-user: save features of multiqueues if chardev is closed"), this patch removes the previous description from known issue. Fixes: b37e95507e1b ("doc: add vhost multi-que

[RFC] ethdev: introduce protocol type based header split

2022-03-02 Thread xuan . ding
From: Xuan Ding Header split consists of splitting a received packet into two separate regions based on the packet content. Splitting is usually between the packet header that can be posted to a dedicated buffer and the packet payload that can be posted to a different buffer. This kind of

  1   2   3   >