6d66f08e | 09-Oct-2024 |
Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com> |
cryptodev: reorder structures in asym crypto header
Asymmetric-crypto header has a simple structure that allows to keep logically separate blocks together. Therefore, xforms, ops, and generic struct
cryptodev: reorder structures in asym crypto header
Asymmetric-crypto header has a simple structure that allows to keep logically separate blocks together. Therefore, xforms, ops, and generic structs may be appropriately ordered. This patch moves sm2-op structs to be placed along other algorithms-op structs.
Signed-off-by: Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
e17a4a88 | 09-Oct-2024 |
Akhil Goyal <gakhil@marvell.com> |
cryptodev: remove unnecessary list ends
RTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END and RTE_CRYPTO_RSA_PADDING_TYPE_LIST_END are not used anywhere and mostly it do not fulfil any objective. Rather it does n
cryptodev: remove unnecessary list ends
RTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END and RTE_CRYPTO_RSA_PADDING_TYPE_LIST_END are not used anywhere and mostly it do not fulfil any objective. Rather it does not allow addition of new algorithms and new padding type as it result in ABI breakage. Hence, these are removed.
Signed-off-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
53c65a3c | 09-Oct-2024 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
cryptodev: add asymmetric operational capability
Asymmetric crypto algorithms such as SM2, EdDSA would need per op capability and based on it, the input param to a crypto operation is chosen wisely.
cryptodev: add asymmetric operational capability
Asymmetric crypto algorithms such as SM2, EdDSA would need per op capability and based on it, the input param to a crypto operation is chosen wisely.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com>
show more ...
|
8a97564b | 04-Oct-2024 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
cryptodev: move RSA padding information into xform
RSA padding information could be a xform entity rather than part of crypto op, as it seems associated with hashing algorithm used for the entire cr
cryptodev: move RSA padding information into xform
RSA padding information could be a xform entity rather than part of crypto op, as it seems associated with hashing algorithm used for the entire crypto session, where this algorithm is used in message digest itself. Even in virtIO standard spec, this info is associated in the asymmetric session creation. Hence, moving this info from crypto op into xform structure.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
0a054e8d | 22-Aug-2024 |
Vidya Sagar Velumuri <vvelumuri@marvell.com> |
cryptodev: add queue pair reset API
The API will reset the specific queue pair of a cryptodev. The current API, cryptodev_queue_pair_setup(), requires the cryptodev to be stopped before reconfigurin
cryptodev: add queue pair reset API
The API will reset the specific queue pair of a cryptodev. The current API, cryptodev_queue_pair_setup(), requires the cryptodev to be stopped before reconfiguring any queue pair. Stopping the cryptodev in one thread can result in a segmentation fault when multiple queues are used for enqueue and dequeue operations.
On supported PMDs, the cryptodev_queue_pair_reset() will reconfigure/reset the queue pair without affecting other queues or the cryptodev state.
The caller should ensure that there are no enqueue or dequeue operations ongoing on that queue and that there are no inflight packets before calling this API.
Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
e858d0c9 | 27-Jun-2024 |
Ganapati Kundapura <ganapati.kundapura@intel.com> |
cryptodev: validate crypto callbacks from next node
Crypto callbacks are invoked on checking from head node which is always valid pointer.
This patch checks next node from the head node if callback
cryptodev: validate crypto callbacks from next node
Crypto callbacks are invoked on checking from head node which is always valid pointer.
This patch checks next node from the head node if callbacks registered before invoking callbacks.
Fixes: 1c3ffb95595e ("cryptodev: add enqueue and dequeue callbacks") Cc: stable@dpdk.org
Signed-off-by: Ganapati Kundapura <ganapati.kundapura@intel.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
show more ...
|
c07da8e3 | 06-Dec-2023 |
David Marchand <david.marchand@redhat.com> |
lib: use dedicated logtypes and macros
No printf! When a dedicated log helper exists, use it. And no usurpation please: a library should log under its logtype (see the eventdev rx adapter update for
lib: use dedicated logtypes and macros
No printf! When a dedicated log helper exists, use it. And no usurpation please: a library should log under its logtype (see the eventdev rx adapter update for example).
Note: the RTE_ETH_VALID_PORTID_OR_GOTO_ERR_RET macro is renamed for consistency with the rest of eventdev (private) macros.
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|