|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
24 #define _(bit, name, ss, v) \
25 if (v && (vnet_buffer (b)->oflags & VNET_BUFFER_OFFLOAD_F_##name)) \
26 s = format (s, "%s ", ss);
32 s =
format (s,
"outer-l3-hdr-offset %d ",
34 s =
format (s,
"outer-l4-hdr-offset %d ",
46 #define _(bit,name,ss,v) \
47 if (v && (b->flags & VNET_BUFFER_F_##name)) \
48 a = format (a, "%s ", ss);
51 if (
b->
flags & VNET_BUFFER_F_OFFLOAD)
a =
54 if (
b->
flags & VNET_BUFFER_F_L2_HDR_OFFSET_VALID)
57 if (
b->
flags & VNET_BUFFER_F_L3_HDR_OFFSET_VALID)
60 if (
b->
flags & VNET_BUFFER_F_L4_HDR_OFFSET_VALID)
63 if (
b->
flags & VNET_BUFFER_F_GSO)
64 a =
format (
a,
"gso l4-hdr-len %d gso-size %d",
67 if (
b->
flags & VNET_BUFFER_F_QOS_DATA_VALID)
71 if (
b->
flags & VNET_BUFFER_F_LOOP_COUNTER_VALID)
static u8 * format_vnet_buffer_internal(u8 *s, vlib_buffer_t *b, int no_chain)
@ foreach_vnet_buffer_offload_flag
u8 * format_vnet_buffer_no_chain(u8 *s, va_list *args)
@ foreach_vnet_buffer_flag
u8 * format_vnet_buffer(u8 *s, va_list *args)
u8 * format_vnet_buffer_offload(u8 *s, va_list *args)
#define vec_free(V)
Free vector's memory (no header).
description fragment has unexpected format
u8 * format_vlib_buffer_no_chain(u8 *s, va_list *args)
#define VNET_BUFFER_OFFLOAD_F_TNL_MASK
u8 * format_vlib_buffer(u8 *s, va_list *args)
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
VLIB buffer representation.