DPDK
19.08.0-rc0
|
#include <stdint.h>
#include <rte_common.h>
#include <rte_mbuf.h>
#include <rte_memory.h>
#include <rte_mempool.h>
Go to the source code of this file.
Data Structures | |
struct | rte_bbdev_op_dec_tb_params |
struct | rte_bbdev_op_enc_tb_params |
struct | rte_bbdev_op_turbo_enc |
struct | rte_bbdev_op_cap_turbo_dec |
struct | rte_bbdev_enc_op |
struct | rte_bbdev_dec_op |
Functions | |
const char *__rte_experimental | rte_bbdev_op_type_str (enum rte_bbdev_op_type op_type) |
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_enc_op_alloc_bulk (struct rte_mempool *mempool, struct rte_bbdev_enc_op **ops, uint16_t num_ops) |
static int __rte_experimental | rte_bbdev_dec_op_alloc_bulk (struct rte_mempool *mempool, struct rte_bbdev_dec_op **ops, uint16_t num_ops) |
static void __rte_experimental | rte_bbdev_dec_op_free_bulk (struct rte_bbdev_dec_op **ops, unsigned int num_ops) |
static void __rte_experimental | rte_bbdev_enc_op_free_bulk (struct rte_bbdev_enc_op **ops, unsigned int num_ops) |
Defines wireless base band layer 1 operations and capabilities
Definition in file rte_bbdev_op.h.
Flags for turbo decoder operation and capability structure
Definition at line 47 of file rte_bbdev_op.h.
Flags for turbo encoder operation and capability structure
Definition at line 113 of file rte_bbdev_op.h.
enum rte_bbdev_op_type |
Different operation types supported by the device
Enumerator | |
---|---|
RTE_BBDEV_OP_NONE | Dummy operation that does nothing |
RTE_BBDEV_OP_TURBO_DEC | Turbo decode |
RTE_BBDEV_OP_TURBO_ENC | Turbo encode |
RTE_BBDEV_OP_TYPE_COUNT | Count of different op types |
Definition at line 408 of file rte_bbdev_op.h.
const char* __rte_experimental rte_bbdev_op_type_str | ( | enum rte_bbdev_op_type | op_type | ) |
Converts queue operation type from enum to string
op_type | Operation type as enum |
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 | ||
) |
Creates a bbdev operation mempool
name | Pool name. |
type | Operation type, use RTE_BBDEV_OP_NONE for a pool which supports all operation types. |
num_elements | Number of elements in the pool. |
cache_size | Number of elements to cache on an lcore, see rte_mempool_create() for further details about cache size. |
socket_id | Socket to allocate memory on. |
|
inlinestatic |
Bulk allocate encode operations from a mempool with parameter defaults reset.
mempool | Operation mempool, created by rte_bbdev_op_pool_create(). |
ops | Output array to place allocated operations |
num_ops | Number of operations to allocate |
Definition at line 507 of file rte_bbdev_op.h.
|
inlinestatic |
Bulk allocate decode operations from a mempool with parameter defaults reset.
mempool | Operation mempool, created by rte_bbdev_op_pool_create(). |
ops | Output array to place allocated operations |
num_ops | Number of operations to allocate |
Definition at line 542 of file rte_bbdev_op.h.
|
inlinestatic |
Free decode operation structures that were allocated by rte_bbdev_dec_op_alloc_bulk(). All structures must belong to the same mempool.
ops | Operation structures |
num_ops | Number of structures |
Definition at line 573 of file rte_bbdev_op.h.
|
inlinestatic |
Free encode operation structures that were allocated by rte_bbdev_enc_op_alloc_bulk(). All structures must belong to the same mempool.
ops | Operation structures |
num_ops | Number of structures |
Definition at line 590 of file rte_bbdev_op.h.