From: Stephen Hemminger <stephen@networkplumber.org>
To: Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>
Cc: Nitin Saxena <nsaxena16@gmail.com>,
Nitin Saxena <nsaxena@marvell.com>,
Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>,
Robin Jarry <rjarry@redhat.com>,
Christophe Fontaine <cfontain@redhat.com>,
"dev@dpdk.org" <dev@dpdk.org>, Jerin Jacob <jerinj@marvell.com>
Subject: Re: [EXTERNAL] Re: [PATCH 1/2] node: add global node mbuf dynfield
Date: Fri, 4 Apr 2025 08:21:38 -0700 [thread overview]
Message-ID: <20250404082138.11549962@hermes.local> (raw)
In-Reply-To: <PH0PR18MB40861D73C3869C46BCCB4410DEA92@PH0PR18MB4086.namprd18.prod.outlook.com>
On Fri, 4 Apr 2025 08:11:07 +0000
Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com> wrote:
> > Hi Stephen,
> >
> > Thanks for commenting. See response inline.
> >
> > Regards,
> > Nitin
> >
> > On Tue, Apr 1, 2025 at 7:45 PM Stephen Hemminger
> > <stephen@networkplumber.org> wrote:
> > >
> > > On Tue, 1 Apr 2025 09:50:46 +0530
> > > Nitin Saxena <nsaxena@marvell.com> wrote:
> > >
> > > > +int rte_node_mbuf_dynfield_register(void)
> > > > +{
> > > > + struct node_mbuf_dynfield_mz *f = NULL;
> > > > + const struct rte_memzone *mz = NULL;
> > > > + int dyn_offset;
> > > > +
> > > > + RTE_BUILD_BUG_ON(sizeof(rte_node_mbuf_dynfield_t) <
> > RTE_NODE_MBUF_DYNFIELD_SIZE);
> > > > + RTE_BUILD_BUG_ON(sizeof(rte_node_mbuf_overload_fields_t) <
> > > > + RTE_NODE_MBUF_OVERLOADABLE_FIELDS_SIZE);
> > > > +
> > > > + mz =
> > rte_memzone_lookup(NODE_MBUF_DYNFIELD_MEMZONE_NAME);
> > >
> > > Seems wasteful to have a whole memzone for this, the data is small.
> > > Is there a reason it could not just be a global variable like timestamp.
> > >
> > Replaced usage of memzone with global variable in v2
>
> We need to use memzone to share the offset between primary and secondary
> processes I don’t see any other way.
Normally secondary just uses dynamic field lookup to find the offset.
next prev parent reply other threads:[~2025-04-04 15:21 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 4:20 [PATCH 0/2] node: add mbuf dynamic field for nodes Nitin Saxena
2025-04-01 4:20 ` [PATCH 1/2] node: add global node mbuf dynfield Nitin Saxena
2025-04-01 14:15 ` Stephen Hemminger
2025-04-03 10:27 ` Nitin Saxena
2025-04-04 8:11 ` [EXTERNAL] " Pavan Nikhilesh Bhagavatula
2025-04-04 15:21 ` Stephen Hemminger [this message]
2025-04-07 6:01 ` Nitin Saxena
2025-04-01 4:20 ` [PATCH 2/2] node: use node mbuf dynfield in ip4 nodes Nitin Saxena
2025-04-03 10:17 ` [PATCH v2 0/2] node: add mbuf dynamic field for nodes Nitin Saxena
2025-04-03 10:17 ` [PATCH v2 1/2] node: add global node mbuf dynfield Nitin Saxena
2025-04-03 10:17 ` [PATCH v2 2/2] node: use node mbuf dynfield in ip4 nodes Nitin Saxena
2025-04-04 7:12 ` [PATCH v3 0/2] node: add mbuf dynamic field for nodes Nitin Saxena
2025-04-04 7:12 ` [PATCH v3 1/2] node: add global node mbuf dynfield Nitin Saxena
2025-04-04 21:35 ` Stephen Hemminger
2025-04-04 7:12 ` [PATCH v3 2/2] node: use node mbuf dynfield in ip4 nodes Nitin Saxena
2025-04-07 7:47 ` [PATCH v4 0/2] node: add mbuf dynamic field for nodes Nitin Saxena
2025-04-07 7:47 ` [PATCH v4 1/2] node: add global node mbuf dynfield Nitin Saxena
2025-04-07 7:47 ` [PATCH v4 2/2] node: use node mbuf dynfield in ip4 nodes Nitin Saxena
2025-04-08 7:35 ` [PATCH v4 0/2] node: add mbuf dynamic field for nodes David Marchand
2025-04-08 8:42 ` Nitin Saxena
2025-04-09 13:55 ` [PATCH v5 " Nitin Saxena
2025-04-09 13:55 ` [PATCH v5 1/2] node: add global node mbuf dynfield Nitin Saxena
2025-04-18 19:03 ` Pavan Nikhilesh Bhagavatula
2025-04-28 10:42 ` Nitin Saxena
2025-04-09 13:55 ` [PATCH v5 2/2] node: use node mbuf dynfield in ip4 nodes Nitin Saxena
2025-04-28 10:37 ` [PATCH v6 0/2] node: add mbuf dynamic field for nodes Nitin Saxena
2025-04-28 10:37 ` [PATCH v6 1/2] node: add global node mbuf dynfield Nitin Saxena
2025-05-09 7:16 ` Pavan Nikhilesh Bhagavatula
2025-04-28 10:37 ` [PATCH v6 2/2] node: use node mbuf dynfield in ip4 nodes Nitin Saxena
2025-05-09 7:17 ` Pavan Nikhilesh Bhagavatula
2025-05-05 17:20 ` [PATCH v6 0/2] node: add mbuf dynamic field for nodes Pavan Nikhilesh Bhagavatula
2025-06-11 11:45 ` Thomas Monjalon
2025-06-19 15:51 ` Nitin Saxena
2025-06-19 15:44 ` [PATCH v7 " Nitin Saxena
2025-06-19 15:44 ` [PATCH v7 1/2] node: add global node mbuf dynfield Nitin Saxena
2025-06-26 13:59 ` Stephen Hemminger
2025-06-26 14:14 ` Nitin Saxena
2025-06-27 21:36 ` Thomas Monjalon
2025-06-19 15:44 ` [PATCH v7 2/2] node: use node mbuf dynfield in ip4 nodes Nitin Saxena
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=20250404082138.11549962@hermes.local \
--to=stephen@networkplumber.org \
--cc=cfontain@redhat.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=ndabilpuram@marvell.com \
--cc=nsaxena16@gmail.com \
--cc=nsaxena@marvell.com \
--cc=pbhagavatula@marvell.com \
--cc=rjarry@redhat.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.