|
Revision tags: v24.07-rc2, v24.07-rc1 |
|
| #
7e06c0de |
| 15-Apr-2024 |
Tyler Retzlaff <roretzla@linux.microsoft.com> |
examples: move alignment attribute on types for MSVC
Move location of __rte_aligned(a) to new conventional location. The new placement between {struct,union} and the tag allows the desired alignment
examples: move alignment attribute on types for MSVC
Move location of __rte_aligned(a) to new conventional location. The new placement between {struct,union} and the tag allows the desired alignment to be imparted on the type regardless of the toolchain being used for both C and C++. Additionally, it avoids confusion by Doxygen when generating documentation.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Reviewed-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
|
Revision tags: v24.03, v24.03-rc4, v24.03-rc3, v24.03-rc2, v24.03-rc1, v23.11, v23.11-rc4, v23.11-rc3, v23.11-rc2, v23.11-rc1, v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2, v23.07-rc1, v23.03, v23.03-rc4, v23.03-rc3, v23.03-rc2, v23.03-rc1, v22.11, v22.11-rc4, v22.11-rc3, v22.11-rc2, v22.11-rc1 |
|
| #
bdce2564 |
| 04-Oct-2022 |
Akhil Goyal <gakhil@marvell.com> |
cryptodev: rework session framework
As per current design, rte_cryptodev_sym_session_create() and rte_cryptodev_sym_session_init() use separate mempool objects for a single session. And structure rt
cryptodev: rework session framework
As per current design, rte_cryptodev_sym_session_create() and rte_cryptodev_sym_session_init() use separate mempool objects for a single session. And structure rte_cryptodev_sym_session is not directly used by the application, it may cause ABI breakage if the structure is modified in future.
To address these two issues, the rte_cryptodev_sym_session_create will take one mempool object that the session and session private data are virtually/physically contiguous, and initializes both fields. The API rte_cryptodev_sym_session_init is removed.
rte_cryptodev_sym_session_create will now return an opaque session pointer which will be used by the app and other APIs.
In data path, opaque session pointer is attached to rte_crypto_op and the PMD can call an internal library API to get the session private data pointer based on the driver id.
Note: currently single session may be used by different device drivers, given it is initialized by them. After the change the session created by one device driver cannot be used or reinitialized by another driver.
Signed-off-by: Akhil Goyal <gakhil@marvell.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Kai Ji <kai.ji@intel.com> Tested-by: Gagandeep Singh <g.singh@nxp.com> Tested-by: David Coyle <david.coyle@intel.com> Tested-by: Kevin O'Sullivan <kevin.osullivan@intel.com>
show more ...
|
|
Revision tags: v22.07, v22.07-rc4, v22.07-rc3, v22.07-rc2, v22.07-rc1, v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1, v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2 |
|
| #
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 ...
|
|
Revision tags: v21.11-rc1, v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1 |
|
| #
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 ...
|
|
Revision tags: v21.02, v21.02-rc4, v21.02-rc3 |
|
| #
dd0946f9 |
| 04-Feb-2021 |
Ibtisam Tariq <ibtisam.tariq@emumba.com> |
examples/vhost_crypto: remove unused short option
Short option "s" was passed to getopt_long function, while there was no condition on this option.
Fixes: f5188211c721 ("examples/vhost_crypto: add
examples/vhost_crypto: remove unused short option
Short option "s" was passed to getopt_long function, while there was no condition on this option.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application") Cc: stable@dpdk.org
Signed-off-by: Ibtisam Tariq <ibtisam.tariq@emumba.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
| #
270054ed |
| 04-Feb-2021 |
Ibtisam Tariq <ibtisam.tariq@emumba.com> |
examples/vhost_crypto: enhance getopt_long usage
Instead of using getopt_long return value, strcmp was used to compare the input parameters with the struct option array. This patch get rid of all th
examples/vhost_crypto: enhance getopt_long usage
Instead of using getopt_long return value, strcmp was used to compare the input parameters with the struct option array. This patch get rid of all those strcmp by directly binding each longopt with an int enum. This is to improve readability and consistency in all examples.
Bugzilla ID: 238
Reported-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ibtisam Tariq <ibtisam.tariq@emumba.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v21.02-rc2, v21.02-rc1, v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2 |
|
| #
854dbee2 |
| 02-Nov-2020 |
Ibtisam Tariq <ibtisam.tariq@emumba.com> |
examples/vhost_crypto: add new line character in usage
Add new line character(\n) in the usage of vhost_crypto example for better readability
Fixes: 709521f4c2cd ("examples/vhost_crypto: support mu
examples/vhost_crypto: add new line character in usage
Add new line character(\n) in the usage of vhost_crypto example for better readability
Fixes: 709521f4c2cd ("examples/vhost_crypto: support multi-core") Cc: stable@dpdk.org
Signed-off-by: Ibtisam Tariq <ibtisam.tariq@emumba.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v20.11-rc1 |
|
| #
ea1b835a |
| 02-Oct-2020 |
Fan Zhang <roy.fan.zhang@intel.com> |
vhost/crypto: fix feature negotiation
This patch fixes the feature negotiation for vhost crypto during initialization. The patch uses the newly created driver start function to inform the driver typ
vhost/crypto: fix feature negotiation
This patch fixes the feature negotiation for vhost crypto during initialization. The patch uses the newly created driver start function to inform the driver type with the fixed vhost features. In addition the patch provides a new API specifically used by the application to start a vhost-crypto driver.
Fixes: 939066d96563 ("vhost/crypto: add public function implementation") Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
| #
c08736b3 |
| 28-Sep-2020 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
examples/vhost_crypto: use vhost async-copy flag
The crypto backend uses RTE_VHOST_USER_DEQUEUE_ZERO_COPY only for the shared areas to be populated at mmap time. It does not use the other mechanisms
examples/vhost_crypto: use vhost async-copy flag
The crypto backend uses RTE_VHOST_USER_DEQUEUE_ZERO_COPY only for the shared areas to be populated at mmap time. It does not use the other mechanisms the feature provides.
Now that RTE_VHOST_USER_DEQUEUE_ZERO_COPY is being removed, let's use RTE_VHOST_USER_ASYNC_COPY instead which does the same thing.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
show more ...
|
| #
57680e34 |
| 28-Sep-2020 |
Fan Zhang <roy.fan.zhang@intel.com> |
vhost/crypto: fix pool allocation
This patch fixes the missing iv space allocation in crypto operation mempool.
Fixes: 709521f4c2cd ("examples/vhost_crypto: support multi-core") Cc: stable@dpdk.org
vhost/crypto: fix pool allocation
This patch fixes the missing iv space allocation in crypto operation mempool.
Fixes: 709521f4c2cd ("examples/vhost_crypto: support multi-core") Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Chenbo Xia <chenbo.xia@intel.com>
show more ...
|
|
Revision tags: v20.08, v20.08-rc4, v20.08-rc3, v20.08-rc2, v20.08-rc1, v20.05, v20.05-rc4, v20.05-rc3, v20.05-rc2, v20.05-rc1, v20.02, v20.02-rc4, v20.02-rc3, v20.02-rc2, v20.02-rc1, v19.11, v19.11-rc4, v19.11-rc3, v19.11-rc2, v19.11-rc1, v19.08, v19.08-rc4, v19.08-rc3, v19.08-rc2, v19.08-rc1 |
|
| #
c9030ae3 |
| 25-Jun-2019 |
Anoob Joseph <anoobj@marvell.com> |
cryptodev: add feature flags to disable
Adding a new field, ff_disable, to allow applications to control the features enabled on the crypto device. This would allow for efficient usage of HW/SW offl
cryptodev: add feature flags to disable
Adding a new field, ff_disable, to allow applications to control the features enabled on the crypto device. This would allow for efficient usage of HW/SW offloads.
Signed-off-by: Anoob Joseph <anoobj@marvell.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
| #
be7a9518 |
| 15-May-2019 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/vhost_crypto: remove unused function
This patch tries to fix the coverity issue of unchecked return value. Since the function that causes the problem is unused, it is removed completely.
C
examples/vhost_crypto: remove unused function
This patch tries to fix the coverity issue of unchecked return value. Since the function that causes the problem is unused, it is removed completely.
Coverity issue: 336816 Fixes: f5188211c721 ("examples/vhost_crypto: add sample application") Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Jens Freimann <jfreimann@redhat.com> Acked-by: Marko Kovacevic <marko.kovacevic@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v19.05, v19.05-rc4, v19.05-rc3, v19.05-rc2, v19.05-rc1, v19.02, v19.02-rc4, v19.02-rc3 |
|
| #
00479d9c |
| 15-Jan-2019 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/vhost_crypto: fix session private mempool
This patch fixes the incorrect session private mempool passing to cryptodev.
Fixes: ac5e42daca19 ("vhost/crypto: use separate session mempools")
examples/vhost_crypto: fix session private mempool
This patch fixes the incorrect session private mempool passing to cryptodev.
Fixes: ac5e42daca19 ("vhost/crypto: use separate session mempools")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v19.02-rc2 |
|
| #
ac5e42da |
| 10-Jan-2019 |
Fan Zhang <roy.fan.zhang@intel.com> |
vhost/crypto: use separate session mempools
This patch uses the two session mempool approach to vhost crypto. One mempool is for session header objects, and the other is for session private data.
S
vhost/crypto: use separate session mempools
This patch uses the two session mempool approach to vhost crypto. One mempool is for session header objects, and the other is for session private data.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
| #
725d2a7f |
| 10-Jan-2019 |
Fan Zhang <roy.fan.zhang@intel.com> |
cryptodev: change queue pair configure structure
This patch changes the cryptodev queue pair configure structure to enable two mempool passed into cryptodev PMD simutaneously.
Signed-off-by: Fan Zh
cryptodev: change queue pair configure structure
This patch changes the cryptodev queue pair configure structure to enable two mempool passed into cryptodev PMD simutaneously.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
|
Revision tags: v19.02-rc1 |
|
| #
57f9a9fc |
| 11-Dec-2018 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/vhost_crypto: fix bracket
This patch fixes a missed bracket bug in the code.
Fixes: e1d90eaa83ff ("examples/vhost_crypto: fix zero copy") Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy
examples/vhost_crypto: fix bracket
This patch fixes a missed bracket bug in the code.
Fixes: e1d90eaa83ff ("examples/vhost_crypto: fix zero copy") Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v18.11, v18.11-rc5, v18.11-rc4 |
|
| #
e1d90eaa |
| 14-Nov-2018 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/vhost_crypto: fix zero copy
This patch fixes the zero copy enable problem for vhost crypto sample application.
For some Crypto PMDs such as AESNI-MB and AESNI-GCM the data to be processed
examples/vhost_crypto: fix zero copy
This patch fixes the zero copy enable problem for vhost crypto sample application.
For some Crypto PMDs such as AESNI-MB and AESNI-GCM the data to be processed will be made a copy in the same buffer but next to the data. For example, to encrypt 64 bytes data the PMD will copy this data from offset 64 to offset 123. This requires the application provides the buffer with at least double of the data size.
However there is no way for VMs to know this limitation. When zero-copy is enabled in Vhost the PMD may overwrite the buffer next to the VM data to be processed, and further cause problems such as Segmentation Fault or even worse, crashes the VM.
To fix the problem the user should avoid enabling the zero copy for these Crypto PMDs. This patch adds the checking of the PMD names to see if zero copy can be applied.
Fixes: 709521f4c2cd ("examples/vhost_crypto: support multi-core")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v18.11-rc3, v18.11-rc2, v18.11-rc1, v18.08, v18.08-rc3, v18.08-rc2, v18.08-rc1 |
|
| #
709521f4 |
| 22-Jun-2018 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/vhost_crypto: support multi-core
Originally vhost_crypto sample application only supports single core. This patch adds the multi-core support with more flexible options.
Signed-off-by: Fan
examples/vhost_crypto: support multi-core
Originally vhost_crypto sample application only supports single core. This patch adds the multi-core support with more flexible options.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v18.05, v18.05-rc6, v18.05-rc5 |
|
| #
a106fcce |
| 21-May-2018 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
cryptodev: rename functions to get session size
rte_cryptodev_get_header_session_size() and rte_cryptodev_get_private_session_size() functions are targeting symmetric sessions.
With the future addi
cryptodev: rename functions to get session size
rte_cryptodev_get_header_session_size() and rte_cryptodev_get_private_session_size() functions are targeting symmetric sessions.
With the future addition of asymmetric operations, these functions need to be renamed from *cryptodev_*_session_* to *cryptodev_sym_*_session_* to be symmetric specific.
The two original functions are marked as deprecated and will be removed in 18.08, so applications can still use the functions in 18.05.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Shally Verma <shally.verma@caviumnetworks.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
show more ...
|
|
Revision tags: v18.05-rc4, v18.05-rc3, v18.05-rc2, v18.05-rc1 |
|
| #
f5188211 |
| 05-Apr-2018 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/vhost_crypto: add sample application
This patch adds vhost_crypto sample application to DPDK.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Jay Zhou <jianjay.zhou@huawei.com
examples/vhost_crypto: add sample application
This patch adds vhost_crypto sample application to DPDK.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Jay Zhou <jianjay.zhou@huawei.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|