aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/hicn.h
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin/src/hicn.h')
-rwxr-xr-xhicn-plugin/src/hicn.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/hicn-plugin/src/hicn.h b/hicn-plugin/src/hicn.h
index 02a3dfa52..c0de65de4 100755
--- a/hicn-plugin/src/hicn.h
+++ b/hicn-plugin/src/hicn.h
@@ -42,6 +42,12 @@ typedef u8 weight_t;
#define VLIB_BUFFER_MIN_CHAIN_SEG_SIZE (128)
#endif
+#define HICN_BUFFER_FLAGS_DEFAULT 0x00
+#define HICN_BUFFER_FLAGS_FACE_IS_APP 0x01
+/* vlib_buffer cloning utilities impose that current_lentgh is more that 2*CLIB_CACHE_LINE_BYTES. */
+/* This flag is used to mark packets whose lenght is less that 2*CLIB_CACHE_LINE_BYTES. */
+#define HICN_BUFFER_FLAGS_PKT_LESS_TWO_CL 0x02
+
/* The following is stored in the opaque2 field in the vlib_buffer_t */
typedef struct
{
@@ -54,8 +60,7 @@ typedef struct
u8 hash_entry_id;
u8 hash_bucket_flags;
- u8 is_appface; /* 1 the incoming face is an
- * application face, 0 otherwise */
+ u8 flags;
u8 dpo_ctx_id; /* used for data path */
u8 vft_id; /* " */