From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: "Olivier Matz" <olivier.matz@6wind.com>,
"David Marchand" <david.marchand@redhat.com>,
"Ferruh Yigit" <ferruh.yigit@intel.com>,
"Morten Brørup" <mb@smartsharesystems.com>,
"Ananyev, Konstantin" <konstantin.ananyev@intel.com>,
"Andrew Rybchenko" <andrew.rybchenko@oktetlabs.ru>,
"Viacheslav Ovsiienko" <viacheslavo@nvidia.com>,
"Ajit Khaparde" <ajit.khaparde@broadcom.com>,
"Jerin Jacob" <jerinj@marvell.com>,
"Hemant Agrawal" <hemant.agrawal@nxp.com>,
"Ray Kinsella" <mdr@ashroe.eu>,
"Neil Horman" <nhorman@tuxdriver.com>,
"Jerin Jacob" <jerinjacobk@gmail.com>
Subject: Re: [dpdk-dev] [PATCH v2 2/2] mbuf: move pool pointer in first half
Date: Thu, 12 Nov 2020 15:39:27 +0100 [thread overview]
Message-ID: <3880040.cf593ZQX9F@thomas> (raw)
In-Reply-To: <CALBAE1M5-koi8jcnV42Mmeu0kM1_HzS0Q+ESv0u2pEwVhgwu5A@mail.gmail.com>
> > > According to the Technical Board decision
> > > (http://mails.dpdk.org/archives/dev/2020-November/191859.html),
> > > the mempool pointer in the mbuf struct is moved
> > > from the second to the first half.
> > > It may increase performance in some cases
> > > on systems having 64-byte cache line, i.e. mbuf split in two cache lines.
> > >
> > > Due to this change, tx_offload is moved.
> > > Hopefully no vector data path is impacted.
> > >
> > > Moving this field gives more space to dynfield1
> > > while dropping the temporary dynfield0.
> > >
> > > This is how the mbuf layout looks like (pahole-style):
> > >
> > > word type name byte size
> > > 0 void * buf_addr; /* 0 + 8 */
> > > 1 rte_iova_t buf_iova /* 8 + 8 */
> > > /* --- RTE_MARKER64 rearm_data; */
> > > 2 uint16_t data_off; /* 16 + 2 */
> > > uint16_t refcnt; /* 18 + 2 */
> > > uint16_t nb_segs; /* 20 + 2 */
> > > uint16_t port; /* 22 + 2 */
> > > 3 uint64_t ol_flags; /* 24 + 8 */
> > > /* --- RTE_MARKER rx_descriptor_fields1; */
> > > 4 uint32_t union packet_type; /* 32 + 4 */
> > > uint32_t pkt_len; /* 36 + 4 */
> > > 5 uint16_t data_len; /* 40 + 2 */
> > > uint16_t vlan_tci; /* 42 + 2 */
> > > 5.5 uint64_t union hash; /* 44 + 8 */
> > > 6.5 uint16_t vlan_tci_outer; /* 52 + 2 */
> > > uint16_t buf_len; /* 54 + 2 */
> > > 7 struct rte_mempool * pool; /* 56 + 8 */
> > > /* --- RTE_MARKER cacheline1; */
> > > 8 struct rte_mbuf * next; /* 64 + 8 */
> > > 9 uint64_t union tx_offload; /* 72 + 8 */
> > > 10 struct rte_mbuf_ext_shared_info * shinfo; /* 80 + 8 */
> > > 11 uint16_t priv_size; /* 88 + 2 */
> > > uint16_t timesync; /* 90 + 2 */
> > > 11.5 uint32_t dynfield1[9]; /* 92 + 36 */
> > > 16 /* --- END 128 */
> > >
> > > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> >
> > Acked-by: Olivier Matz <olivier.matz@6wind.com>
>
> Acked-by: Jerin Jacob <jerinj@marvell.com>
Series applied
next prev parent reply other threads:[~2020-11-12 14:39 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-07 15:53 [dpdk-dev] [PATCH 1/1] mbuf: move pool pointer in first half Thomas Monjalon
2020-11-07 17:12 ` Jerin Jacob
2020-11-07 18:39 ` Thomas Monjalon
2020-11-07 19:05 ` Jerin Jacob
2020-11-07 20:33 ` Thomas Monjalon
2020-11-09 5:18 ` Jerin Jacob
2020-11-09 8:04 ` Thomas Monjalon
2020-11-09 8:27 ` Jerin Jacob
2020-11-09 9:47 ` Bruce Richardson
2020-11-09 12:01 ` Jerin Jacob
2020-11-09 12:59 ` Thomas Monjalon
2020-11-09 13:35 ` Jerin Jacob
2020-11-09 14:02 ` Thomas Monjalon
2020-11-09 14:08 ` Jerin Jacob
2020-11-09 14:42 ` Thomas Monjalon
2020-11-09 14:53 ` Jerin Jacob
2020-11-09 8:16 ` Morten Brørup
2020-11-09 10:06 ` [dpdk-dev] [dpdk-techboard] " Bruce Richardson
2020-11-09 10:21 ` Morten Brørup
2020-11-09 18:04 ` Stephen Hemminger
2020-11-10 7:15 ` Morten Brørup
2020-11-07 18:57 ` [dpdk-dev] " Morten Brørup
2020-11-09 10:08 ` Bruce Richardson
2020-11-09 10:30 ` Morten Brørup
2020-11-09 10:33 ` Ananyev, Konstantin
2020-11-09 10:36 ` Bruce Richardson
2020-11-09 11:24 ` Ananyev, Konstantin
2020-11-09 21:29 ` [dpdk-dev] [PATCH v2 0/2] move mbuf pool pointer Thomas Monjalon
2020-11-09 21:29 ` [dpdk-dev] [PATCH v2 1/2] drivers: disable OCTEON TX2 in 32-bit build Thomas Monjalon
2020-11-10 18:05 ` Jerin Jacob
2020-11-09 21:29 ` [dpdk-dev] [PATCH v2 2/2] mbuf: move pool pointer in first half Thomas Monjalon
2020-11-10 10:05 ` Morten Brørup
2020-11-10 10:44 ` Thomas Monjalon
2020-11-10 16:25 ` Olivier Matz
2020-11-10 18:06 ` Jerin Jacob
2020-11-12 14:39 ` Thomas Monjalon [this message]
2020-11-10 18:08 ` Stephen Hemminger
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=3880040.cf593ZQX9F@thomas \
--to=thomas@monjalon.net \
--cc=ajit.khaparde@broadcom.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=hemant.agrawal@nxp.com \
--cc=jerinj@marvell.com \
--cc=jerinjacobk@gmail.com \
--cc=konstantin.ananyev@intel.com \
--cc=mb@smartsharesystems.com \
--cc=mdr@ashroe.eu \
--cc=nhorman@tuxdriver.com \
--cc=olivier.matz@6wind.com \
--cc=viacheslavo@nvidia.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.