From: Alejandro Lucero <alejandro.lucero@netronome.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 3/3] nfp: fix problem with rx interrupts
Date: Tue, 21 Mar 2017 10:43:21 +0000 [thread overview]
Message-ID: <1490093001-15710-3-git-send-email-alejandro.lucero@netronome.com> (raw)
In-Reply-To: <1490093001-15710-1-git-send-email-alejandro.lucero@netronome.com>
Current code enables RX interrupts even if this it not
requested.
Fixes: ea121b28316d (\"net/nfp: add Rx interrupts\")
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
---
drivers/net/nfp/nfp_net.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c
index 6155d7c..a1ad97a 100644
--- a/drivers/net/nfp/nfp_net.c
+++ b/drivers/net/nfp/nfp_net.c
@@ -708,7 +708,8 @@ static void nfp_net_read_mac(struct nfp_net_hw *hw)
return -1;
}
- nfp_configure_rx_interrupt(dev, intr_handle);
+ if (rte_intr_dp_is_en(intr_handle))
+ nfp_configure_rx_interrupt(dev, intr_handle);
rte_intr_enable(intr_handle);
--
1.9.1
next prev parent reply other threads:[~2017-03-21 10:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 10:43 [dpdk-dev] [PATCH 1/3] nfp: clean tx descriptor flags Alejandro Lucero
2017-03-21 10:43 ` [dpdk-dev] [PATCH 2/3] nfp: fix problem with pkt_len to data_len conversion Alejandro Lucero
2017-03-21 10:43 ` Alejandro Lucero [this message]
2017-03-21 16:03 ` [dpdk-dev] [PATCH 1/3] nfp: clean tx descriptor flags Ferruh Yigit
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=1490093001-15710-3-git-send-email-alejandro.lucero@netronome.com \
--to=alejandro.lucero@netronome.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).