5 #ifndef _RTE_BBDEV_OP_H_ 6 #define _RTE_BBDEV_OP_H_ 29 #define RTE_BBDEV_C_SUBBLOCK (32) 31 #define RTE_BBDEV_MAX_TB_SIZE (391656) 33 #define RTE_BBDEV_MAX_CB_SIZE (6144) 35 #define RTE_BBDEV_MIN_CB_SIZE (40) 37 #define RTE_BBDEV_MAX_KW (18528) 44 #define RTE_BBDEV_MAX_CODE_BLOCKS (64) 109 RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP = (1ULL << 16)
125 RTE_BBDEV_TURBO_ENC_SCATTER_GATHER = (1ULL << 5)
129 struct rte_bbdev_op_data {
183 struct rte_bbdev_op_dec_cb_params {
251 struct rte_bbdev_op_turbo_dec {
253 struct rte_bbdev_op_data input;
257 struct rte_bbdev_op_data hard_output;
259 struct rte_bbdev_op_data soft_output;
282 uint8_t code_block_mode;
285 struct rte_bbdev_op_dec_cb_params cb_params;
291 struct rte_bbdev_op_enc_cb_params {
370 struct rte_bbdev_op_data output;
396 uint8_t num_buffers_soft_out;
400 struct rte_bbdev_op_cap_turbo_enc {
402 uint32_t capability_flags;
403 uint8_t num_buffers_src;
404 uint8_t num_buffers_dst;
418 RTE_BBDEV_DATA_ERROR,
437 struct rte_bbdev_op_turbo_dec turbo_dec;
441 struct rte_bbdev_op_cap {
445 struct rte_bbdev_op_cap_turbo_enc turbo_enc;
450 struct rte_bbdev_op_pool_private {
464 const char* __rte_experimental
489 unsigned int num_elements,
unsigned int cache_size,
506 static inline int __rte_experimental
510 struct rte_bbdev_op_pool_private *priv;
514 priv = (
struct rte_bbdev_op_pool_private *)
541 static inline int __rte_experimental
545 struct rte_bbdev_op_pool_private *priv;
549 priv = (
struct rte_bbdev_op_pool_private *)
572 static inline void __rte_experimental
589 static inline void __rte_experimental
static void __rte_experimental rte_bbdev_dec_op_free_bulk(struct rte_bbdev_dec_op **ops, unsigned int num_ops)
struct rte_bbdev_op_enc_cb_params cb_params
static __rte_always_inline void rte_mempool_put_bulk(struct rte_mempool *mp, void *const *obj_table, unsigned int n)
rte_bbdev_op_td_flag_bitmasks
uint32_t capability_flags
static void __rte_experimental rte_bbdev_enc_op_free_bulk(struct rte_bbdev_enc_op **ops, unsigned int num_ops)
struct rte_mempool * mempool
static __rte_always_inline int rte_mempool_get_bulk(struct rte_mempool *mp, void **obj_table, unsigned int n)
rte_bbdev_op_te_flag_bitmasks
const char *__rte_experimental rte_bbdev_op_type_str(enum rte_bbdev_op_type op_type)
struct rte_mempool * mempool
static int __rte_experimental rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, struct rte_bbdev_enc_op **ops, uint16_t num_ops)
struct rte_mempool *__rte_experimental rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type, unsigned int num_elements, unsigned int cache_size, int socket_id)
static int __rte_experimental rte_bbdev_dec_op_alloc_bulk(struct rte_mempool *mempool, struct rte_bbdev_dec_op **ops, uint16_t num_ops)
uint8_t num_buffers_hard_out
static void * rte_mempool_get_priv(struct rte_mempool *mp)
char name[RTE_MEMZONE_NAMESIZE]
struct rte_bbdev_op_data input