Go to the source code of this file.
|
static index_t | replicate_get_index (const replicate_t *rep) |
|
static dpo_id_t * | replicate_get_buckets (replicate_t *rep) |
|
static replicate_t * | replicate_alloc_i (void) |
|
static u8 * | replicate_format (index_t repi, replicate_format_flags_t flags, u32 indent, u8 *s) |
|
u8 * | format_replicate (u8 *s, va_list *args) |
|
static u8 * | format_replicate_dpo (u8 *s, va_list *args) |
|
static replicate_t * | replicate_create_i (u32 num_buckets, dpo_proto_t rep_proto) |
|
index_t | replicate_create (u32 n_buckets, dpo_proto_t rep_proto) |
|
static void | replicate_set_bucket_i (replicate_t *rep, u32 bucket, dpo_id_t *buckets, const dpo_id_t *next) |
|
void | replicate_set_bucket (index_t repi, u32 bucket, const dpo_id_t *next) |
|
int | replicate_is_drop (const dpo_id_t *dpo) |
|
const dpo_id_t * | replicate_get_bucket (index_t repi, u32 bucket) |
|
static load_balance_path_t * | replicate_multipath_next_hop_fixup (load_balance_path_t *nhs, dpo_proto_t drop_proto) |
|
static void | replicate_fill_buckets (replicate_t *rep, load_balance_path_t *nhs, dpo_id_t *buckets, u32 n_buckets) |
|
static void | replicate_set_n_buckets (replicate_t *rep, u32 n_buckets) |
|
void | replicate_multipath_update (const dpo_id_t *dpo, load_balance_path_t *next_hops) |
|
static void | replicate_lock (dpo_id_t *dpo) |
|
static void | replicate_destroy (replicate_t *rep) |
|
static void | replicate_unlock (dpo_id_t *dpo) |
|
static void | replicate_mem_show (void) |
|
void | replicate_module_init (void) |
|
static clib_error_t * | replicate_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static uword | replicate_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static u8 * | format_replicate_trace (u8 *s, va_list *args) |
|
static uword | ip4_replicate (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | ip6_replicate (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | mpls_replicate (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
clib_error_t * | replicate_dpo_init (vlib_main_t *vm) |
|
#define foreach_replicate_dpo_error _(BUFFER_ALLOCATION_FAILURE, "Buffer Allocation Failure") |
#define REP_DBG |
( |
|
_p, |
|
|
|
_fmt, |
|
|
|
_args... |
|
) |
| |
u8* format_replicate |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
static u8* format_replicate_dpo |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_replicate_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
int replicate_is_drop |
( |
const dpo_id_t * |
dpo | ) |
|
static void replicate_lock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
static void replicate_mem_show |
( |
void |
| ) |
|
|
static |
void replicate_module_init |
( |
void |
| ) |
|
static void replicate_set_n_buckets |
( |
replicate_t * |
rep, |
|
|
u32 |
n_buckets |
|
) |
| |
|
inlinestatic |
static void replicate_unlock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
Initial value:= {
.name = "ip4-replicate",
.vector_size =
sizeof (
u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip4-drop",
},
}
static u8 * format_replicate_trace(u8 *s, va_list *args)
static char * replicate_dpo_error_strings[]
static uword ip4_replicate(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
IP4 replication node.
(constructor) VLIB_REGISTER_NODE (ip4_replicate_node)
Definition at line 755 of file replicate_dpo.c.
Initial value:= {
.name = "ip6-replicate",
.vector_size =
sizeof (
u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip6-drop",
},
}
static u8 * format_replicate_trace(u8 *s, va_list *args)
static char * replicate_dpo_error_strings[]
static uword ip6_replicate(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
IPv6 replication node.
(constructor) VLIB_REGISTER_NODE (ip6_replicate_node)
Definition at line 781 of file replicate_dpo.c.
Initial value:= {
.name = "mpls-replicate",
.vector_size =
sizeof (
u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "mpls-drop",
},
}
static u8 * format_replicate_trace(u8 *s, va_list *args)
static char * replicate_dpo_error_strings[]
static uword mpls_replicate(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
MPLS replication node.
(constructor) VLIB_REGISTER_NODE (mpls_replicate_node)
Definition at line 807 of file replicate_dpo.c.
Initial value:= {
}
static void replicate_unlock(dpo_id_t *dpo)
static void replicate_mem_show(void)
static void replicate_lock(dpo_id_t *dpo)
static u8 * format_replicate_dpo(u8 *s, va_list *args)
Definition at line 542 of file replicate_dpo.c.
char* replicate_dpo_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_replicate_dpo_error
Definition at line 48 of file replicate_dpo.c.
const char* const replicate_ip4_nodes[] |
|
static |
Initial value:
The per-protocol VLIB graph nodes that are assigned to a replicate object.
this means that these graph nodes are ones from which a replicate is the parent object in the DPO-graph.
Definition at line 556 of file replicate_dpo.c.
const char* const replicate_ip6_nodes[] |
|
static |
Initial value:= {
.repm_counters = {
.name = "mroutes",
.stat_segment_name = "/net/mroute",
},
}
The one instance of replicate main.
Definition at line 62 of file replicate_dpo.c.
const char* const replicate_mpls_nodes[] |
|
static |
Initial value:=
{
}
static const char *const replicate_ip6_nodes[]
static const char *const replicate_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a replicate object.
static const char *const replicate_mpls_nodes[]
Definition at line 572 of file replicate_dpo.c.
Pool of all DPOs.
The encapsulation breakages are for fast DP access.
It's not static so the DP can have fast access
Definition at line 57 of file replicate_dpo.c.
Initial value:= {
.path = "show replicate",
.short_help = "show replicate [<index>]",
}
static clib_error_t * replicate_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (replicate_show_command)
Definition at line 620 of file replicate_dpo.c.