From patchwork Fri Oct 13 09:11:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao1, Wei" X-Patchwork-Id: 30341 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 693D31B67B; Fri, 13 Oct 2017 11:22:38 +0200 (CEST) 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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; }