18 #ifndef included_vnet_l2_vtr_h 19 #define included_vnet_l2_vtr_h 84 temp_8 = *((
u64 *) eth);
85 temp_4 = *((
u32 *) (eth + 8));
105 *((
u64 *) eth) = temp_8;
106 *((
u32 *) (eth + 8)) = temp_4;
157 tag_mask = clib_net_to_host_u64 (0xFFFF0FFFFFFF0FFF);
161 4) ? clib_net_to_host_u64 (0xFFFF0FFF) : tag_mask;
163 tag_mask = (in_config->
push_bytes == 0) ? 0 : tag_mask;
173 return (packet_tags & tag_mask) != in_config->
raw_tags;
207 ethernet_pbb_header_packed_t *ph = (ethernet_pbb_header_packed_t *) eth;
210 if (clib_net_to_host_u16 (ph->priority_dei_id) !=
212 || clib_net_to_host_u32 (ph->priority_dei_uca_res_sid) !=
241 u8 * b_dmac,
u8 * b_smac,
242 u16 b_vlanid,
u32 i_sid,
u16 vlan_outer_tag);
251 u32 vtr_op,
u32 push_dot1q,
u32 vtr_tag1,
u32 vtr_tag2);
261 u32 * push_dot1q,
u32 * vtr_tag1,
u32 * vtr_tag2);
u32 l2pbb_configure(vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 sw_if_index, u32 vtr_op, u8 *b_dmac, u8 *b_smac, u16 b_vlanid, u32 i_sid, u16 vlan_outer_tag)
static u32 l2_pbb_process(vlib_buffer_t *b0, ptr_config_t *config)
Per-interface vlan tag rewrite configuration There will be one instance of this struct for each sw_if...
static u32 l2_vtr_process(vlib_buffer_t *b0, vtr_config_t *config)
Perform the configured tag rewrite on the packet.
#define ethernet_buffer_adjust_vlan_count_by_bytes(b, v)
Adjusts the vlan count by the header size byte delta in 'v'.
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static u8 l2_efp_filter_process(vlib_buffer_t *b0, vtr_config_t *in_config)
u32 l2vtr_get(vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 sw_if_index, u32 *vtr_op, u32 *push_dot1q, u32 *vtr_tag1, u32 *vtr_tag2)
Get vtag tag rewrite on the given interface.
struct ptr_config_t::@227::@231 raw_data
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
u32 l2pbb_get(vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 sw_if_index, u32 *vtr_op, u16 *outer_tag, ethernet_header_t *eth_hdr, u16 *b_vlanid, u32 *i_sid)
Get pbb tag rewrite on the given interface.
u32 l2vtr_configure(vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 sw_if_index, u32 vtr_op, u32 push_dot1q, u32 vtr_tag1, u32 vtr_tag2)
Configure vtag tag rewrite on the given interface.
ethernet_pbb_header_t macs_tags