From: "Medvedkin, Vladimir" <vladimir.medvedkin@intel.com>
To: Bruce Richardson <bruce.richardson@intel.com>, <dev@dpdk.org>
Cc: <stable@dpdk.org>
Subject: Re: [PATCH 1/2] net/iavf: fix missing check for interrupt errors
Date: Tue, 18 Mar 2025 12:35:01 +0000 [thread overview]
Message-ID: <3c869fa2-e34f-49c7-a8ac-5aa5bfa05caa@intel.com> (raw)
In-Reply-To: <20250310131116.557117-1-bruce.richardson@intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
On 10/03/2025 13:11, Bruce Richardson wrote:
> When registering interrupts, there was no check if the registration of
> the interrupt succeeded. Add in such a check, and go to fallback path
> if the check fails. This prevents errors on FreeBSD due to missed
> admin queue messages.
>
> Fixes: cd3b124955d4 ("net/iavf: enable interrupt polling")
> Cc: stable@dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> drivers/net/intel/iavf/iavf_ethdev.c | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
> index 9cd2b0c867..1ab84b0bfc 100644
> --- a/drivers/net/intel/iavf/iavf_ethdev.c
> +++ b/drivers/net/intel/iavf/iavf_ethdev.c
> @@ -2825,18 +2825,16 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
> ð_dev->data->mac_addrs[0]);
>
>
> - if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_WB_ON_ITR) {
> - /* register callback func to eal lib */
> - rte_intr_callback_register(pci_dev->intr_handle,
> - iavf_dev_interrupt_handler,
> - (void *)eth_dev);
> + if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_WB_ON_ITR &&
> + /* register callback func to eal lib */
> + rte_intr_callback_register(pci_dev->intr_handle,
> + iavf_dev_interrupt_handler, (void *)eth_dev) == 0)
>
> /* enable uio intr after callback register */
> rte_intr_enable(pci_dev->intr_handle);
> - } else {
> + else
> rte_eal_alarm_set(IAVF_ALARM_INTERVAL,
> iavf_dev_alarm_handler, eth_dev);
> - }
>
> /* configure and enable device interrupt */
> iavf_enable_irq0(hw);
--
Regards,
Vladimir
next prev parent reply other threads:[~2025-03-18 12:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-10 13:11 Bruce Richardson
2025-03-10 13:11 ` [PATCH 2/2] net/iavf: fix crash on app exit on FreeBSD Bruce Richardson
2025-03-18 12:35 ` Medvedkin, Vladimir
2025-03-18 12:35 ` Medvedkin, Vladimir [this message]
2025-03-18 12:48 ` [PATCH 1/2] net/iavf: fix missing check for interrupt errors Bruce Richardson
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=3c869fa2-e34f-49c7-a8ac-5aa5bfa05caa@intel.com \
--to=vladimir.medvedkin@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=stable@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).