NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
window.h File Reference
#include "../core/mintmr.h"

Go to the source code of this file.

Data Structures

struct  FetchSeg
 Per-segment state. More...
struct  FetchWindow
 Window of segment states. More...

Typedefs

typedef struct __rte_packed_begin FetchSeg FetchSeg
 Per-segment state.
typedef struct FetchWindow FetchWindow
 Window of segment states.

Enumerations

enum  { FetchSegTxTimeBits = 56 , FetchSegTxTimeMask = ((uint64_t)1 << FetchSegTxTimeBits) - 1 }

Functions

void FetchWindow_Init (FetchWindow *win, uint32_t capacity, int numaSocket)
 Initialize FetchWindow.
void FetchWindow_Free (FetchWindow *win)
 Deallocated memory.
void FetchWindow_Reset (FetchWindow *win, uint64_t firstSegNum)
 Delete all records and set first segment number.
void FetchWindow_Advance_ (FetchWindow *win)
 Move loPos and loSegNum after some segment states have been deleted.

Typedef Documentation

◆ FetchSeg

typedef struct __rte_packed_begin FetchSeg FetchSeg

Per-segment state.

◆ FetchWindow

typedef struct FetchWindow FetchWindow

Window of segment states.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FetchSegTxTimeBits 
FetchSegTxTimeMask 

Function Documentation

◆ FetchWindow_Advance_()

void FetchWindow_Advance_ ( FetchWindow * win)

Move loPos and loSegNum after some segment states have been deleted.

◆ FetchWindow_Free()

void FetchWindow_Free ( FetchWindow * win)

Deallocated memory.

◆ FetchWindow_Init()

void FetchWindow_Init ( FetchWindow * win,
uint32_t capacity,
int numaSocket )

Initialize FetchWindow.

Parameters
capacitymaximum distance between lower and upper bounds of segment numbers.

◆ FetchWindow_Reset()

void FetchWindow_Reset ( FetchWindow * win,
uint64_t firstSegNum )

Delete all records and set first segment number.