[dpdk-dev] net/i40e: fix build error in FreeBSD
Checks
Commit Message
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
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
@@ -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;
}