DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/ice: fix ice_interrupt_handler panic when stop
@ 2022-11-11  6:22 Du, Frank
  2022-11-11  6:37 ` [PATCH v2] " Du, Frank
  2022-11-14  7:03 ` [PATCH v3] " Du, Frank
  0 siblings, 2 replies; 4+ messages in thread
From: Du, Frank @ 2022-11-11  6:22 UTC (permalink / raw)
  To: dev

rte_intr_callback_unregister may fail when irq cb is in handling,
use sync version to make sure unregister successfully.

Signed-off-by: Du, Frank <frank.du@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 7294f38edc..93f572b251 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2596,8 +2596,8 @@ ice_dev_close(struct rte_eth_dev *dev)
 	rte_intr_disable(intr_handle);
 
 	/* unregister callback func from eal lib */
-	rte_intr_callback_unregister(intr_handle,
-				     ice_interrupt_handler, dev);
+	rte_intr_callback_unregister_sync(intr_handle,
+				          ice_interrupt_handler, dev);
 
 	return ret;
 }
-- 
2.34.1


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

end of thread, other threads:[~2022-11-14 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11  6:22 [PATCH] net/ice: fix ice_interrupt_handler panic when stop Du, Frank
2022-11-11  6:37 ` [PATCH v2] " Du, Frank
2022-11-14  7:03 ` [PATCH v3] " Du, Frank
2022-11-14 10:20   ` Zhang, Qi Z

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