NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pit.h
Go to the documentation of this file.
1 #ifndef NDNDPDK_STRATEGYAPI_PIT_H
2 #define NDNDPDK_STRATEGYAPI_PIT_H
3 
6 #include "../pcct/pit-const.h"
7 #include "common.h"
8 
9 typedef struct SgPitDn {
11  char a_[4];
13 } __rte_cache_aligned SgPitDn;
14 
15 typedef struct SgPitUp {
16  char a_[4];
18  char b_[1];
19  uint8_t nack;
20 
23  uint16_t nTx;
24 } __rte_cache_aligned SgPitUp;
25 
26 typedef struct SgPitEntryExt SgPitEntryExt;
27 
28 typedef struct SgPitEntry {
29  uint8_t a_[56];
33  uint64_t scratch[PitScratchSize / 8];
35 
36 struct SgPitEntryExt {
40 };
41 
42 #endif // NDNDPDK_STRATEGYAPI_PIT_H
uint16_t FaceID
Numeric face identifier.
Definition: faceid.h:13
@ PitMaxExtUps
Definition: pit-const.h:10
@ PitMaxExtDns
Definition: pit-const.h:9
@ PitMaxUps
Definition: pit-const.h:8
@ PitScratchSize
Definition: pit-const.h:11
@ PitMaxDns
Definition: pit-const.h:7
struct SgPitUp SgPitUp
struct SgPitEntry SgPitEntry
struct SgPitDn SgPitDn
Definition: pit.h:9
TscTime expiry
Definition: pit.h:10
char a_[4]
Definition: pit.h:11
FaceID face
Definition: pit.h:12
Definition: pit.h:36
SgPitUp ups[PitMaxExtUps]
Definition: pit.h:38
SgPitDn dns[PitMaxExtDns]
Definition: pit.h:37
SgPitEntryExt * next
Definition: pit.h:39
Definition: pit.h:28
SgPitUp ups[PitMaxUps]
Definition: pit.h:32
uint64_t scratch[PitScratchSize/8]
Definition: pit.h:33
uint8_t a_[56]
Definition: pit.h:29
SgPitEntryExt * ext
Definition: pit.h:30
SgPitDn dns[PitMaxDns]
Definition: pit.h:31
Definition: pit.h:15
char b_[1]
Definition: pit.h:18
uint16_t nTx
Definition: pit.h:23
char a_[4]
Definition: pit.h:16
FaceID face
Definition: pit.h:17
uint8_t nack
Definition: pit.h:19
TscTime lastTx
Definition: pit.h:21
TscDuration suppress
Definition: pit.h:22
int64_t TscDuration
Duration in TscTime unit.
Definition: tsc.h:12
uint64_t TscTime
TSC clock time point.
Definition: tsc.h:9