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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 -
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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/
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
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_
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
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
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
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
. 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
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
")
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
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
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
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
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
. 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
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
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
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
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
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
. 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
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
: 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
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
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
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
. 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
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
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
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...
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
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
. 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
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
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
"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 +
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
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
. 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
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
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
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
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
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
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
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
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
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
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
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
.
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 - 100 of 240 matches
Mail list logo