32 #ifndef _RTE_CRYPTODEV_H_
33 #define _RTE_CRYPTODEV_H_
52 #define CRYPTODEV_NAME_NULL_PMD cryptodev_null_pmd
54 #define CRYPTODEV_NAME_AESNI_MB_PMD cryptodev_aesni_mb_pmd
56 #define CRYPTODEV_NAME_AESNI_GCM_PMD cryptodev_aesni_gcm_pmd
58 #define CRYPTODEV_NAME_QAT_SYM_PMD cryptodev_qat_sym_pmd
60 #define CRYPTODEV_NAME_SNOW3G_PMD cryptodev_snow3g_pmd
62 #define CRYPTODEV_NAME_KASUMI_PMD cryptodev_kasumi_pmd
75 extern const char **rte_cyptodev_names;
79 #define CDEV_LOG_ERR(fmt, args...) \
80 RTE_LOG(ERR, CRYPTODEV, "%s() line %u: " fmt "\n", \
81 __func__, __LINE__, ## args)
83 #define CDEV_PMD_LOG_ERR(dev, fmt, args...) \
84 RTE_LOG(ERR, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
85 dev, __func__, __LINE__, ## args)
87 #ifdef RTE_LIBRTE_CRYPTODEV_DEBUG
88 #define CDEV_LOG_DEBUG(fmt, args...) \
89 RTE_LOG(DEBUG, CRYPTODEV, "%s() line %u: " fmt "\n", \
90 __func__, __LINE__, ## args) \
92 #define CDEV_PMD_TRACE(fmt, args...) \
93 RTE_LOG(DEBUG, CRYPTODEV, "[%s] %s: " fmt "\n", \
94 dev, __func__, ## args)
97 #define CDEV_LOG_DEBUG(fmt, args...)
98 #define CDEV_PMD_TRACE(fmt, args...)
187 #define RTE_CRYPTODEV_END_OF_CAPABILITIES_LIST() \
188 { RTE_CRYPTO_OP_TYPE_UNDEFINED }
199 #define RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO (1ULL << 0)
201 #define RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO (1ULL << 1)
203 #define RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING (1ULL << 2)
205 #define RTE_CRYPTODEV_FF_CPU_SSE (1ULL << 3)
207 #define RTE_CRYPTODEV_FF_CPU_AVX (1ULL << 4)
209 #define RTE_CRYPTODEV_FF_CPU_AVX2 (1ULL << 5)
211 #define RTE_CRYPTODEV_FF_CPU_AESNI (1ULL << 6)
213 #define RTE_CRYPTODEV_FF_HW_ACCELERATED (1ULL << 7)
249 #define RTE_CRYPTODEV_DETACHED (0)
250 #define RTE_CRYPTODEV_ATTACHED (1)
290 #define RTE_CRYPTODEV_VDEV_DEFAULT_MAX_NB_QUEUE_PAIRS 8
291 #define RTE_CRYPTODEV_VDEV_DEFAULT_MAX_NB_SESSIONS 2048
297 struct rte_crypto_vdev_init_params {
298 unsigned max_nb_queue_pairs;
299 unsigned max_nb_sessions;
316 struct rte_crypto_vdev_init_params *params,
317 const char *input_args);
368 rte_cryptodev_socket_id(uint8_t dev_id);
591 struct rte_cryptodev_callback;
594 TAILQ_HEAD(rte_cryptodev_cb_list, rte_cryptodev_callback);
627 #define RTE_CRYPTODEV_NAME_MAX_LEN (64)
696 static inline uint16_t
739 static inline uint16_t