From: Olivier MATZ <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Bruce Richardson
<bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH v3 4/6] mbuf: remove the rte_pktmbuf structure
Date: Mon, 08 Sep 2014 10:29:49 +0200 [thread overview]
Message-ID: <540D68FD.8040602@6wind.com> (raw)
In-Reply-To: <1409837138-4401-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
On 09/04/2014 03:25 PM, Bruce Richardson wrote:
> From: Olivier Matz <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
>
> The rte_pktmbuf structure was initially included in the rte_mbuf
> structure. This was needed when there was 2 types of mbuf (ctrl and
> packet). As the control mbuf has been removed, we can merge the
> rte_pktmbuf into the rte_mbuf structure.
>
> Advantages of doing this:
> - the access to mbuf fields is easier (ex: m->data instead of m->pkt.data)
> - make the structure more consistent: for instance, there was no reason
> to have the ol_flags field in rte_mbuf
> - it will allow a deeper reorganization of the rte_mbuf structure in the
> next commits, allowing to gain several bytes in it
>
> Signed-off-by: Olivier Matz <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
>
> Updated to work with latest code, and to include new example apps.
>
> Changes in V2:
> * Further updates to apply to latest HEAD on master
>
> Changes in V3:
> * Updated to compile cleanly on 1.7.1
>
> Signed-off-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
In app/test/packet_burst_generator.c, there is one remaining reference
to "pkt." in a comment:
#define RTE_MAX_SEGS_PER_PKT 255 /**< pkt.nb_segs is a 8-bit unsigned
char. */
Acked-by: Olivier Matz <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
next prev parent reply other threads:[~2014-09-08 8:29 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 15:50 [PATCH 0/6] Mbuf structure Rework, part 1 Bruce Richardson
[not found] ` <1409154628-30825-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-08-27 15:50 ` [PATCH 1/6] ixgbe: put only non-zero initializer in definition Bruce Richardson
2014-08-27 15:50 ` [PATCH 2/6] mbuf: rename RTE_MBUF_SCATTER_GATHER into RTE_MBUF_REFCNT Bruce Richardson
2014-08-27 15:50 ` [PATCH 3/6] mbuf: remove rte_ctrlmbuf Bruce Richardson
2014-08-27 15:50 ` [PATCH 4/6] mbuf: remove the rte_pktmbuf structure Bruce Richardson
2014-08-27 15:50 ` [PATCH 5/6] mbuf: rename in_port to just port Bruce Richardson
2014-08-27 15:50 ` [PATCH 6/6] mbuf: flatten struct vlan_macip into mbuf struct Bruce Richardson
2014-08-28 15:42 ` [PATCH v2 0/6] Mbuf structure Rework, part 1 Bruce Richardson
[not found] ` <1409240559-14447-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-17 9:30 ` Thomas Monjalon
2014-08-28 15:42 ` [PATCH v2 1/6] ixgbe: put only non-zero initializer in definition Bruce Richardson
[not found] ` <1409240559-14447-2-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-05 16:14 ` De Lara Guarch, Pablo
2014-09-08 7:55 ` Olivier MATZ
2014-08-28 15:42 ` [PATCH v2 2/6] mbuf: rename RTE_MBUF_SCATTER_GATHER into RTE_MBUF_REFCNT Bruce Richardson
[not found] ` <1409240559-14447-3-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-05 16:14 ` De Lara Guarch, Pablo
2014-09-08 8:01 ` Olivier MATZ
2014-08-28 15:42 ` [PATCH v2 3/6] mbuf: remove rte_ctrlmbuf Bruce Richardson
[not found] ` <1409240559-14447-4-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-05 16:15 ` De Lara Guarch, Pablo
2014-09-08 8:21 ` Olivier MATZ
[not found] ` <540D671B.9040104-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-09-09 8:48 ` Richardson, Bruce
2014-08-28 15:42 ` [PATCH v2 4/6] mbuf: remove the rte_pktmbuf structure Bruce Richardson
[not found] ` <1409240559-14447-5-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-04 13:25 ` [PATCH v3 " Bruce Richardson
[not found] ` <1409837138-4401-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-05 16:17 ` De Lara Guarch, Pablo
2014-09-08 8:29 ` Olivier MATZ [this message]
2014-09-05 16:15 ` [PATCH v2 " De Lara Guarch, Pablo
2014-08-28 15:42 ` [PATCH v2 5/6] mbuf: rename in_port to just port Bruce Richardson
[not found] ` <1409240559-14447-6-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-05 16:16 ` De Lara Guarch, Pablo
2014-09-08 8:45 ` Olivier MATZ
2014-08-28 15:42 ` [PATCH v2 6/6] mbuf: flatten struct vlan_macip into mbuf struct Bruce Richardson
[not found] ` <1409240559-14447-7-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-05 16:21 ` De Lara Guarch, Pablo
[not found] ` <E115CCD9D858EF4F90C690B0DCB4D89722614382-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-09-07 19:40 ` Richardson, Bruce
2014-09-08 9:07 ` Olivier MATZ
[not found] ` <540D71BF.8050006-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-09-09 14:40 ` [PATCH v3 " Bruce Richardson
[not found] ` <1410273656-4567-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-09 15:20 ` De Lara Guarch, Pablo
2014-09-08 12:32 ` [PATCH 0/6] Mbuf structure Rework, part 1 Olivier MATZ
[not found] ` <540DA1EC.10603-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-09-09 9:03 ` Richardson, Bruce
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=540D68FD.8040602@6wind.com \
--to=olivier.matz-pdr9zngts4eavxtiumwx3w@public.gmane.org \
--cc=bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.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).