Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Classes | Macros | Typedefs | Functions | Variables
face_db.h File Reference
#include <vnet/dpo/dpo.h>
#include "faces/face.h"
Include dependency graph for face_db.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hicn_face_bucket_s
 

Macros

#define HICN_FACE_DB_INLINE_FACES   8
 
#define HICN_PIT_BITMAP_SIZE_BYTE   HICN_PARAM_FACES_MAX / 8
 
#define HICN_PIT_N_HOP_BITMAP_SIZE   HICN_PARAM_FACES_MAX
 
#define HICN_PIT_N_HOP_BUCKET   (HICN_PARAM_PIT_ENTRY_PHOPS_MAX - HICN_FACE_DB_INLINE_FACES)
 

Typedefs

typedef struct hicn_face_bucket_s hicn_face_bucket_t
 

Functions

struct __attribute__ ((packed)) hicn_face_db_s
 
always_inline hicn_face_id_t hicn_face_db_get_dpo_face (u32 index, hicn_face_db_t *face_db)
 
always_inline void hicn_face_db_init (int max_element)
 
always_inline hicn_face_bucket_thicn_face_db_get_bucket (u32 bucket_index)
 
always_inline void hicn_face_db_add_face (hicn_face_id_t face_id, hicn_face_db_t *face_db)
 
always_inline u8 hicn_face_search (hicn_face_id_t index, hicn_face_db_t *face_db)
 
always_inline void hicn_faces_flush (hicn_face_db_t *face_db)
 

Variables

hicn_face_bucket_thicn_face_bucket_pool
 
 hicn_face_db_t
 

Detailed Description

Define a face db that is store in every pit entry. A face db containes a list of incoming faces for interest packets that are used to forward data packets on the interests' reverse path