From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 65AD52B99 for ; Thu, 22 Feb 2018 18:35:02 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id t82so5063708wmt.5 for ; Thu, 22 Feb 2018 09:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7Cb6dPSzCHAerSm4oOtR5jxe3o1+eOqKov5iZC2vlEs=; b=kiSz3CIzH80rr0A/WpMijchNYSpI27fXN/WBpugKzhZLXJUqnF3e5Sy9clS3CauWtP GpO8WVgGxeSjg4JMVrI3pZ7fFZuefGSdtbOwTWNLmyDsL3YwfdbRwcmarbUAAS1Srfag W7gPZICifuF4D+VLRTQlr9+DORh/3P9rY+emShvma9V5O9FmU7d4w+JyJRKD8lE92MSJ jlpzVJRD+iJPxXvi5rhofBowqB3oyTVNFhbcAzIImAwB7CaWuV8/3I+A5vuaUz/exGO7 ylz5pMSgER1YajMx/Y2vEmsSARzOrbT3GWXQvlB8+ru3B/kZfMO9JZMOnEiFzceP8NsO Fwdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7Cb6dPSzCHAerSm4oOtR5jxe3o1+eOqKov5iZC2vlEs=; b=NmHMYOONCwHiaV4McaRI7+uxnsVWy/cLwaerPFuqD4b4TlEQWS91ABw2mFL8k8RWjk +LhyEiC2eFX2CPMfkwtP246j5+P3585Xv9prdP8iQAxYRhmRciL5IyWR6KVEM0hxLB2n UUW15yTAIEv4s/Re+31N64a+VWnB+OzlUbth7q7weHdjaFgqN1F2m1p0pLHRWfcIsg5A LYLdHZCEO2J282ObLSgfhSDTbRpJNa3xyDBN2462ciDGsDOcUddxBNgVjZ+XwRNAvOR3 C9ElDWJq285q4I7KDk3WMMlas9AK16K1W1nkqs796AvEQS8cqcIVenwdSVnTPDZf4vg5 9a0g== X-Gm-Message-State: APf1xPBQigYDmxX6XQgSQgGF7XltI8VpRu35g3GRrDy4frmHmReQ0GTj lRyMgqF6vdXFFgK9517coyNANALqVN1kJjEUIs4= X-Google-Smtp-Source: AH8x226/TNLhwk4LVyxOemTTbbnXHFzV7HskLjB/CHmaWR0VvDc5nkdIiQ3n+bi2xBCF7X8LA+Zwtxxz4CFnX/amrUs= X-Received: by 10.80.177.89 with SMTP id l25mr10395151edd.267.1519320901951; Thu, 22 Feb 2018 09:35:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.185.37 with HTTP; Thu, 22 Feb 2018 09:35:01 -0800 (PST) From: Victor Huertas Date: Thu, 22 Feb 2018 18:35:01 +0100 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Suggestions on how to customize the metadata fields of each packet X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 17:35:02 -0000 Hi all, In the project I am working I need to define custom metadata fields on each packet once they are captured using DPDK. 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. This information will be useful for me but I need to add some further fields to these metadata without having to modify the source code of the library. Do you which is the best practice to do it? Do I have for example to define a struct that contains rte_mbuf struct and additional metadata struct? struct new_packet{ struct rte_mbuf; struct additional_metadata } I would appreciate it if you could provide me with some guidelines to know how to implement it. Thanks a lot -- Victor