__rte_experimentalstructrte_pmd_cnxk_crypto_qptr*rte_pmd_cnxk_crypto_qptr_get(uint8_tdev_id,uint16_tqp_id)
Get queue pointer of a specific queue in a cryptodev.
Parametersdev_id Device identifier of cryptodev device.
qp_id Index of the queue pair.
Returns
• On success, pointer to queue pair structure that would be the input to submit APIs.
• NULL on error.
__rte_experimentalvoidrte_pmd_cnxk_crypto_submit(structrte_pmd_cnxk_crypto_qptr*qptr,void*inst,uint16_tnb_inst)
Submit CPT instruction (cpt_inst_s) to hardware (CPT).
The qp is a pointer obtained from rte_pmd_cnxk_crypto_qp_get. Application should make sure it doesn't
overflow the internal hardware queues. It may do so by making sure the inflight packets are not more than
the number of descriptors configured.
This API may be called only after the cryptodev and queue pair is configured and is started.
Parametersqptr Pointer obtained with rte_pmd_cnxk_crypto_qptr_get.
inst Pointer to an array of instructions prepared by application.
nb_inst Number of instructions.
__rte_experimentalintrte_pmd_cnxk_crypto_cptr_flush(structrte_pmd_cnxk_crypto_qptr*qptr,structrte_pmd_cnxk_crypto_cptr*cptr,boolinvalidate)
Flush the CPTR from CPT CTX cache.
This API must be called only after the cryptodev and queue pair is configured and is started.
Parametersqptr Pointer obtained with rte_pmd_cnxk_crypto_qptr_get.
cptr Pointer obtained with rte_pmd_cnxk_crypto_cptr_get or any valid CPTR address that can be used
with CPT CTX cache.
invalidate If true, invalidate the CTX cache entry. If false, flush the CTX cache entry.
Returns
• 0 on success.
• Negative value on error.
• -EINVAL if the input parameters are invalid.
• -ENOTSUP if the operation is not supported.
• -EAGAIN if the operation is not successful.
• -EFAULT if the operation failed.
__rte_experimentalstructrte_pmd_cnxk_crypto_cptr*rte_pmd_cnxk_crypto_cptr_get(structrte_pmd_cnxk_crypto_sess*rte_sess)
Get the HW CPTR pointer from the rte_crypto/rte_security session.
Parametersrte_sess Pointer to the structure holding rte_cryptodev or rte_security session.
Returns
• On success, pointer to the HW CPTR.
• NULL on error.
__rte_experimentalintrte_pmd_cnxk_crypto_cptr_read(structrte_pmd_cnxk_crypto_qptr*qptr,structrte_pmd_cnxk_crypto_cptr*cptr,void*data,uint32_tlen)
Read HW context (CPTR).
Parametersqptr Pointer obtained with rte_pmd_cnxk_crypto_qptr_get.
cptr Pointer obtained with rte_pmd_cnxk_crypto_cptr_get or any valid CPTR address that can be used
with CPT CTX cache.
data Destination pointer to copy CPTR context for application.
len Length of CPTR context to copy into data parameter.
Returns
• 0 On success.
• Negative value on error.
• -EINVAL if the input parameters are invalid.
• -ENOTSUP if the operation is not supported.
• -EAGAIN if the operation is not successful.
• -EFAULT if the operation failed.
__rte_experimentalintrte_pmd_cnxk_crypto_cptr_write(structrte_pmd_cnxk_crypto_qptr*qptr,structrte_pmd_cnxk_crypto_cptr*cptr,void*data,uint32_tlen)
Write HW context (CPTR).
Parametersqptr Pointer obtained with rte_pmd_cnxk_crypto_qptr_get.
cptr Pointer obtained with rte_pmd_cnxk_crypto_cptr_get or any valid CPTR address that can be used
with CPT CTX cache.
data Source pointer to copy CPTR context from application.
len Length of CPTR context to copy from data parameter.
Returns
• 0 On success.
• Negative value on error.
• -EINVAL if the input parameters are invalid.
• -ENOTSUP if the operation is not supported.
• -EAGAIN if the operation is not successful.
• -EFAULT if the operation failed.
__rte_experimentalintrte_pmd_cnxk_crypto_qp_stats_get(structrte_pmd_cnxk_crypto_qptr*qptr,structrte_pmd_cnxk_crypto_qp_stats*stats)
Get the HW Queue Pair (LF) stats.
Parametersqptr Pointer obtained with rte_pmd_cnxk_crypto_qptr_get.
stats Pointer to the structure where stats will be copied.
Returns
• 0 On success.
• Negative value on error.
• -EINVAL if the input parameters are invalid.