From: longtb5@viettel.com.vn Subject: Suggestions on how to customize the metadata fields of each packet Date: Fri, 23 Feb 2018 10:13:45 +0700 (ICT) Message-ID: <000f01d3ac54$dcd2cff0$96786fd0$@viettel.com.vn> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: To: Return-path: Received: from mailfilter02.viettel.com.vn (mailfilter02.viettel.com.vn [125.235.240.54]) by dpdk.org (Postfix) with ESMTP id 98AD74C79 for ; Fri, 23 Feb 2018 04:13:59 +0100 (CET) Content-Language: en-us List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, First, I think your question should be sent to the user mailing list, not the dev mailing list. > 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.