Re: VLIB headroom buffer size modfification

Damjan Marion

you need to set it on both sides:

For VPP:

$ ccmake build-root/build-vpp-native/vpp
and change PRE_DATA_SIZE to 256

or modify following line:


set(PRE_DATA_SIZE 128 CACHE STRING "Buffer headroom size.”)

For DPDK you should be able to build custom ext deps package:

$ sudo dpkg -r vpp-ext-deps
$ make install-ext-deps DPDK_PKTMBUF_HEADROOM=256

On 14 Feb 2020, at 11:44, Mohamed feroz Abdul majeeth <ferozvdm@...> wrote:

Hi folks,

In vpp the default VLIB_BUFFER_PRE_DATA_SIZE data header room size is defined as 128.
And in dpdk also it is defined as 128 as we have encapsulation which goes beyond 128 bytes
the packet descriptor block is getting corrupted in the structure vlib_buffer_t as defined in vlib_buffer.h

how to increase the headroom buffer size to 256 bytes for both dpdk and vpp?


Join to automatically receive all group messages.