dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] net/mlx5: release representor interrupt handler
@ 2025-11-12  7:40 Bing Zhao
  2025-11-12  8:35 ` Suanming Mou
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bing Zhao @ 2025-11-12  7:40 UTC (permalink / raw)
  To: viacheslavo, dev, rasland
  Cc: orika, dsosnowski, suanmingm, matan, thomas, bingz, Roi Dayan,
	xuemingl

From: Roi Dayan <roid@nvidia.com>

Looks like commit the cited commit removed the representor
interrupt handler cleanup by mistake. Fix it.

Fixes: 5cf0707fc7e9 ("net/mlx5: remove Rx queue data list from device")
Cc: xuemingl@nvidia.com

Signed-off-by: Roi Dayan <roid@nvidia.com>
---
 drivers/net/mlx5/mlx5.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 666216c21a..591420c77f 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -2389,6 +2389,11 @@ mlx5_dev_close(struct rte_eth_dev *dev)
 	/* Free the eCPRI flex parser resource. */
 	mlx5_flex_parser_ecpri_release(dev);
 	mlx5_flex_item_port_cleanup(dev);
+	if (priv->representor) {
+		/* Each representor has a dedicated interrupts handler */
+		rte_intr_instance_free(dev->intr_handle);
+		dev->intr_handle = NULL;
+	}
 	mlx5_indirect_list_handles_release(dev);
 #ifdef HAVE_MLX5_HWS_SUPPORT
 	mlx5_nta_sample_context_free(dev);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* RE: [PATCH 1/4] net/mlx5: release representor interrupt handler
  2025-11-12  7:40 [PATCH 1/4] net/mlx5: release representor interrupt handler Bing Zhao
@ 2025-11-12  8:35 ` Suanming Mou
  2025-11-17 13:48 ` Raslan Darawsheh
  2025-11-20 17:08 ` Kevin Traynor
  2 siblings, 0 replies; 6+ messages in thread
From: Suanming Mou @ 2025-11-12  8:35 UTC (permalink / raw)
  To: Bing Zhao, Slava Ovsiienko, dev@dpdk.org, Raslan Darawsheh
  Cc: Ori Kam, Dariusz Sosnowski, Matan Azrad,
	NBU-Contact-Thomas Monjalon (EXTERNAL), Roi Dayan, Xueming Li

Hi,

