FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
vec_header_t Struct Reference

vector header structure More...

Data Fields

u32 len
 Number of elements in vector (NOT its allocated length). More...
 
u8 numa_id
 NUMA id. More...
 
u8 vpad [3]
 pad to 8 bytes More...
 
u8 vector_data [0]
 Vector data . More...
 

Detailed Description

vector header structure

Bookkeeping header preceding vector elements in memory. User header information may preceed standard vec header. If you change u32 len -> u64 len, single vectors can exceed 2**32 elements. Clib heaps are vectors.

Definition at line 55 of file vec_bootstrap.h.

Field Documentation

◆ len

u32 vec_header_t::len

Number of elements in vector (NOT its allocated length).

Definition at line 57 of file vec_bootstrap.h.

◆ numa_id

u8 vec_header_t::numa_id

NUMA id.

Definition at line 58 of file vec_bootstrap.h.

◆ vector_data

u8 vec_header_t::vector_data[0]

Vector data .

Definition at line 60 of file vec_bootstrap.h.

◆ vpad

u8 vec_header_t::vpad[3]

pad to 8 bytes

Definition at line 59 of file vec_bootstrap.h.


The documentation for this struct was generated from the following file: