|
NDN-DPDK
High-Speed Named Data Networking Forwarder
|
#include "mbuf.h"Functions | |
| bool | Mbuf_RegisterDynFields () |
| Register mbuf dynfields. More... | |
| int | Mbuf_AsIovec (struct rte_mbuf *m, struct iovec *iov, uint32_t offset, uint32_t length) |
Gather segments of m as iovec. More... | |
| struct rte_mbuf * | Mbuf_AllocRoom (struct rte_mempool *mp, struct iovec *iov, int *iovcnt, uint16_t firstHeadroom, uint16_t firstDataLen, uint16_t eachHeadroom, uint16_t eachDataLen, uint32_t pktLen) |
| Allocate room within chained mbufs. More... | |
| void | Mbuf_RemainingIovec (struct spdk_iov_xfer ix, struct iovec *iov, int *iovcnt) |
Recover remaining iovecs after spdk_iov_xfer_* operations. More... | |
Variables | |
| int | Mbuf_Timestamp_DynFieldOffset_ = -1 |
| struct rte_mbuf* Mbuf_AllocRoom | ( | struct rte_mempool * | mp, |
| struct iovec * | iov, | ||
| int * | iovcnt, | ||
| uint16_t | firstHeadroom, | ||
| uint16_t | firstDataLen, | ||
| uint16_t | eachHeadroom, | ||
| uint16_t | eachDataLen, | ||
| uint32_t | pktLen | ||
| ) |
Allocate room within chained mbufs.
| mp | mempool to create mbufs. | |
| [out] | iov | room iov, must be filled/zeroed by caller. |
| [in,out] | iovcnt | iov capacity; room iov count. |
| firstHeadroom | headroom in first mbuf. | |
| firstDataLen | data length in first mbuf, defaults to maximum available. | |
| eachHeadroom | headroom in subsequent mbuf. | |
| eachDataLen | data length in subsequent mbuf, defaults to maximum available. | |
| pktLen | total packet length i.e. size of room. |
rte_errno=E2BIG if either firstHeadroom+firstDataLen or eachHeadroom+eachDataLen exceeds mp dataroom. rte_errno=EFBIG if number of segments would exceed *iovcnt . | int Mbuf_AsIovec | ( | struct rte_mbuf * | m, |
| struct iovec * | iov, | ||
| uint32_t | offset, | ||
| uint32_t | length | ||
| ) |
Gather segments of m as iovec.
| [out] | iov | must have m->nb_segs room. |
| bool Mbuf_RegisterDynFields | ( | ) |
Register mbuf dynfields.
| void Mbuf_RemainingIovec | ( | struct spdk_iov_xfer | ix, |
| struct iovec * | iov, | ||
| int * | iovcnt | ||
| ) |
Recover remaining iovecs after spdk_iov_xfer_* operations.
| ix | initialized io_xfer instance. | |
| [out] | iov | remaining iov, must have capacity as spdk_iov_xfer_init iovcnt. |
| [out] | iovcnt | remaining iov count. |
| int Mbuf_Timestamp_DynFieldOffset_ = -1 |