* [dpdk-dev] [PATCH] net/i40e: fix build error in FreeBSD
@ 2017-10-13 9:11 Wei Zhao
2017-10-13 10:33 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Wei Zhao @ 2017-10-13 9:11 UTC (permalink / raw)
To: dev; +Cc: Wei Zhao
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-13 10:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-13 9:11 [dpdk-dev] [PATCH] net/i40e: fix build error in FreeBSD Wei Zhao
2017-10-13 10:33 ` Thomas Monjalon
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).