From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id AACB51B679 for ; Fri, 13 Oct 2017 11:22:36 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP; 13 Oct 2017 02:22:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,370,1503385200"; d="scan'208";a="909573932" Received: from dpdk4.bj.intel.com ([172.16.182.85]) by FMSMGA003.fm.intel.com with ESMTP; 13 Oct 2017 02:22:34 -0700 From: Wei Zhao To: dev@dpdk.org Cc: Wei Zhao Date: Fri, 13 Oct 2017 17:11:30 +0800 Message-Id: <1507885890-12707-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] net/i40e: fix build error in FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 09:22:37 -0000 ENODATA can not be build in FreeBSD. Fixes: 7cbecc2f7424b ("net/i40e: support queue region set and flush") Signed-off-by: Wei Zhao --- 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