> -----Original Message-----
> From: Bing Zhao <bingz@nvidia.com>
> Sent: Wednesday, November 12, 2025 3:40 PM
> To: Slava Ovsiienko <viacheslavo@nvidia.com>; dev@dpdk.org; Raslan
> Darawsheh <rasland@nvidia.com>
> Cc: Ori Kam <orika@nvidia.com>; Dariusz Sosnowski
> <dsosnowski@nvidia.com>; Suanming Mou <suanmingm@nvidia.com>;
> Matan Azrad <matan@nvidia.com>; NBU-Contact-Thomas Monjalon
> (EXTERNAL) <thomas@monjalon.net>; Bing Zhao <bingz@nvidia.com>; Roi
> Dayan <roid@nvidia.com>; Xueming Li <xuemingl@nvidia.com>
> Subject: [PATCH 1/4] net/mlx5: release representor interrupt handler
> 
> From: Roi Dayan <roid@nvidia.com>
> 
> Looks like commit the cited commit removed the representor interrupt
> handler cleanup by mistake. Fix it.
> 
> Fixes: 5cf0707fc7e9 ("net/mlx5: remove Rx queue data list from device")
> Cc: xuemingl@nvidia.com
> 
> Signed-off-by: Roi Dayan <roid@nvidia.com>
Acked-by: Suanming Mou <suanmingm@nvidia.com>

Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/4] net/mlx5: release representor interrupt handler
  2025-11-12  7:40 [PATCH 1/4] net/mlx5: release representor interrupt handler Bing Zhao
  2025-11-12  8:35 ` Suanming Mou
@ 2025-11-17 13:48 ` Raslan Darawsheh
  2025-11-20 17:08 ` Kevin Traynor
  2 siblings, 0 replies; 6+ messages in thread
From: Raslan Darawsheh @ 2025-11-17 13:48 UTC (permalink / raw)
  To: Bing Zhao, viacheslavo, dev
  Cc: orika, dsosnowski, suanmingm, matan, thomas, Roi Dayan, xuemingl

Hi,


On 12/11/2025 9:40 AM, Bing Zhao wrote:
> From: Roi Dayan <roid@nvidia.com>
> 
> Looks like commit the cited commit removed the representor
> interrupt handler cleanup by mistake. Fix it.
> 
> Fixes: 5cf0707fc7e9 ("net/mlx5: remove Rx queue data list from device")
> Cc: xuemingl@nvidia.com
> 
> Signed-off-by: Roi Dayan <roid@nvidia.com>

Series applied to next-net-mlx,

Kindest regards
Raslan Darawsheh


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/4] net/mlx5: release representor interrupt handler
  2025-11-12  7:40 [PATCH 1/4] net/mlx5: release representor interrupt handler Bing Zhao
  2025-11-12  8:35 ` Suanming Mou
  2025-11-17 13:48 ` Raslan Darawsheh
@ 2025-11-20 17:08 ` Kevin Traynor
  2025-11-20 17:39   ` Thomas Monjalon
  2 siblings, 1 reply; 6+ messages in thread
From: Kevin Traynor @ 2025-11-20 17:08 UTC (permalink / raw)
  To: Bing Zhao, viacheslavo, dev, rasland
  Cc: orika, dsosnowski, suanmingm, matan, thomas, Roi Dayan, xuemingl,
	Shani Peretz

On 12/11/2025 07:40, Bing Zhao wrote:
> From: Roi Dayan <roid@nvidia.com>
> 
> Looks like commit the cited commit removed the representor
> interrupt handler cleanup by mistake. Fix it.
> 
> Fixes: 5cf0707fc7e9 ("net/mlx5: remove Rx queue data list from device")
> Cc: xuemingl@nvidia.com
> 

Hi,

Some of this series (see below) is fixing issues in older releases, but
does not include stable tag to indicate the fixes should be backported.

Just checking if this is deliberate, or an oversight and they should be
backported ?

thanks,
Kevin.

25.11 dbaed15366 - F net/mlx5: release representor interrupt handler
(Fixes issue in 21.11)

25.11 aef94343d3 - F common/mlx5: release unused mempool entries (Fixes
issue in  21.11 (partially fixed in 8947eebc999e @ 21.11))

25.11 8d1fe10768 - F net/mlx5/hws: fix buddy memory allocation (Fixes
issue in 22.11)


> Signed-off-by: Roi Dayan <roid@nvidia.com>
> ---
>  drivers/net/mlx5/mlx5.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
> index 666216c21a..591420c77f 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -2389,6 +2389,11 @@ mlx5_dev_close(struct rte_eth_dev *dev)
>  	/* Free the eCPRI flex parser resource. */
>  	mlx5_flex_parser_ecpri_release(dev);
>  	mlx5_flex_item_port_cleanup(dev);
> +	if (priv->representor) {
> +		/* Each representor has a dedicated interrupts handler */
> +		rte_intr_instance_free(dev->intr_handle);
> +		dev->intr_handle = NULL;
> +	}
>  	mlx5_indirect_list_handles_release(dev);
>  #ifdef HAVE_MLX5_HWS_SUPPORT
>  	mlx5_nta_sample_context_free(dev);


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/4] net/mlx5: release representor interrupt handler
  2025-11-20 17:08 ` Kevin Traynor
@ 2025-11-20 17:39   ` Thomas Monjalon
  2025-11-20 17:59     ` Kevin Traynor
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Monjalon @ 2025-11-20 17:39 UTC (permalink / raw)
  To: rasland, Kevin Traynor
  Cc: Bing Zhao, viacheslavo, dev, orika, dsosnowski, suanmingm, matan,
	Roi Dayan, xuemingl, Shani Peretz

