FD.io VPP
v17.01-9-ge7dcee4
Vector Packet Processing
|
Functions for replicating packets across SR tunnels. More...
Go to the source code of this file.
Data Structures | |
struct | sr_replicate_main_t |
sr_replicate state. More... | |
struct | sr_replicate_trace_t |
Information to display in packet trace. More... | |
Macros | |
#define | foreach_sr_replicate_error |
Enumerations | |
enum | sr_replicate_error_t { SR_REPLICATE_N_ERROR } |
Struct for SR replicate errors. More... | |
enum | sr_replicate_next_t { SR_REPLICATE_NEXT_IP6_LOOKUP, SR_REPLICATE_N_NEXT } |
Defines next-nodes for packet processing. More... | |
Functions | |
static u8 * | format_sr_replicate_trace (u8 *s, va_list *args) |
packet trace format function. More... | |
static uword | sr_replicate_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
Single loop packet replicator. More... | |
clib_error_t * | sr_replicate_init (vlib_main_t *vm) |
Variables | |
sr_replicate_main_t | sr_replicate_main |
static char * | sr_replicate_error_strings [] |
Error strings for SR replicate. More... | |
vlib_node_registration_t | sr_replicate_node |
(constructor) VLIB_REGISTER_NODE (sr_replicate_node) More... | |
Functions for replicating packets across SR tunnels.
Leverages rte_pktmbuf_clone() so there is no memcpy for invariant parts of the packet.
Definition in file sr_replicate.c.
#define foreach_sr_replicate_error |
Definition at line 98 of file sr_replicate.c.
enum sr_replicate_error_t |
Struct for SR replicate errors.
Enumerator | |
---|---|
SR_REPLICATE_N_ERROR |
Definition at line 107 of file sr_replicate.c.
enum sr_replicate_next_t |
Defines next-nodes for packet processing.
Enumerator | |
---|---|
SR_REPLICATE_NEXT_IP6_LOOKUP | |
SR_REPLICATE_N_NEXT |
Definition at line 128 of file sr_replicate.c.
packet trace format function.
*s | u8 used for string output |
*args | va_list structured input to va_arg to output sr_replicate_trace_t |
Definition at line 74 of file sr_replicate.c.
clib_error_t* sr_replicate_init | ( | vlib_main_t * | vm | ) |
|
static |
Single loop packet replicator.
sr-replicate
vm | vlib_main_t |
Definition at line 142 of file sr_replicate.c.
|
static |
Error strings for SR replicate.
Definition at line 118 of file sr_replicate.c.
sr_replicate_main_t sr_replicate_main |
Definition at line 51 of file sr_replicate.c.
vlib_node_registration_t sr_replicate_node |
(constructor) VLIB_REGISTER_NODE (sr_replicate_node)
Definition at line 449 of file sr_replicate.c.