public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Ciara Loftus <ciara.loftus@intel.com>
Cc: <dev@dpdk.org>, <stable@dpdk.org>
Subject: Re: [PATCH v2 01/10] net/i40e: permit secondary process Rx path selection
Date: Fri, 13 Feb 2026 13:15:05 +0000	[thread overview]
Message-ID: <aY8j2R_06CbaRE-q@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20260205124627.371733-2-ciara.loftus@intel.com>

On Thu, Feb 05, 2026 at 12:46:18PM +0000, Ciara Loftus wrote:
> Commit 258f346f5d5e ("net/i40e: use same Rx path across processes")
> changed the way that secondary processes selected their Rx burst
> function. Instead of letting secondary processes select their own
> function, they now used the function selected by the primary process.
> However, the primary process only selects the function at device start,
> so if the primary process hadn't started the device by the time the
> secondary process was selecting its Rx burst function, the secondary
> process would not select the correct function.
> 
> This commit addresses this issue by allowing the secondary process to
> select the path if the device has not been started yet.
> 
> Fixes: 258f346f5d5e ("net/i40e: use same Rx path across processes")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
> ---
>  drivers/net/intel/i40e/i40e_rxtx.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/intel/i40e/i40e_rxtx.c b/drivers/net/intel/i40e/i40e_rxtx.c
> index 1c3586778c..3deeff165d 100644
> --- a/drivers/net/intel/i40e/i40e_rxtx.c
> +++ b/drivers/net/intel/i40e/i40e_rxtx.c
> @@ -3494,8 +3494,8 @@ i40e_set_rx_function(struct rte_eth_dev *dev)
>  	uint16_t i;
>  	enum rte_vect_max_simd rx_simd_width = i40e_get_max_simd_bitwidth();
>  
> -	/* The primary process selects the rx path for all processes. */
> -	if (rte_eal_process_type() != RTE_PROC_PRIMARY)
> +	/* If the device has started the function has already been selected. */
> +	if (dev->data->dev_started)
>  		goto out;
>  
There is no atomic ops or mutual exclusion here, so what happens if two
processes both call this function at the same time? Do both just get the
same result or do we end up with some conflicts?

  reply	other threads:[~2026-02-13 13:15 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-05 10:29 [PATCH 00/10] Fix multi process path selection in Intel drivers Ciara Loftus
2026-02-05 10:29 ` [PATCH 01/10] net/i40e: permit secondary process Rx path selection Ciara Loftus
2026-02-05 10:30 ` [PATCH 02/10] net/iavf: " Ciara Loftus
2026-02-05 10:30 ` [PATCH 03/10] net/ice: " Ciara Loftus
2026-02-05 10:30 ` [PATCH 04/10] net/idpf: prevent Rx path selection after device start Ciara Loftus
2026-02-05 10:30 ` [PATCH 05/10] net/cpfl: " Ciara Loftus
2026-02-05 10:30 ` [PATCH 06/10] net/i40e: permit secondary process Tx path selection Ciara Loftus
2026-02-05 10:30 ` [PATCH 07/10] net/iavf: " Ciara Loftus
2026-02-05 10:30 ` [PATCH 08/10] net/ice: " Ciara Loftus
2026-02-05 10:30 ` [PATCH 09/10] net/idpf: " Ciara Loftus
2026-02-05 10:30 ` [PATCH 10/10] net/cpfl: " Ciara Loftus
2026-02-05 12:46 ` [PATCH v2 00/10] Fix multi process path selection in Intel drivers Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 01/10] net/i40e: permit secondary process Rx path selection Ciara Loftus
2026-02-13 13:15     ` Bruce Richardson [this message]
2026-02-17 11:38       ` Loftus, Ciara
2026-02-05 12:46   ` [PATCH v2 02/10] net/iavf: " Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 03/10] net/ice: " Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 04/10] net/idpf: prevent Rx path selection after device start Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 05/10] net/cpfl: " Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 06/10] net/i40e: permit secondary process Tx path selection Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 07/10] net/iavf: " Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 08/10] net/ice: " Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 09/10] net/idpf: " Ciara Loftus
2026-02-05 12:46   ` [PATCH v2 10/10] net/cpfl: " Ciara Loftus
2026-02-18  9:49   ` [PATCH v3 00/10] Fix multi process path selection in Intel drivers Ciara Loftus
2026-02-18  9:49     ` [PATCH v3 01/10] net/i40e: permit secondary process Rx path selection Ciara Loftus
2026-02-18 10:03       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 02/10] net/iavf: " Ciara Loftus
2026-02-18 10:03       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 03/10] net/ice: " Ciara Loftus
2026-02-18 10:04       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 04/10] net/idpf: prevent Rx path selection after device start Ciara Loftus
2026-02-18 10:04       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 05/10] net/cpfl: " Ciara Loftus
2026-02-18 10:05       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 06/10] net/i40e: permit secondary process Tx path selection Ciara Loftus
2026-02-18 10:05       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 07/10] net/iavf: " Ciara Loftus
2026-02-18 10:06       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 08/10] net/ice: " Ciara Loftus
2026-02-18 10:08       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 09/10] net/idpf: " Ciara Loftus
2026-02-18 10:08       ` Bruce Richardson
2026-02-18  9:49     ` [PATCH v3 10/10] net/cpfl: " Ciara Loftus
2026-02-18 10:09       ` Bruce Richardson
2026-02-18 12:29     ` [PATCH v3 00/10] Fix multi process path selection in Intel drivers Bruce Richardson

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=aY8j2R_06CbaRE-q@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=ciara.loftus@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