DPDK
2.2.0
|
Go to the source code of this file.
Data Structures | |
struct | rte_mbuf_offload |
Enumerations | |
enum | rte_mbuf_ol_op_type { RTE_PKTMBUF_OL_NOT_SPECIFIED = 0, RTE_PKTMBUF_OL_CRYPTO } |
RTE mbuf offload
The rte_mbuf_offload library provides the ability to specify a device generic off-load operation independent of the current Rx/Tx Ethernet offloads supported within the rte_mbuf structure, and add supports for multiple off-load operations and offload device types.
The rte_mbuf_offload specifies the particular off-load operation type, such as a crypto operation, and provides a container for the operations parameter's inside the op union. These parameters are then used by the device which supports that operation to perform the specified offload.
This library provides an API to create pre-allocated mempool of offload operations, with supporting allocate and free functions. It also provides APIs for attaching an offload to a mbuf, as well as an API to retrieve a specified offload type from an mbuf offload chain.
Definition in file rte_mbuf_offload.h.
enum rte_mbuf_ol_op_type |
packet mbuf offload operation types
RTE_PKTMBUF_OL_NOT_SPECIFIED |
Off-load not specified |
RTE_PKTMBUF_OL_CRYPTO |
Crypto offload operation |
Definition at line 64 of file rte_mbuf_offload.h.
|
read |
Creates a mempool of rte_mbuf_offload objects
EXPERIMENTAL: this API file may change without prior notice
name | mempool name |
size | number of objects in mempool |
cache_size | cache size of objects for each core |
priv_size | size of private data to be allocated with each rte_mbuf_offload object |
socket_id | Socket on which to allocate mempool objects |
|
inlinestatic |
Returns private data size allocated with each rte_mbuf_offload object by the mempool
mpool | rte_mbuf_offload mempool |
Definition at line 125 of file rte_mbuf_offload.h.
|
staticread |
Get specified off-load operation type from mbuf.
m | packet mbuf. |
type | offload operation type requested. |
Definition at line 145 of file rte_mbuf_offload.h.
|
staticread |
Attach a rte_mbuf_offload to a mbuf. We only support a single offload of any one type in our chain of offloads.
m | packet mbuf. |
ol | rte_mbuf_offload strucutre to be attached |
Definition at line 168 of file rte_mbuf_offload.h.
|
inlinestatic |
Rearms rte_mbuf_offload default parameters
Definition at line 187 of file rte_mbuf_offload.h.
|
staticread |
Allocate rte_mbuf_offload from mempool
Definition at line 203 of file rte_mbuf_offload.h.
|
staticread |
Allocate a rte_mbuf_offload with a specified operation type from rte_mbuf_offload mempool
mpool | rte_mbuf_offload mempool |
type | offload operation type |
Definition at line 225 of file rte_mbuf_offload.h.
|
inlinestatic |
free rte_mbuf_offload structure
Definition at line 240 of file rte_mbuf_offload.h.
|
inlinestatic |
Checks if the private data of a rte_mbuf_offload has enough capacity for requested size
Definition at line 255 of file rte_mbuf_offload.h.
|
staticread |
Allocate space for crypto xforms in the private data space of the rte_mbuf_offload. This also defaults the crypto xform type and configures the chaining of the xform in the crypto operation
Definition at line 279 of file rte_mbuf_offload.h.