From: "Du, Frank" <frank.du@intel.com>
To: dev@dpdk.org
Subject: [PATCH v2] net/ice: fix ice_interrupt_handler panic when stop
Date: Fri, 11 Nov 2022 14:37:29 +0800 [thread overview]
Message-ID: <20221111063729.874731-1-frank.du@intel.com> (raw)
In-Reply-To: <20221111062219.874370-1-frank.du@intel.com>
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..b7ce6b053f 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
next prev parent reply other threads:[~2022-11-11 6:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-11 6:22 [PATCH] " Du, Frank
2022-11-11 6:37 ` Du, Frank [this message]
2022-11-14 7:03 ` [PATCH v3] " Du, Frank
2022-11-14 10:20 ` Zhang, Qi Z
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=20221111063729.874731-1-frank.du@intel.com \
--to=frank.du@intel.com \
--cc=dev@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;
as well as URLs for NNTP newsgroup(s).