From: Stephen Hemminger <stephen@networkplumber.org>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: <dev@dpdk.org>, <stable@dpdk.org>
Subject: Re: [PATCH v2] app/testpmd: use burst IO for IEEE1588 forwarding
Date: Mon, 23 Nov 2026 10:38:20 -0800 [thread overview]
Message-ID: <20261123103820.0862e604@phoenix.local> (raw)
In-Reply-To: <awRvkp9PqarVGrqF@bricha3-mobl1.ger.corp.intel.com>
On Mon, 23 Nov 2026 16:53:38 +0000
Bruce Richardson <bruce.richardson@intel.com> wrote:
> > Since only called here:
> > > static bool
> > > -ieee1588_packet_fwd(struct fwd_stream *fs)
> > > +ieee1588_process_packet(struct fwd_stream *fs, struct rte_mbuf *mb)
> > > {
> >
> > Make it void not bool
> >
> > and drop the cast.
> >
>
> I thought about that, and thought it best to leave it as bool to allow for
> any future error checking we might need. The cast can be safely dropped,
> but I think some form of return value might be useful from this.
YAGNI
Since it is internal to the file, you can change API at will later
to return an int or whatever suits.
prev parent reply other threads:[~2026-11-23 18:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 15:11 [PATCH] app/test-pmd: use burst IO for IEEE1588 forwarding Bruce Richardson
2026-11-22 17:44 ` Stephen Hemminger
2026-11-23 12:26 ` [PATCH v2] app/testpmd: " Bruce Richardson
2026-11-23 16:50 ` Stephen Hemminger
2026-11-23 16:53 ` Bruce Richardson
2026-11-23 18:38 ` Stephen Hemminger [this message]
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=20261123103820.0862e604@phoenix.local \
--to=stephen@networkplumber.org \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=stable@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