NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
logic.c File Reference
#include "logic.h"
#include "../core/logger.h"

Functions

 N_LOG_INIT (FetchLogic)
 
size_t FetchLogic_TxInterestBurst (FetchLogic *fl, uint64_t *segNums, size_t limit, TscTime now)
 Request to transmit a burst of Interests. More...
 
void FetchLogic_RxDataBurst (FetchLogic *fl, const FetchLogicRxData *pkts, size_t count, TscTime now)
 Notify Data arrival. More...
 
void FetchLogic_Init (FetchLogic *fl, uint32_t winCapacity, int numaSocket)
 
void FetchLogic_Free (FetchLogic *fl)
 
void FetchLogic_Reset (FetchLogic *fl, uint64_t segmentBegin, uint64_t segmentEnd)
 

Function Documentation

◆ FetchLogic_Free()

void FetchLogic_Free ( FetchLogic fl)

◆ FetchLogic_Init()

void FetchLogic_Init ( FetchLogic fl,
uint32_t  winCapacity,
int  numaSocket 
)

◆ FetchLogic_Reset()

void FetchLogic_Reset ( FetchLogic fl,
uint64_t  segmentBegin,
uint64_t  segmentEnd 
)

◆ FetchLogic_RxDataBurst()

void FetchLogic_RxDataBurst ( FetchLogic fl,
const FetchLogicRxData pkts,
size_t  count,
TscTime  now 
)

Notify Data arrival.

Parameters
pktsfields extracted from arrived Data.
countsize of pkts array.

◆ FetchLogic_TxInterestBurst()

size_t FetchLogic_TxInterestBurst ( FetchLogic fl,
uint64_t *  segNums,
size_t  limit,
TscTime  now 
)

Request to transmit a burst of Interests.

Parameters
[out]segNumssegment numbers to retrieve.
limitsize of segNums array.

◆ N_LOG_INIT()

N_LOG_INIT ( FetchLogic  )