#
1b2798ee |
| 27-Oct-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
examples/vdpa: generate cmdline boilerplate
Use the dpdk-cmdline-gen script to autogenerate all the boilerplate structs and defines for the commandline part of the app.
Signed-off-by: Bruce Richard
examples/vdpa: generate cmdline boilerplate
Use the dpdk-cmdline-gen script to autogenerate all the boilerplate structs and defines for the commandline part of the app.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
34924a89 |
| 14-Nov-2022 |
Hao Chen <chenh@yusur.tech> |
examples/vdpa: enable vIOMMU
When we run dpdk vdpa in the nested virtual machine vm-L1 and ping test in vm-L2, the ping is not good. The reason for troubleshooting is that the virtio net in vm-L2 se
examples/vdpa: enable vIOMMU
When we run dpdk vdpa in the nested virtual machine vm-L1 and ping test in vm-L2, the ping is not good. The reason for troubleshooting is that the virtio net in vm-L2 sends control information to the vring, and the qemu back-end device in vm-L1 cannot obtain correct data from the vring. This problem is related to the opening of the vIOMMU.
This patch add flag RTE_VHOST_USER_IOMMU_SUPPORT to use vhost vIOMMU, VIRTIO_F_IOMMU_PLATFORM feature will be negotiated successfully if virtio IOMMU is used in a nested virtualization environment.
The configuration is as follows: The host starts iommu, and the kernel parameter is added with 'intel_iommu=on iommu=pt'. VM-L1's xml add viommu and virtio device adds iommu='on' ats='on'. VM-L2's xml enables viommu, and adds parameters 'intel_iommu=on iommu=pt' to kernel.
Then the ping test in vm-L2 is OK.
Signed-off-by: Hao Chen <chenh@yusur.tech> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
#
ec5ecd7e |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
dev: introduce device accessors
Prepare for making the device object opaque by adding accessors. Update existing "external" users.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by
dev: introduce device accessors
Prepare for making the device object opaque by adding accessors. Update existing "external" users.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
72b452c5 |
| 27-Aug-2022 |
Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> |
eal: remove unneeded includes from a public header
Do not include <ctype.h>, <errno.h>, and <stdlib.h> from <rte_common.h>, because they are not used by this file. Include the needed headers directl
eal: remove unneeded includes from a public header
Do not include <ctype.h>, <errno.h>, and <stdlib.h> from <rte_common.h>, because they are not used by this file. Include the needed headers directly from the files that need them.
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
d5499149 |
| 24-May-2022 |
Andy Pei <andy.pei@intel.com> |
examples/vdpa: support virtio block device
Add virtio blk device support to vDPA example.
Signed-off-by: Andy Pei <andy.pei@intel.com> Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
|
#
ab4bb424 |
| 02-Nov-2021 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vhost: rename driver callbacks struct
As previously announced, this patch renames struct vhost_device_ops to struct rte_vhost_device_ops.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
vhost: rename driver callbacks struct
As previously announced, this patch renames struct vhost_device_ops to struct rte_vhost_device_ops.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
show more ...
|
#
10aa3757 |
| 15-Apr-2021 |
Chengchang Tang <tangchengchang@huawei.com> |
examples: add eal cleanup to examples
According to the programming guide, the rte_eal_init should be used pairs with rte_eal_cleanup.
This patch add rte_eal_cleanup to examples to encourage new use
examples: add eal cleanup to examples
According to the programming guide, the rte_eal_init should be used pairs with rte_eal_cleanup.
This patch add rte_eal_cleanup to examples to encourage new users of DPDK to use it.
Fixes: aec9c13c5257 ("eal: add function to release internal resources") Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application") Fixes: c8e6ceecebc1 ("examples/ioat: add new sample app for ioat driver") Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines") Fixes: 08bd1a174461 ("examples/l3fwd-graph: add graph-based l3fwd skeleton") Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Fixes: b77f66002812 ("examples/pipeline: add new example application") Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA") Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample") Fixes: f5188211c721 ("examples/vhost_crypto: add sample application") Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
show more ...
|
#
c2341bb6 |
| 30-Oct-2020 |
Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> |
cmdline: avoid name clash with Windows system types
cmdline_numtype member names clash with Windows system identifiers. Add RTE_ prefix to cmdline constants to avoid this and possible future conflic
cmdline: avoid name clash with Windows system types
cmdline_numtype member names clash with Windows system identifiers. Add RTE_ prefix to cmdline constants to avoid this and possible future conflicts.
Suggested-by: Ranjit Menon <ranjit.menon@intel.com> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Ranjit Menon <ranjit.menon@intel.com> Acked-by: Jie Zhou <jizh@microsoft.com> Tested-by: Jie Zhou <jizh@microsoft.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
fbe6be6e |
| 26-Jun-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
examples/vdpa: remove useless device count
The VDPA example now uses the vDPA class iterator, so knowing the number of available devices beforehand is no longer needed.
Signed-off-by: Maxime Coquel
examples/vdpa: remove useless device count
The VDPA example now uses the vDPA class iterator, so knowing the number of available devices beforehand is no longer needed.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Adrián Moreno <amorenoz@redhat.com>
show more ...
|
#
71296e7b |
| 26-Jun-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
examples/vdpa: use new wrappers instead of ops
Now that wrappers to query number of queues, Virtio features and Vhost-user protocol features are available, let's make the vDPA example to use them.
examples/vdpa: use new wrappers instead of ops
Now that wrappers to query number of queues, Virtio features and Vhost-user protocol features are available, let's make the vDPA example to use them.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Adrián Moreno <amorenoz@redhat.com>
show more ...
|
#
0f700f90 |
| 26-Jun-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vhost: replace device ID in applications
This patch replaces the use of vDPA device ID with vDPA device pointer. The goals is to remove the vDPA device ID to avoid confusion with the Vhost ID.
Sign
vhost: replace device ID in applications
This patch replaces the use of vDPA device ID with vDPA device pointer. The goals is to remove the vDPA device ID to avoid confusion with the Vhost ID.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Adrián Moreno <amorenoz@redhat.com>
show more ...
|
#
2263f139 |
| 26-Jun-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vhost: replace vDPA device ID in Vhost
This removes the notion of device ID in Vhost library as a preliminary step to get rid of the vDPA device ID.
Signed-off-by: Maxime Coquelin <maxime.coquelin@
vhost: replace vDPA device ID in Vhost
This removes the notion of device ID in Vhost library as a preliminary step to get rid of the vDPA device ID.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Adrián Moreno <amorenoz@redhat.com>
show more ...
|
#
81a6b7fe |
| 26-Jun-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vhost: replace device ID in vDPA ops
This patch is a preliminary step to get rid of the vDPA device ID. It makes vDPA callbacks to use the vDPA device struct as a reference instead of the ID.
Signe
vhost: replace device ID in vDPA ops
This patch is a preliminary step to get rid of the vDPA device ID. It makes vDPA callbacks to use the vDPA device struct as a reference instead of the ID.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Adrián Moreno <amorenoz@redhat.com>
show more ...
|
#
38f8ab0b |
| 26-Jun-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vhost: make vDPA framework bus agnostic
This patch makes the vDPA framework to no more support only PCI devices, but any devices by relying on the generic device name as identifier.
Signed-off-by:
vhost: make vDPA framework bus agnostic
This patch makes the vDPA framework to no more support only PCI devices, but any devices by relying on the generic device name as identifier.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Adrián Moreno <amorenoz@redhat.com>
show more ...
|
#
6505865a |
| 18-Jun-2020 |
Matan Azrad <matan@mellanox.com> |
examples/vdpa: add statistics show command
A new vDPA driver feature was added to query the virtq statistics from the HW.
Use this feature to show the HW queues statistics for the virtqs.
Command
examples/vdpa: add statistics show command
A new vDPA driver feature was added to query the virtq statistics from the HW.
Use this feature to show the HW queues statistics for the virtqs.
Command description: stats X Y. X is the device ID. Y is the queue ID, Y=0xffff to show all the virtio queues statistics of the device X.
Signed-off-by: Matan Azrad <matan@mellanox.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
#
0265a198 |
| 26-Mar-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vhost: prefix vDPA enum value for PCI address type
In order to avoid potential conflicts, rename the PCI_ADDR enum value to VDPA_ADDR_PCI in vdpa_addr_type_enum.
All symbols referencing this enum a
vhost: prefix vDPA enum value for PCI address type
In order to avoid potential conflicts, rename the PCI_ADDR enum value to VDPA_ADDR_PCI in vdpa_addr_type_enum.
All symbols referencing this enum are experimental, so it does not break API policy.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Matan Azrad <matan@mellanox.com>
show more ...
|
#
f2fc83b4 |
| 09-Feb-2020 |
Thomas Monjalon <thomas@monjalon.net> |
replace unused attributes
There is a common macro __rte_unused, avoiding warnings, which is now used where appropriate for consistency.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
|
#
21c3c433 |
| 18-Oct-2018 |
Stephen Hemminger <stephen@networkplumber.org> |
examples/vdpa: fix spelling in error message
Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Ferruh
examples/vdpa: fix spelling in error message
Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
edbed86d |
| 28-Sep-2018 |
Xiaolong Ye <xiaolong.ye@intel.com> |
examples/vdpa: introduce a new sample for vDPA
The vdpa sample application creates vhost-user sockets by using the vDPA backend. vDPA stands for vhost Data Path Acceleration which utilizes virtio ri
examples/vdpa: introduce a new sample for vDPA
The vdpa sample application creates vhost-user sockets by using the vDPA backend. vDPA stands for vhost Data Path Acceleration which utilizes virtio ring compatible devices to serve virtio driver directly to enable datapath acceleration. As vDPA driver can help to set up vhost datapath, this application doesn't need to launch dedicated worker threads for vhost enqueue/dequeue operations.
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com> Acked-by: Xiao Wang <xiao.w.wang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|