DPDK usage discussions
 help / color / mirror / Atom feed
From: Tom Barbette <barbette@kth.se>
To: mohamad ali <ali64mohammad64@gmail.com>, users@dpdk.org
Subject: Re: [dpdk-users] Changing rte_mbuf
Date: Fri, 18 Jun 2021 12:06:13 +0200	[thread overview]
Message-ID: <efaa203d-d2fe-3abf-cbfd-3de9c72b378a@kth.se> (raw)
In-Reply-To: <CANnn570Vp400FHZ8FonSDzLbe4V=A34ezq=X0kEHxQZMeF2d_g@mail.gmail.com>

Le 15-06-21 à 08:42, mohamad ali a écrit :
> Hi i want to change rte_mbuf struct and add some custom struct to it but
> when i change it and compile again some error related to this line shows up.
> RTE_BUILD_BUG_ON(sizeof(struct rte_mbuf) > OCTEONTX_FPAVF_BUF_OFFSET);
> 
> What is the correct way to add struct to rte_mbuf ?
> thanks.
> 

You should use dynamic fields instead 
(https://doc.dpdk.org/api/rte__mbuf__dyn_8h.html)

      parent reply	other threads:[~2021-06-18 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-15  6:42 mohamad ali
2021-06-16  6:31 ` David Marchand
2021-06-16 15:26   ` Stephen Hemminger
2021-06-18 10:06 ` Tom Barbette [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=efaa203d-d2fe-3abf-cbfd-3de9c72b378a@kth.se \
    --to=barbette@kth.se \
    --cc=ali64mohammad64@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).