[dpdk-users] rte_pktmbuf_free does not reset headroom
Stephen Hemminger
stephen at networkplumber.org
Wed Jan 15 19:29:28 CET 2020
On Wed, 15 Jan 2020 16:40:47 +0000
"Girard, Guillaume" <guillaume.girard at 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().
More information about the users
mailing list