|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
65 u32 next0, bi0, sw_if_index0;
87 L2INPUT_FEAT_GBP_NULL_CLASSIFY);
98 L2INPUT_FEAT_GBP_SRC_CLASSIFY);
159 to_next, n_left_to_next,
166 return frame->n_vectors;
217 .name =
"gbp-null-classify",
218 .vector_size =
sizeof (
u32),
227 .name =
"gbp-src-classify",
228 .vector_size =
sizeof (
u32),
237 .name =
"ip4-gbp-src-classify",
238 .vector_size =
sizeof (
u32),
250 .name =
"ip6-gbp-src-classify",
251 .vector_size =
sizeof (
u32),
264 .arc_name =
"ip4-unicast",
265 .node_name =
"ip4-gbp-src-classify",
270 .arc_name =
"ip6-unicast",
271 .node_name =
"ip6-gbp-src-classify",
300 s =
format (s,
"sclass:%d lb:%d src:%U",
339 u32 bi0, sw_if_index0, fib_index0, lbi0;
345 const ip6_address_t *ip6_0;
417 L2INPUT_FEAT_GBP_LPM_ANON_CLASSIFY);
437 if (~0 == fib_index0)
458 L2INPUT_FEAT_GBP_LPM_CLASSIFY);
512 to_next, n_left_to_next,
519 return frame->n_vectors;
556 .name =
"ip4-gbp-lpm-classify",
557 .vector_size =
sizeof (
u32),
569 .name =
"ip6-gbp-lpm-classify",
570 .vector_size =
sizeof (
u32),
582 .name =
"l2-gbp-lpm-classify",
583 .vector_size =
sizeof (
u32),
595 .name =
"l2-gbp-lpm-anon-classify",
596 .vector_size =
sizeof (
u32),
609 .arc_name =
"ip4-unicast",
610 .node_name =
"ip4-gbp-lpm-classify",
615 .arc_name =
"ip6-unicast",
616 .node_name =
"ip6-gbp-lpm-classify",
u32 gx_fib_index[DPO_PROTO_NUM]
cached FIB indices from the RD
struct gbp_classify_trace_t_ gbp_classify_trace_t
per-packet trace data
static vlib_cli_command_t trace
(constructor) VLIB_CLI_COMMAND (trace)
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)
gbp_endpoint_fwd_t ge_fwd
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
static uword gbp_classify_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, gbp_src_classify_type_t type, dpo_proto_t dproto)
sclass_t gef_sclass
Endpoint Group's sclass.
nat44_ei_hairpin_src_next_t next_index
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
vlib_node_registration_t gbp_null_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_null_classify_node)
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
@ VLIB_NODE_TYPE_INTERNAL
vlib_main_t vlib_node_runtime_t * node
vlib_node_registration_t gbp_ip4_lpm_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_ip4_lpm_classify_node)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
gbp_src_classify_main_t gbp_src_classify_main
static gbp_recirc_t * gbp_recirc_get(u32 sw_if_index)
static_always_inline gbp_endpoint_t * gbp_endpoint_find_ip4(const ip4_address_t *ip, u32 fib_index)
A GBP recirculation interface representation Thes interfaces join Bridge domains that are internal to...
u32 gr_fib_index[DPO_PROTO_NUM]
FIB indices the EPG is mapped to.
#define VLIB_NODE_FN(node)
static_always_inline gbp_endpoint_t * gbp_endpoint_find_mac(const u8 *mac, u32 bd_index)
sclass_t gpd_sclass
SClass.
enum gbp_src_classify_type_t_ gbp_src_classify_type_t
vlib_node_registration_t gbp_ip4_src_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_ip4_src_classify_node)
static_always_inline void vnet_feature_next(u32 *next0, vlib_buffer_t *b0)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
vlib_node_registration_t gbp_l2_lpm_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_classify_node)
VNET_FEATURE_INIT(gbp_ip4_src_classify_feat_node, static)
@ GBP_SRC_CLASSIFY_LPM_ANON
struct _vlib_node_registration vlib_node_registration_t
vlib_node_registration_t gbp_l2_lpm_anon_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_anon_classify_node)
static gbp_ext_itf_t * gbp_ext_itf_get(u32 sw_if_index)
static u32 vnet_l2_feature_next(vlib_buffer_t *b, u32 *next_nodes, u32 feat_bit)
Return the graph node index for the feature corresponding to the next set bit after clearing the curr...
vlib_node_registration_t gbp_src_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_src_classify_node)
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Finish enqueueing one buffer forward in the graph.
description fragment has unexpected format
vlib_put_next_frame(vm, node, next_index, 0)
format_function_t format_ip46_address
u32 fib_table_get_index_for_sw_if_index(fib_protocol_t proto, u32 sw_if_index)
Get the index of the FIB bound to the interface.
static_always_inline gbp_endpoint_t * gbp_endpoint_find_ip6(const ip6_address_t *ip, u32 fib_index)
Grouping of global data for the GBP source EPG classification feature.
u32 gef_fib_index
FIB index the EP is in.
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
#define VNET_FEATURES(...)
const static_always_inline gbp_policy_dpo_t * gbp_classify_get_gpd(const ip4_address_t *ip4, const ip6_address_t *ip6, const u32 fib_index)
vlib_node_registration_t gbp_ip6_lpm_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_ip6_lpm_classify_node)
static uword gbp_lpm_classify_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, const dpo_proto_t dproto, const enum gbp_lpm_type type)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)
u32 l2_input_feat_next[GBP_SRC_N_CLASSIFY][32]
Next nodes for L2 output features.
enum gbp_lpm_classify_next_t_ gbp_lpm_classify_next_t
An external interface maps directly to an oflex L3ExternalInterface.
A Group Based Policy Endpoint.
vl_api_address_union_t src_address
struct gbp_lpm_classify_trace_t_ gbp_lpm_classify_trace_t
per-packet trace data
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Get pointer to next frame vector data by (vlib_node_runtime_t, next_index).
static_always_inline dpo_proto_t gbp_classify_get_ip_address(const ethernet_header_t *eh0, const ip4_address_t **ip4, const ip6_address_t **ip6, const enum gbp_classify_get_ip_way way)
vl_api_fib_path_type_t type
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
@ GBP_CLASSIFY_GET_IP_SRC
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)
vlib_node_registration_t gbp_ip6_src_classify_node
(constructor) VLIB_REGISTER_NODE (gbp_ip6_src_classify_node)