20/11/2025 18:08, Kevin Traynor:
> On 12/11/2025 07:40, Bing Zhao wrote:
> > From: Roi Dayan <roid@nvidia.com>
> > 
> > Looks like commit the cited commit removed the representor
> > interrupt handler cleanup by mistake. Fix it.
> > 
> > Fixes: 5cf0707fc7e9 ("net/mlx5: remove Rx queue data list from device")
> > Cc: xuemingl@nvidia.com
> > 
> 
> Hi,
> 
> Some of this series (see below) is fixing issues in older releases, but
> does not include stable tag to indicate the fixes should be backported.
> 
> Just checking if this is deliberate, or an oversight and they should be
> backported ?
> 
> thanks,
> Kevin.
> 
> 25.11 dbaed15366 - F net/mlx5: release representor interrupt handler
> (Fixes issue in 21.11)
> 
> 25.11 aef94343d3 - F common/mlx5: release unused mempool entries (Fixes
> issue in  21.11 (partially fixed in 8947eebc999e @ 21.11))
> 
> 25.11 8d1fe10768 - F net/mlx5/hws: fix buddy memory allocation (Fixes
> issue in 22.11)

I think it is an oversight.
Usually I fix it myself, but this time I missed some.

Raslan, please run devtools/check-git-log.sh for each patch,
it is raising such issue.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/4] net/mlx5: release representor interrupt handler
  2025-11-20 17:39   ` Thomas Monjalon
@ 2025-11-20 17:59     ` Kevin Traynor
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Traynor @ 2025-11-20 17:59 UTC (permalink / raw)
  To: Thomas Monjalon, rasland
  Cc: Bing Zhao, viacheslavo, dev, orika, dsosnowski, suanmingm, matan,
	Roi Dayan, xuemingl, Shani Peretz

On 20/11/2025 17:39, Thomas Monjalon wrote:
> 20/11/2025 18:08, Kevin Traynor:
>> On 12/11/2025 07:40, Bing Zhao wrote:
>>> From: Roi Dayan <roid@nvidia.com>
>>>
>>> Looks like commit the cited commit removed the representor
>>> interrupt handler cleanup by mistake. Fix it.
>>>
>>> Fixes: 5cf0707fc7e9 ("net/mlx5: remove Rx queue data list from device")
>>> Cc: xuemingl@nvidia.com
>>>
>>
>> Hi,
>>
>> Some of this series (see below) is fixing issues in older releases, but
>> does not include stable tag to indicate the fixes should be backported.
>>
>> Just checking if this is deliberate, or an oversight and they should be
>> backported ?
>>
>> thanks,
>> Kevin.
>>
>> 25.11 dbaed15366 - F net/mlx5: release representor interrupt handler
>> (Fixes issue in 21.11)
>>
>> 25.11 aef94343d3 - F common/mlx5: release unused mempool entries (Fixes
>> issue in  21.11 (partially fixed in 8947eebc999e @ 21.11))
>>
>> 25.11 8d1fe10768 - F net/mlx5/hws: fix buddy memory allocation (Fixes
>> issue in 22.11)
> 
> I think it is an oversight.
> Usually I fix it myself, but this time I missed some.
> 

No problem, they all apply cleanly (24.11). Just checking builds now.

> Raslan, please run devtools/check-git-log.sh for each patch,
> it is raising such issue.
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-20 17:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12  7:40 [PATCH 1/4] net/mlx5: release representor interrupt handler Bing Zhao
2025-11-12  8:35 ` Suanming Mou
2025-11-17 13:48 ` Raslan Darawsheh
2025-11-20 17:08 ` Kevin Traynor
2025-11-20 17:39   ` Thomas Monjalon
2025-11-20 17:59     ` Kevin Traynor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).