From patchwork Mon Oct 9 14:38:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rybalchenko, Kirill" X-Patchwork-Id: 29955 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 11FD61B1B9; Mon, 9 Oct 2017 16:38:14 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B8B181B1B5 for ; Mon, 9 Oct 2017 16:38:12 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2017 07:38:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,500,1500966000"; d="scan'208";a="321182649" Received: from silpixa00389036.ir.intel.com (HELO silpixa00389036.ger.corp.intel.com) ([10.237.223.231]) by fmsmga004.fm.intel.com with ESMTP; 09 Oct 2017 07:38:09 -0700 From: Kirill Rybalchenko To: dev@dpdk.org Cc: kirill.rybalchenko@intel.com, andrey.chilikin@intel.com, beilei.xing@intel.com, jingjing.wu@intel.com Date: Mon, 9 Oct 2017 15:38:02 +0100 Message-Id: <1507559882-98853-1-git-send-email-kirill.rybalchenko@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH] app/testpmd: fix compilation with I40E disabled 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" Precompiler instructions #ifdef RTE_LIBRTE_I40E_PMD ... #endif were not placed correctly, which caused number of compilation errors if I40E PMD is disabled. Fixes: 5a4806d304e0 ("app/testpmd: support updating pctype mapping") Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 20e04f7..8dc5c85 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -13843,8 +13843,8 @@ cmd_ddp_info_parsed( free(proto); ret = 0; -#endif no_print_return: +#endif if (ret == -ENOTSUP) printf("Function not supported in PMD driver\n"); close_ddp_package_file(pkg); @@ -14390,17 +14390,16 @@ cmd_pctype_mapping_update_parsed( #ifdef RTE_LIBRTE_I40E_PMD struct rte_pmd_i40e_flow_type_mapping mapping; unsigned int i; -#endif unsigned int nb_item; unsigned int pctype_list[RTE_PMD_I40E_PCTYPE_MAX]; +#endif if (port_id_is_invalid(res->port_id, ENABLED_WARN)) return; +#ifdef RTE_LIBRTE_I40E_PMD nb_item = parse_item_list(res->pctype_list, "pctypes", RTE_PMD_I40E_PCTYPE_MAX, pctype_list, 1); - -#ifdef RTE_LIBRTE_I40E_PMD mapping.flow_type = res->flow_type; for (i = 0, mapping.pctype = 0ULL; i < nb_item; i++) mapping.pctype |= (1ULL << pctype_list[i]);