NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
face-impl.h File Reference
#include "face.h"

Go to the source code of this file.

Typedefs

typedef uint16_t(* FaceTx_OutputFunc) (Face *face, int txThread, Packet *npkt, struct rte_mbuf *frames[LpMaxFragments])
 Process an outgoing L3 packet. More...
 

Functions

void FaceRx_Input (Face *face, int rxThread, FaceRxInputCtx *ctx)
 Process a burst of received L2 frames. More...
 
uint16_t FaceTx_LinearOne (Face *face, int txThread, Packet *npkt, struct rte_mbuf *frames[LpMaxFragments])
 FaceTx_OutputFunc for PacketTxAlign.linearize==true with single-segment packet. More...
 
uint16_t FaceTx_ChainedOne (Face *face, int txThread, Packet *npkt, struct rte_mbuf *frames[LpMaxFragments])
 FaceTx_OutputFunc for PacketTxAlign.linearize==false with single-segment packet. More...
 
uint16_t FaceTx_LinearFrag (Face *face, int txThread, Packet *npkt, struct rte_mbuf *frames[LpMaxFragments])
 FaceTx_OutputFunc for PacketTxAlign.linearize==true with multi-segment packet. More...
 
uint16_t FaceTx_ChainedFrag (Face *face, int txThread, Packet *npkt, struct rte_mbuf *frames[LpMaxFragments])
 FaceTx_OutputFunc for PacketTxAlign.linearize==false with multi-segment packet. More...
 

Typedef Documentation

◆ FaceTx_OutputFunc

typedef uint16_t(* FaceTx_OutputFunc) (Face *face, int txThread, Packet *npkt, struct rte_mbuf *frames[LpMaxFragments])

Process an outgoing L3 packet.

Parameters
npktoutgoing L3 packet; face takes ownership.
[out]framesL2 frames to be transmitted; face releases ownership.
Returns
number of L2 frames to be transmitted.

Function Documentation

◆ FaceRx_Input()

void FaceRx_Input ( Face face,
int  rxThread,
FaceRxInputCtx ctx 
)

Process a burst of received L2 frames.

See also
Face_RxInputFunc

◆ FaceTx_ChainedFrag()

uint16_t FaceTx_ChainedFrag ( Face face,
int  txThread,
Packet npkt,
struct rte_mbuf *  frames[LpMaxFragments] 
)

FaceTx_OutputFunc for PacketTxAlign.linearize==false with multi-segment packet.

◆ FaceTx_ChainedOne()

uint16_t FaceTx_ChainedOne ( Face face,
int  txThread,
Packet npkt,
struct rte_mbuf *  frames[LpMaxFragments] 
)

FaceTx_OutputFunc for PacketTxAlign.linearize==false with single-segment packet.

◆ FaceTx_LinearFrag()

uint16_t FaceTx_LinearFrag ( Face face,
int  txThread,
Packet npkt,
struct rte_mbuf *  frames[LpMaxFragments] 
)

FaceTx_OutputFunc for PacketTxAlign.linearize==true with multi-segment packet.

◆ FaceTx_LinearOne()

uint16_t FaceTx_LinearOne ( Face face,
int  txThread,
Packet npkt,
struct rte_mbuf *  frames[LpMaxFragments] 
)

FaceTx_OutputFunc for PacketTxAlign.linearize==true with single-segment packet.