|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
40 #ifndef __included_ip6_forward_h__
41 #define __included_ip6_forward_h__
76 u32 pi0, pi1, lbi0, lbi1, wrong_next;
79 ip6_address_t *dst_addr0, *dst_addr1;
80 u32 flow_hash_config0, flow_hash_config1;
97 pi0 = to_next[0] =
from[0];
98 pi1 = to_next[1] =
from[1];
159 (ip0->
protocol == IP_PROTOCOL_IP6_HOP_BY_HOP_OPTIONS))
165 (ip1->
protocol == IP_PROTOCOL_IP6_HOP_BY_HOP_OPTIONS))
183 wrong_next = (next0 !=
next) + 2 * (next1 !=
next);
228 ip6_address_t *dst_addr0;
229 u32 flow_hash_config0;
271 (ip0->
protocol == IP_PROTOCOL_IP6_HOP_BY_HOP_OPTIONS))
304 return frame->n_vectors;
u16 dpoi_next_node
The next VLIB node to follow.
vnet_interface_main_t * im
u16 lb_n_buckets
number of buckets in the load-balance.
index_t dpoi_index
the index of objects of that type
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
vlib_main_t vlib_node_runtime_t * node
flow_hash_config_t lb_hash_config
the hash config to use when selecting a bucket.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
@ IP6_LOOKUP_NEXT_HOP_BY_HOP
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
#define CLIB_PREFETCH(addr, size, type)
load_balance_main_t load_balance_main
The one instance of load-balance main.
static const dpo_id_t * load_balance_get_fwd_bucket(const load_balance_t *lb, u16 bucket)
static u32 ip6_compute_flow_hash(const ip6_header_t *ip, flow_hash_config_t flow_hash_config)
#define VLIB_NODE_FLAG_TRACE
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
static const dpo_id_t * load_balance_get_bucket_i(const load_balance_t *lb, u32 bucket)
vnet_feature_config_main_t * cm
static u32 ip6_fib_table_fwding_lookup(u32 fib_index, const ip6_address_t *dst)
ip_lookup_next_t
An adjacency is a representation of an attached L3 peer.
vlib_combined_counter_main_t lbm_to_counters
A collection of combined counters.
vlib_put_next_frame(vm, node, next_index, 0)
static void vlib_set_next_frame_buffer(vlib_main_t *vm, vlib_node_runtime_t *node, u32 next_index, u32 buffer_index)
static load_balance_t * load_balance_get(index_t lbi)
static void ip_lookup_set_buffer_fib_index(u32 *fib_index_by_sw_if_index, vlib_buffer_t *b)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
int dpo_is_adj(const dpo_id_t *dpo)
Return TRUE is the DPO is any type of adjacency.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
u16 lb_n_buckets_minus_1
number of buckets in the load-balance - 1.
static uword is_pow2(uword x)
#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 uword ip6_lookup_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
void ip6_forward_next_trace(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, vlib_rx_or_tx_t which_adj_index)
vlib_increment_combined_counter(ccm, ti, sw_if_index, n_buffers, n_bytes)
VLIB buffer representation.