33 #ifndef _RTE_MBUF_OFFLOAD_H_
34 #define _RTE_MBUF_OFFLOAD_H_
89 struct rte_pktmbuf_offload_pool_private {
90 uint16_t offload_priv_size;
113 unsigned cache_size, uint16_t priv_size,
int socket_id);
124 static inline uint16_t
127 struct rte_pktmbuf_offload_pool_private *priv =
130 return priv->offload_priv_size;
149 for (ol = m->offload_ops; ol != NULL; ol = ol->
next)
150 if (ol->
type == type)
172 for (ol_last = &m->offload_ops; ol_last[0] != NULL;
173 ol_last = &ol_last[0]->
next)
179 ol_last[0]->
next = NULL;
242 if (ol != NULL && ol->
mp != NULL)
263 if (
likely(priv_size >= size))
264 return (
void *)(ol + 1);
289 if (priv_data == NULL)
296 xform = xform->
next = --nb_xforms > 0 ? xform + 1 : NULL;
enum rte_mbuf_ol_op_type type
static int rte_mempool_get(struct rte_mempool *mp, void **obj_p)
static struct rte_crypto_xform * rte_pktmbuf_offload_alloc_crypto_xforms(struct rte_mbuf_offload *ol, unsigned nb_xforms)
static struct rte_mbuf_offload * rte_pktmbuf_offload_get(struct rte_mbuf *m, enum rte_mbuf_ol_op_type type)
static struct rte_mbuf_offload * __rte_pktmbuf_offload_raw_alloc(struct rte_mempool *mp)
struct rte_mempool * rte_pktmbuf_offload_pool_create(const char *name, unsigned size, unsigned cache_size, uint16_t priv_size, int socket_id)
char name[RTE_MEMPOOL_NAMESIZE]
struct rte_mbuf_offload * next
static void __rte_pktmbuf_offload_reset(struct rte_mbuf_offload *ol, enum rte_mbuf_ol_op_type type)
static void * __rte_pktmbuf_offload_check_priv_data_size(struct rte_mbuf_offload *ol, uint16_t size)
struct rte_crypto_op crypto
static void rte_pktmbuf_offload_free(struct rte_mbuf_offload *ol)
static struct rte_mbuf_offload * rte_pktmbuf_offload_attach(struct rte_mbuf *m, struct rte_mbuf_offload *ol)
static uint16_t __rte_pktmbuf_offload_priv_size(struct rte_mempool *mpool)
static void __rte_crypto_op_reset(struct rte_crypto_op *op)
struct rte_crypto_xform * xform
static void * rte_mempool_get_priv(struct rte_mempool *mp)
static void rte_mempool_put(struct rte_mempool *mp, void *obj)
static struct rte_mbuf_offload * rte_pktmbuf_offload_alloc(struct rte_mempool *mpool, enum rte_mbuf_ol_op_type type)