Dear vpp-dev, 

I'm trying to do some IPv6 in IPv6 encapsulation with no tunnel configuration. 

The objective is to encapsulate the received packet in an other IPv6 packet 
that will also "contain" a Hop-by-hop extension header. In summary, the 
structure of the final packet will look like this : Outer-IP6-Header -> 
Hop-by-hop-extension-header -> Original packet. 

The main concern here is that the size of the outer IP6 header + the size of 
the extension header > 128 bytes sometimes. When it arrives, I cannot write my 
data inside the buffer pre-data area because it has a size of 128 bytes. I 
already asked for solutions previously and I was adviced to either increase the 
size of the pre-data area by recompiling VPP or create a new buffer for my data 
and then chain it to the original one. I was able to create a buffer chain that 
seemed to work perfectly fine. 

However, when I tried to perform some performance tests I was quite 
disappointed by the results : the buffer allocation for each packet is not 
efficient at all. My question is then : Is there any way to increase the 
performances ? To allocate buffers, I use the function " vlib_buffer_alloc " 
defined in " buffer_funcs.h " but is it the right function to use ? 

In my case, the best option would be to have more space available in the 
buffer's pre-data area but VPP does not seem to be built in a way that allows 
easy modifications of the " PRE_DATA_SIZE" value. Am I right or is there any 
"clean" method to change this value ? 

Thank you all already for your help, 

Jérôme 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19790): https://lists.fd.io/g/vpp-dev/message/19790
Mute This Topic: https://lists.fd.io/mt/84230132/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to