From: Wei Zhao Date: Fri, 13 Oct 2017 09:11:30 +0000 (+0800) Subject: net/i40e: fix build on FreeBSD X-Git-Tag: spdx-start~1335 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=562251e007ebe143031064708c3bee0d69cc961a;p=dpdk.git net/i40e: fix build on FreeBSD ENODATA can not be build in FreeBSD. Fixes: 7cbecc2f7424b ("net/i40e: support queue region set and flush") Signed-off-by: Wei Zhao --- diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c index 3155cf8d9c..b58e3fe626 100644 --- a/drivers/net/i40e/rte_pmd_i40e.c +++ b/drivers/net/i40e/rte_pmd_i40e.c @@ -2610,7 +2610,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; @@ -2726,7 +2726,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; }