NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Enumerations | Functions
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 FetchSeg FetchSeg
 Per-segment state. More...
 
typedef struct FetchWindow FetchWindow
 Window of segment states. More...
 

Enumerations

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

Functions

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

Typedef Documentation

◆ FetchSeg

typedef struct 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.