DPDK patches and discussions
 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
  0 siblings, 1 reply; 2+ 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	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-12  8:35 UTC | newest]

Thread overview: 2+ 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

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).