FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Interface Input Mode (Layer 2 Cross-Connect or Bridge / Layer 3). More...
Go to the source code of this file.
Data Structures | |
struct | l2input_trace_t |
Macros | |
#define | foreach_l2input_error |
#define | get_u16(addr) ( *((u16 *)(addr)) ) |
Enumerations | |
enum | l2input_error_t { L2INPUT_N_ERROR } |
enum | l2input_next_t { L2INPUT_NEXT_LEARN, L2INPUT_NEXT_FWD, L2INPUT_NEXT_DROP, L2INPUT_N_NEXT } |
Functions | |
static u8 * | format_l2input_trace (u8 *s, va_list *args) |
static_always_inline void | classify_and_dispatch (l2input_main_t *msm, vlib_buffer_t *b0, u16 *next0) |
static_always_inline uword | l2input_node_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int do_trace) |
VLIB_NODE_FN() | l2input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
Variables | |
l2input_main_t | l2input_main |
static char * | l2input_error_strings [] |
vlib_node_registration_t | l2input_node |
(constructor) VLIB_REGISTER_NODE (l2input_node) More... | |
Interface Input Mode (Layer 2 Cross-Connect or Bridge / Layer 3).
This file contains the CLI Commands that modify the input mode of an interface. For interfaces in a Layer 2 cross-connect, all packets received on one interface will be transmitted to the other. For interfaces in a bridge-domain, packets will be forwarded to other interfaces in the same bridge-domain based on destination mac address. For interfaces in Layer 3 mode, the packets will be routed.
Definition in file l2_input_node.c.
#define foreach_l2input_error |
Definition at line 81 of file l2_input_node.c.
enum l2input_error_t |
Enumerator | |
---|---|
L2INPUT_N_ERROR |
Definition at line 85 of file l2_input_node.c.
enum l2input_next_t |
Enumerator | |
---|---|
L2INPUT_NEXT_LEARN | |
L2INPUT_NEXT_FWD | |
L2INPUT_NEXT_DROP | |
L2INPUT_N_NEXT |
Definition at line 99 of file l2_input_node.c.
static_always_inline void classify_and_dispatch | ( | l2input_main_t * | msm, |
vlib_buffer_t * | b0, | ||
u16 * | next0 | ||
) |
Definition at line 108 of file l2_input_node.c.
VLIB_NODE_FN() l2input_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
static_always_inline uword l2input_node_inline | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame, | ||
int | do_trace | ||
) |
Definition at line 233 of file l2_input_node.c.
|
static |
Definition at line 93 of file l2_input_node.c.
l2input_main_t l2input_main |
Definition at line 78 of file l2_input_node.c.
vlib_node_registration_t l2input_node |
(constructor) VLIB_REGISTER_NODE (l2input_node)
Definition at line 370 of file l2_input_node.c.