* [PATCH] net/ice: ensure correct vector flag after reconfiguration
@ 2026-01-28 11:41 Bruce Richardson
2026-01-29 9:42 ` Loftus, Ciara
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2026-01-28 11:41 UTC (permalink / raw)
To: dev; +Cc: ciara.loftus, Bruce Richardson
After configuring the Tx path to be used, the ice driver sets the
tx_vec_allowed flag if a vector path is chosen. However, on
reconfiguration, the flag is not cleared if a scalar path is chosen,
leading to crashes on driver shutdown as the wrong cleanup function
would be used in that case. Fix issue, by always setting the flag to
true or false explicitly.
Fixes: d3206e40c435 ("net/ice: use common Tx path selection infrastructure")
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
drivers/net/intel/ice/ice_rxtx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/intel/ice/ice_rxtx.c b/drivers/net/intel/ice/ice_rxtx.c
index 59ff4c31c8..816733819f 100644
--- a/drivers/net/intel/ice/ice_rxtx.c
+++ b/drivers/net/intel/ice/ice_rxtx.c
@@ -3721,8 +3721,8 @@ ice_set_tx_function(struct rte_eth_dev *dev)
ICE_TX_DEFAULT);
out:
- if (ice_tx_path_infos[ad->tx_func_type].features.simd_width >= RTE_VECT_SIMD_256)
- ad->tx_vec_allowed = true;
+ ad->tx_vec_allowed =
+ (ice_tx_path_infos[ad->tx_func_type].features.simd_width >= RTE_VECT_SIMD_256);
dev->tx_pkt_burst = mbuf_check ? ice_xmit_pkts_check :
ice_tx_path_infos[ad->tx_func_type].pkt_burst;
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] net/ice: ensure correct vector flag after reconfiguration
2026-01-28 11:41 [PATCH] net/ice: ensure correct vector flag after reconfiguration Bruce Richardson
@ 2026-01-29 9:42 ` Loftus, Ciara
2026-01-29 11:56 ` Bruce Richardson
0 siblings, 1 reply; 3+ messages in thread
From: Loftus, Ciara @ 2026-01-29 9:42 UTC (permalink / raw)
To: Richardson, Bruce, dev@dpdk.org
> Subject: [PATCH] net/ice: ensure correct vector flag after reconfiguration
>
> After configuring the Tx path to be used, the ice driver sets the
> tx_vec_allowed flag if a vector path is chosen. However, on
> reconfiguration, the flag is not cleared if a scalar path is chosen,
> leading to crashes on driver shutdown as the wrong cleanup function
> would be used in that case. Fix issue, by always setting the flag to
> true or false explicitly.
>
> Fixes: d3206e40c435 ("net/ice: use common Tx path selection infrastructure")
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Thanks for catching this Bruce.
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
> ---
> drivers/net/intel/ice/ice_rxtx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/intel/ice/ice_rxtx.c b/drivers/net/intel/ice/ice_rxtx.c
> index 59ff4c31c8..816733819f 100644
> --- a/drivers/net/intel/ice/ice_rxtx.c
> +++ b/drivers/net/intel/ice/ice_rxtx.c
> @@ -3721,8 +3721,8 @@ ice_set_tx_function(struct rte_eth_dev *dev)
> ICE_TX_DEFAULT);
>
> out:
> - if (ice_tx_path_infos[ad->tx_func_type].features.simd_width >=
> RTE_VECT_SIMD_256)
> - ad->tx_vec_allowed = true;
> + ad->tx_vec_allowed =
> + (ice_tx_path_infos[ad->tx_func_type].features.simd_width >=
> RTE_VECT_SIMD_256);
>
> dev->tx_pkt_burst = mbuf_check ? ice_xmit_pkts_check :
> ice_tx_path_infos[ad-
> >tx_func_type].pkt_burst;
> --
> 2.51.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net/ice: ensure correct vector flag after reconfiguration
2026-01-29 9:42 ` Loftus, Ciara
@ 2026-01-29 11:56 ` Bruce Richardson
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2026-01-29 11:56 UTC (permalink / raw)
To: Loftus, Ciara; +Cc: dev@dpdk.org
On Thu, Jan 29, 2026 at 09:42:06AM +0000, Loftus, Ciara wrote:
> > Subject: [PATCH] net/ice: ensure correct vector flag after reconfiguration
> >
> > After configuring the Tx path to be used, the ice driver sets the
> > tx_vec_allowed flag if a vector path is chosen. However, on
> > reconfiguration, the flag is not cleared if a scalar path is chosen,
> > leading to crashes on driver shutdown as the wrong cleanup function
> > would be used in that case. Fix issue, by always setting the flag to
> > true or false explicitly.
> >
> > Fixes: d3206e40c435 ("net/ice: use common Tx path selection infrastructure")
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
>
> Thanks for catching this Bruce.
>
> Acked-by: Ciara Loftus <ciara.loftus@intel.com>
>
Squashed to original commit on next-net-intel-tree
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-29 11:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28 11:41 [PATCH] net/ice: ensure correct vector flag after reconfiguration Bruce Richardson
2026-01-29 9:42 ` Loftus, Ciara
2026-01-29 11:56 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox