DPDK  16.11.11
Data Fields
rte_crypto_op Struct Reference

#include <rte_crypto.h>

Data Fields

enum rte_crypto_op_type type
 
enum rte_crypto_op_status status
 
struct rte_mempoolmempool
 
phys_addr_t phys_addr
 
void * opaque_data
 
union {
   struct rte_crypto_sym_op *   sym
 
}; 
 

Detailed Description

Cryptographic Operation.

This structure contains data relating to performing cryptographic operations. This operation structure is used to contain any operation which is supported by the cryptodev API, PMDs should check the type parameter to verify that the operation is a support function of the device. Crypto operations are enqueued and dequeued in crypto PMDs using the rte_cryptodev_enqueue_burst() / rte_cryptodev_dequeue_burst() .

Examples:
l2fwd-crypto/main.c.

Definition at line 94 of file rte_crypto.h.

Field Documentation

enum rte_crypto_op_type type

operation type

Definition at line 95 of file rte_crypto.h.

enum rte_crypto_op_status status

operation status - this is reset to RTE_CRYPTO_OP_STATUS_NOT_PROCESSED on allocation from mempool and will be set to RTE_CRYPTO_OP_STATUS_SUCCESS after crypto operation is successfully processed by a crypto PMD

Definition at line 98 of file rte_crypto.h.

struct rte_mempool* mempool

crypto operation mempool which operation is allocated from

Definition at line 106 of file rte_crypto.h.

phys_addr_t phys_addr

physical address of crypto operation

Definition at line 109 of file rte_crypto.h.

void* opaque_data

Opaque pointer for user data

Definition at line 112 of file rte_crypto.h.

struct rte_crypto_sym_op* sym

Symmetric operation parameters

Examples:
l2fwd-crypto/main.c.

Definition at line 117 of file rte_crypto.h.

RTE_STD_C11 { ... }

operation specific parameters


The documentation for this struct was generated from the following file: