18 #include <rte_compat.h> 28 #define RTE_COMP_FF_STATEFUL_COMPRESSION (1ULL << 0) 30 #define RTE_COMP_FF_STATEFUL_DECOMPRESSION (1ULL << 1) 32 #define RTE_COMP_FF_OOP_SGL_IN_SGL_OUT (1ULL << 2) 36 #define RTE_COMP_FF_OOP_SGL_IN_LB_OUT (1ULL << 3) 41 #define RTE_COMP_FF_OOP_LB_IN_SGL_OUT (1ULL << 4) 45 #define RTE_COMP_FF_ADLER32_CHECKSUM (1ULL << 5) 47 #define RTE_COMP_FF_CRC32_CHECKSUM (1ULL << 6) 49 #define RTE_COMP_FF_CRC32_ADLER32_CHECKSUM (1ULL << 7) 51 #define RTE_COMP_FF_MULTI_PKT_CHECKSUM (1ULL << 8) 53 #define RTE_COMP_FF_SHA1_HASH (1ULL << 9) 55 #define RTE_COMP_FF_SHA2_SHA256_HASH (1ULL << 10) 57 #define RTE_COMP_FF_NONCOMPRESSED_BLOCKS (1ULL << 11) 59 #define RTE_COMP_FF_SHAREABLE_PRIV_XFORM (1ULL << 12) 65 #define RTE_COMP_FF_HUFFMAN_FIXED (1ULL << 13) 67 #define RTE_COMP_FF_HUFFMAN_DYNAMIC (1ULL << 14) 69 #define RTE_COMP_FF_XXHASH32_CHECKSUM (1ULL << 15) 71 #define RTE_COMP_FF_LZ4_DICT_ID (1ULL << 16) 73 #define RTE_COMP_FF_LZ4_CONTENT_WITH_CHECKSUM (1ULL << 17) 75 #define RTE_COMP_FF_LZ4_CONTENT_SIZE (1ULL << 18) 77 #define RTE_COMP_FF_LZ4_BLOCK_INDEPENDENCE (1ULL << 19) 79 #define RTE_COMP_FF_LZ4_BLOCK_WITH_CHECKSUM (1ULL << 20) 108 RTE_COMP_ALGO_UNSPECIFIED = 0,
144 #define RTE_COMP_LEVEL_PMD_DEFAULT (-1) 146 #define RTE_COMP_LEVEL_NONE (0) 148 #define RTE_COMP_LEVEL_MIN (1) 150 #define RTE_COMP_LEVEL_MAX (9) 238 #define RTE_COMP_LZ4_FLAG_DICT_ID (1 << 0) 245 #define RTE_COMP_LZ4_FLAG_CONTENT_CHECKSUM (1 << 2) 253 #define RTE_COMP_LZ4_FLAG_CONTENT_SIZE (1 << 3) 263 #define RTE_COMP_LZ4_FLAG_BLOCK_CHECKSUM (1 << 4) 274 #define RTE_COMP_LZ4_FLAG_BLOCK_INDEPENDENCE (1 << 5) 505 unsigned int nb_elts,
unsigned int cache_size,
struct rte_mempool * mempool
__rte_experimental struct rte_mempool * rte_comp_op_pool_create(const char *name, unsigned int nb_elts, unsigned int cache_size, uint16_t user_size, int socket_id)
char name[RTE_MEMPOOL_NAMESIZE]
__rte_experimental struct rte_comp_op * rte_comp_op_alloc(struct rte_mempool *mempool)
__rte_experimental void rte_comp_op_bulk_free(struct rte_comp_op **ops, uint16_t nb_ops)
enum rte_comp_huffman huffman
__rte_experimental const char * rte_comp_get_feature_name(uint64_t flag)
#define __rte_cache_aligned
__rte_experimental void rte_comp_op_free(struct rte_comp_op *op)
__rte_experimental int rte_comp_op_bulk_alloc(struct rte_mempool *mempool, struct rte_comp_op **ops, uint16_t nb_ops)