[dpdk-dev] net/i40e: fix build error in FreeBSD

Message ID 1507885890-12707-1-git-send-email-wei.zhao1@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Zhao1, Wei Oct. 13, 2017, 9:11 a.m. UTC
  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(-)
  

Comments

Thomas Monjalon Oct. 13, 2017, 10:33 a.m. UTC | #1
13/10/2017 11:11, 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>

Applied, thanks
  

Patch

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;
 	}