DPDK
24.07.0
|
#include <stdint.h>
Go to the source code of this file.
Functions | |
__rte_experimental void * | rte_pmd_cnxk_crypto_qptr_get (uint8_t dev_id, uint16_t qp_id) |
__rte_experimental void | rte_pmd_cnxk_crypto_submit (void *qptr, void *inst, uint16_t nb_inst) |
Marvell CNXK Crypto PMD specific functions.
Definition in file rte_pmd_cnxk_crypto.h.
__rte_experimental void* rte_pmd_cnxk_crypto_qptr_get | ( | uint8_t | dev_id, |
uint16_t | qp_id | ||
) |
Get queue pointer of a specific queue in a cryptodev.
dev_id | Device identifier of cryptodev device. |
qp_id | Index of the queue pair. |
__rte_experimental void rte_pmd_cnxk_crypto_submit | ( | void * | qptr, |
void * | inst, | ||
uint16_t | nb_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.
qptr | Pointer obtained with rte_pmd_cnxk_crypto_qptr_get . |
inst | Pointer to an array of instructions prepared by application. |
nb_inst | Number of instructions. |