73 vlan[vlan_index].priority_cfi_and_id,
76 vlan[vlan_index].priority_cfi_and_id,
79 vlan[vlan_index].priority_cfi_and_id,
90 u32 n_vlan, error, group_index;
97 if (!
unformat (input,
"%U: %U -> %U",
134 v = (
void *) (e + 1);
137 ether_type_edit = &e->
type;
142 ether_type_edit = &v[n_vlan - 1].
type;
146 for (i = 0; i < n_vlan - 1; i++)
uword unformat_ethernet_type_net_byte_order(unformat_input_t *input, va_list *args)
uword unformat_pg_ethernet_header(unformat_input_t *input, va_list *args)
sll srl srl sll sra u16x4 i
always_inline ethernet_type_info_t * ethernet_get_type_info(ethernet_main_t *em, ethernet_type_t type)
always_inline pg_node_t * pg_get_node(uword node_index)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static void pg_edit_set_fixed(pg_edit_t *e, u64 value)
uword unformat_pg_edit(unformat_input_t *input, va_list *args)
static void pg_edit_copy_type_and_values(pg_edit_t *dst, pg_edit_t *src)
static void pg_ethernet_header_init(pg_ethernet_header_t *e)
ethernet_main_t ethernet_main
uword unformat_pg_payload(unformat_input_t *input, va_list *args)
#define pg_edit_init(e, type, field)
static void pg_ethernet_vlan_header_init(pg_ethernet_vlan_header_t *v, int vlan_index)
#define pg_edit_init_bitfield(e, type, field, field_offset, field_n_bits)
always_inline void * pg_create_edit_group(pg_stream_t *s, int n_edit_bytes, int n_packet_bytes, u32 *group_index)
always_inline void * pg_get_edit_group(pg_stream_t *s, u32 group_index)
unformat_function_t * unformat_edit
uword unformat_ethernet_address(unformat_input_t *input, va_list *args)
always_inline void * pg_add_edits(pg_stream_t *s, int n_edit_bytes, int n_packet_bytes, u32 group_index)
uword unformat_pg_number(unformat_input_t *input, va_list *args)
always_inline void pg_free_edit_group(pg_stream_t *s)