Skip to contentSkip to conversation

Suggestions on how to customize the metadata fields of each packet

DISCUSSION [email protected] 1 participant 1 message Feb 23, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

First, I think your question should be sent to the user mailing list, not the dev mailing list.

Quoted 2 lines

I have seen that each packet has a headroom memory space (128 bytes long) where RSS hashing and other metadata provided by the NIC is stored.

If I'm not mistaken, the headroom is not where metadata provided by the NIC are stored. Those metadata are stored in the rte_mbuf struct, which is also 128 bytes long.

The headroom area is located AFTER the end of rte_mbuf (at offset 128). By default the headroom area is also 128 byte long, so the actual packet data is stored at offset 256.

You can store whatever you want in this headroom area. However those information are lost as soon as the packet leaves DPDK (the NIC will start sending at offset 256).

-BL.