From: Wei Zhao <wei.zhao1@intel.com>
To: dev@dpdk.org
Cc: Wei Zhao <wei.zhao1@intel.com>
Subject: [dpdk-dev] [PATCH] net/i40e: fix build error in FreeBSD
Date: Fri, 13 Oct 2017 17:11:30 +0800 [thread overview]
Message-ID: <1507885890-12707-1-git-send-email-wei.zhao1@intel.com> (raw)
ENODATA can not be build in FreeBSD.
Fixes: 7cbecc2f7424b ("net/i40e: support queue region set and flush")
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
drivers/net/i40e/rte_pmd_i40e.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c
index 4bc1d0c..22a7da0 100644
--- a/drivers/net/i40e/rte_pmd_i40e.c
+++ b/drivers/net/i40e/rte_pmd_i40e.c
@@ -2580,7 +2580,7 @@ i40e_queue_region_set_flowtype(struct i40e_pf *pf,
if (i == info->queue_region_number) {
PMD_DRV_LOG(ERR, "that region id has not been set before");
- ret = -ENODATA;
+ ret = -EINVAL;
return ret;
}
region_index = i;
@@ -2696,7 +2696,7 @@ i40e_queue_region_set_user_priority(struct i40e_pf *pf,
if (i == info->queue_region_number) {
PMD_DRV_LOG(ERR, "that region id has not been set before");
- ret = -ENODATA;
+ ret = -EINVAL;
return ret;
}
--
2.7.4
next reply other threads:[~2017-10-13 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-13 9:11 Wei Zhao [this message]
2017-10-13 10:33 ` Thomas Monjalon
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=1507885890-12707-1-git-send-email-wei.zhao1@intel.com \
--to=wei.zhao1@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).