NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
pcc-entry.h File Reference
#include "../vendor/uthash-handle.h"
#include "cs-entry.h"
#include "pcc-key.h"
#include "pit-entry.h"

Go to the source code of this file.

Data Structures

union  PccSlot
 PCC entry slot. More...
struct  PccEntryExt
 PCC entry extension. More...
struct  PccEntry
 PIT-CS composite entry. More...

Typedefs

typedef struct PccEntry PccEntry
typedef union PccSlot PccSlot
 PCC entry slot.
typedef enum __rte_packed_begin PccSlotIndex PccSlotIndex
 Identify a PCC entry slot.
typedef struct PccEntryExt PccEntryExt
 PCC entry extension.

Enumerations

enum  { PccTokenSize = 6 , PccTokenBits = PccTokenSize * CHAR_BIT , PccTokenMask = ((uint64_t)1 << PccTokenBits) - 1 }

Functions

PccSlotIndex PccEntry_AllocateSlot_ (PccEntry *entry, PccSlot **slot)
PccSlotIndex PccEntry_ClearSlot_ (PccEntry *entry, PccSlotIndex slot)

Variables

 PCC_SLOT_NONE = 0
 PCC_SLOT1 = 1
 PCC_SLOT2 = 2
 PCC_SLOT3 = 3

Typedef Documentation

◆ PccEntry

typedef struct PccEntry PccEntry

◆ PccEntryExt

typedef struct PccEntryExt PccEntryExt

PCC entry extension.

It adds slot2 and slot3 to a PCC entry.

◆ PccSlot

typedef union PccSlot PccSlot

PCC entry slot.

Each slot has room for either a PIT entry or a CS entry.

◆ PccSlotIndex

enum __rte_packed_begin PccSlotIndex

Identify a PCC entry slot.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PccTokenSize 
PccTokenBits 
PccTokenMask 

Function Documentation

◆ PccEntry_AllocateSlot_()

PccSlotIndex PccEntry_AllocateSlot_ ( PccEntry * entry,
PccSlot ** slot )

◆ PccEntry_ClearSlot_()

PccSlotIndex PccEntry_ClearSlot_ ( PccEntry * entry,
PccSlotIndex slot )

Variable Documentation

◆ PCC_SLOT1

PCC_SLOT1 = 1

◆ PCC_SLOT2

PCC_SLOT2 = 2

◆ PCC_SLOT3

PCC_SLOT3 = 3

◆ PCC_SLOT_NONE

PCC_SLOT_NONE = 0