NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Fields
PacketTxAlign Struct Reference

mbuf alignment requirements for encoding or packet modification. More...

#include <common.h>

Data Fields

uint16_t fragmentPayloadSize
 Max payload size per fragment. More...
 
bool linearize
 Whether packet must be linearized into contiguous mbufs. More...
 

Detailed Description

mbuf alignment requirements for encoding or packet modification.

If linearize is set to true, encoders should output direct mbufs, copying payload when necessary. Each mbuf should have at least RTE_PKTMBUF_HEADROOM+LpHeaderHeadroom headroom and its data_len cannot exceed fragmentPayloadSize . FaceTx will prepend NDNLPv2 headers to each mbuf and transmit it as a NDNLPv2 fragment.

If linearize is set to false, encoders may use a mix of direct and indirect mbufs with arbitrary boundaries. FaceTx will perform fragmentation as needed. fragmentPayloadSize is ignored.

Field Documentation

◆ fragmentPayloadSize

uint16_t PacketTxAlign::fragmentPayloadSize

Max payload size per fragment.

◆ linearize

bool PacketTxAlign::linearize

Whether packet must be linearized into contiguous mbufs.


The documentation for this struct was generated from the following file: