From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E365CA04B7; Fri, 11 Sep 2020 08:15:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B24CB1B75C; Fri, 11 Sep 2020 08:15:10 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id DA4BFDE0 for ; Fri, 11 Sep 2020 08:15:08 +0200 (CEST) IronPort-SDR: V/lkJJ+JVTCkSht0QhRmGW9nomltQO9DpCwiPeV/8liWSRngI49EJ/rtdp00zJzsn2kLZNHD/X xV8FYLkCb2OA== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222900635" X-IronPort-AV: E=Sophos;i="5.76,414,1592895600"; d="scan'208";a="222900635" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 23:15:07 -0700 IronPort-SDR: GKkkK/F8d1PYyfeUXaibL9usRMNdpeRyGpD26OpCfk2gz2oSSYp4nO/fuwFvKNxU7Wb1JY9FJM /Z62xHtLkqLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,414,1592895600"; d="scan'208";a="318176469" Received: from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 23:15:05 -0700 From: SteveX Yang To: dev@dpdk.org Cc: bruce.richardson@intel.com, wenzhuo.lu@intel.com, beilei.xing@intel.com, qiming.yang@intel.com, SteveX Yang Date: Fri, 11 Sep 2020 05:58:11 +0000 Message-Id: <20200911055811.16474-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910015525.59124-1-stevex.yang@intel.com> References: <20200910015525.59124-1-stevex.yang@intel.com> Subject: [dpdk-dev] [PATCH v2] app/test-pmd: fix meson build failed when enabled pmd_bonded 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" The depended pmd bond is missing for test-pmd. Add the pmd_bond to deps, and replace the relative MACRO name with new RTE_LIBRTE_BOND_PMD. Signed-off-by: SteveX Yang --- v1->v2: * replaced the bond pmd MACRO with the new one; * removed header paths cflags of bond pmd; --- app/test-pmd/cmdline.c | 10 +++++----- app/test-pmd/meson.build | 3 +++ app/test-pmd/parameters.c | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0f33948e8..4ddc557af 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -50,7 +50,7 @@ #include #include #include -#ifdef RTE_LIBRTE_PMD_BOND +#ifdef RTE_LIBRTE_BOND_PMD #include #include #endif @@ -603,7 +603,7 @@ static void cmd_help_long_parsed(void *parsed_result, " Show the bypass configuration for a bypass enabled NIC" " using the lowest port on the NIC.\n\n" -#ifdef RTE_LIBRTE_PMD_BOND +#ifdef RTE_LIBRTE_BOND_PMD "create bonded device (mode) (socket)\n" " Create a new bonded device with specific bonding mode and socket.\n\n" @@ -5738,7 +5738,7 @@ cmdline_parse_inst_t cmd_show_bypass_config = { }, }; -#ifdef RTE_LIBRTE_PMD_BOND +#ifdef RTE_LIBRTE_BOND_PMD /* *** SET BONDING MODE *** */ struct cmd_set_bonding_mode_result { cmdline_fixed_string_t set; @@ -6508,7 +6508,7 @@ cmdline_parse_inst_t cmd_set_bonding_agg_mode_policy = { }; -#endif /* RTE_LIBRTE_PMD_BOND */ +#endif /* RTE_LIBRTE_BOND_PMD */ /* *** SET FORWARDING MODE *** */ struct cmd_set_fwd_mode_result { @@ -19520,7 +19520,7 @@ cmdline_parse_ctx_t main_ctx[] = { (cmdline_parse_inst_t *)&cmd_set_bypass_event, (cmdline_parse_inst_t *)&cmd_set_bypass_timeout, (cmdline_parse_inst_t *)&cmd_show_bypass_config, -#ifdef RTE_LIBRTE_PMD_BOND +#ifdef RTE_LIBRTE_BOND_PMD (cmdline_parse_inst_t *) &cmd_set_bonding_mode, (cmdline_parse_inst_t *) &cmd_show_bonding_config, (cmdline_parse_inst_t *) &cmd_set_bonding_primary, diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index ea56e547b..7ad87d010 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -25,6 +25,9 @@ sources = files('5tswap.c', 'util.c') deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci'] +if dpdk_conf.has('RTE_LIBRTE_BOND_PMD') + deps += 'pmd_bond' +endif if dpdk_conf.has('RTE_LIBRTE_PDUMP') deps += 'pdump' endif diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 784515314..6402c9c12 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -39,7 +39,7 @@ #include #include #include -#ifdef RTE_LIBRTE_PMD_BOND +#ifdef RTE_LIBRTE_BOND_PMD #include #endif #include -- 2.17.1