NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
txloop.h File Reference
#include "../dpdk/thread.h"
#include "face.h"

Go to the source code of this file.

Data Structures

struct  TxLoop
 TX loop thread. More...

Typedefs

typedef struct TxLoop TxLoop
 TX loop thread.

Functions

void TxLoop_TxFrames (Face *face, int txThread, struct rte_mbuf **frames, uint16_t count)
 Submit frames to face->impl->txBurst .
uint16_t TxLoop_Transfer_Linear (Face *face, int txThread)
 Move a burst of L3 packets from face->outputQueue to face->impl->txBurst .
uint16_t TxLoop_Transfer_Chained (Face *face, int txThread)
 Move a burst of L3 packets from face->outputQueue to face->impl->txBurst .
int TxLoop_Run (TxLoop *txl)

Typedef Documentation

◆ TxLoop

typedef struct TxLoop TxLoop

TX loop thread.

Function Documentation

◆ TxLoop_Run()

int TxLoop_Run ( TxLoop * txl)

◆ TxLoop_Transfer_Chained()

uint16_t TxLoop_Transfer_Chained ( Face * face,
int txThread )

Move a burst of L3 packets from face->outputQueue to face->impl->txBurst .

This is the default implementation of Face_TxLoopFunc for PacketTxAlign.linearize==false .

◆ TxLoop_Transfer_Linear()

uint16_t TxLoop_Transfer_Linear ( Face * face,
int txThread )

Move a burst of L3 packets from face->outputQueue to face->impl->txBurst .

This is the default implementation of Face_TxLoopFunc for PacketTxAlign.linearize==true .

◆ TxLoop_TxFrames()

void TxLoop_TxFrames ( Face * face,
int txThread,
struct rte_mbuf ** frames,
uint16_t count )

Submit frames to face->impl->txBurst .

Parameters
countmust be positive.