From: Stephen Hemminger <stephen@networkplumber.org>
To: "Girard, Guillaume" <guillaume.girard@intel.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] rte_pktmbuf_free does not reset headroom
Date: Wed, 15 Jan 2020 10:29:28 -0800 [thread overview]
Message-ID: <20200115102928.64c865da@hermes.lan> (raw)
In-Reply-To: <BL0PR11MB326865D4D116C5073221E9058D370@BL0PR11MB3268.namprd11.prod.outlook.com>
On Wed, 15 Jan 2020 16:40:47 +0000
"Girard, Guillaume" <guillaume.girard@intel.com> wrote:
> Hi,
>
> From my experiments prepending data to an mbuf, rte_pktmbuf_free() does not reset the headroom. Is that intended?
>
> Thanks,
> Guillaume
>
> Intel Deutschland GmbH
> Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
> Tel: +49 89 99 8853-0, www.intel.de
> Managing Directors: Christin Eisenschmid, Gary Kershaw
> Chairperson of the Supervisory Board: Nicole Lau
> Registered Office: Munich
> Commercial Register: Amtsgericht Muenchen HRB 186928
>
Free doesn't need to do anything to the mbuf. After free the state of
the mbuf is indeterminate (ie. it can be what ever rte_mbuf code wants).
The headroom is reset in rte_pktmbuf_reset() which is called by
rte_pktmbuf_alloc().
next prev parent reply other threads:[~2020-01-15 18:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-15 16:40 Girard, Guillaume
2020-01-15 18:29 ` Stephen Hemminger [this message]
2020-01-16 8:51 ` Girard, Guillaume
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=20200115102928.64c865da@hermes.lan \
--to=stephen@networkplumber.org \
--cc=guillaume.girard@intel.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).