DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: dev@dpdk.org, stable@dpdk.org, Aman Singh <aman.deep.singh@intel.com>
Subject: Re: [PATCH] app/test-pmd: use burst IO for IEEE1588 forwarding
Date: Sun, 22 Nov 2026 09:44:51 -0800	[thread overview]
Message-ID: <20261122094451.5907535e@phoenix.local> (raw)
In-Reply-To: <20261118151155.2740034-1-bruce.richardson@intel.com>

On Wed, 18 Nov 2026 15:11:55 +0000
Bruce Richardson <bruce.richardson@intel.com> wrote:

> The IEEE1588 forwarder in test-pmd read a single packet at a time rather
> than using the burst size configuration parameter. This meant that it
> cannot be used with vector driver paths which require a minimum burst
> size for calling the Rx function.
> 
> Make the forwarding function respect the configured burst size and only
> process packets one at a time, not Rx them one-at-a-time.
> 
> Fixes: af75078fece3 ("first public release")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---

More detailed AI review had pre-existing observation.

Subject: Re: [PATCH] app/test-pmd: use burst IO for IEEE1588 forwarding

Applies cleanly to main. Rx path change is correct; Tx drop path still
frees the mbuf via common_fwd_stream_transmit().

Info

ieee1588_packet_fwd() returns true only if at least one packet was
forwarded. Other engines (macfwd, iofwd) return true whenever
nb_rx > 0, so busy-cycle accounting counts a burst of rejected
packets as idle here. This matches the old single-packet behaviour,
but with bursts it is simpler to follow the other engines:

	nb_rx = common_fwd_stream_receive(fs, pkts_burst,
					  nb_pkt_per_burst);
	for (i = 0; i < nb_rx; i++)
		ieee1588_process_packet(fs, pkts_burst[i]);

	return nb_rx > 0;

ieee1588_process_packet() could then return void.

  reply	other threads:[~2026-11-22 17:45 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 [this message]
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

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=20261122094451.5907535e@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=aman.deep.singh@intel.com \
    --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