Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ipsec4-output: add pkt header and data prefetching
[vpp.git]
/
src
/
vnet
/
fib
/
fib_entry.h
diff --git
a/src/vnet/fib/fib_entry.h
b/src/vnet/fib/fib_entry.h
index
950f0dc
..
8ede39c
100644
(file)
--- a/
src/vnet/fib/fib_entry.h
+++ b/
src/vnet/fib/fib_entry.h
@@
-64,6
+64,10
@@
typedef enum fib_source_t_ {
* From the BIER subsystem
*/
FIB_SOURCE_BIER,
* From the BIER subsystem
*/
FIB_SOURCE_BIER,
+ /**
+ * From 6RD.
+ */
+ FIB_SOURCE_6RD,
/**
* From the control plane API
*/
/**
* From the control plane API
*/
@@
-157,6
+161,7
@@
STATIC_ASSERT (sizeof(fib_source_t) == 1,
[FIB_SOURCE_INTERFACE] = "interface", \
[FIB_SOURCE_PROXY] = "proxy", \
[FIB_SOURCE_BIER] = "BIER", \
[FIB_SOURCE_INTERFACE] = "interface", \
[FIB_SOURCE_PROXY] = "proxy", \
[FIB_SOURCE_BIER] = "BIER", \
+ [FIB_SOURCE_6RD] = "6RD", \
[FIB_SOURCE_API] = "API", \
[FIB_SOURCE_CLI] = "CLI", \
[FIB_SOURCE_ADJ] = "adjacency", \
[FIB_SOURCE_API] = "API", \
[FIB_SOURCE_CLI] = "CLI", \
[FIB_SOURCE_ADJ] = "adjacency", \
@@
-281,6
+286,8
@@
typedef enum fib_entry_flag_t_ {
FIB_ENTRY_FLAG_INTERPOSE = (1 << FIB_ENTRY_ATTRIBUTE_INTERPOSE),
} __attribute__((packed)) fib_entry_flag_t;
FIB_ENTRY_FLAG_INTERPOSE = (1 << FIB_ENTRY_ATTRIBUTE_INTERPOSE),
} __attribute__((packed)) fib_entry_flag_t;
+extern u8 * format_fib_entry_flags(u8 *s, va_list *args);
+
/**
* Flags for the source data
*/
/**
* Flags for the source data
*/
@@
-332,6
+339,8
@@
typedef enum fib_entry_src_flag_t_ {
FIB_ENTRY_SRC_FLAG_INHERITED = (1 << FIB_ENTRY_SRC_ATTRIBUTE_INHERITED),
} __attribute__ ((packed)) fib_entry_src_flag_t;
FIB_ENTRY_SRC_FLAG_INHERITED = (1 << FIB_ENTRY_SRC_ATTRIBUTE_INHERITED),
} __attribute__ ((packed)) fib_entry_src_flag_t;
+extern u8 * format_fib_entry_src_flags(u8 *s, va_list *args);
+
/*
* Keep the size of the flags field to 2 bytes, so it
* can be placed next to the 2 bytes reference count
/*
* Keep the size of the flags field to 2 bytes, so it
* can be placed next to the 2 bytes reference count
@@
-618,6
+627,8
@@
extern void fib_entry_set_flow_hash_config(fib_node_index_t fib_entry_index,
extern void fib_entry_module_init(void);
extern void fib_entry_module_init(void);
+extern u32 fib_entry_get_stats_index(fib_node_index_t fib_entry_index);
+
/*
* unsafe... beware the raw pointer.
*/
/*
* unsafe... beware the raw pointer.
*/