From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11231A0547; Wed, 21 Apr 2021 12:45:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0A79419EC; Wed, 21 Apr 2021 12:45:41 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id F1D40419D3; Wed, 21 Apr 2021 12:45:39 +0200 (CEST) IronPort-SDR: hjHqi9idCJh+raKYTHT/QHfP4ZzpkzT2Bzhh02GCzMcWE6vuZVC5uj7cJ8LnZH8OTy72JIEZTV rgdxHVa4RAfw== X-IronPort-AV: E=McAfee;i="6200,9189,9960"; a="183166375" X-IronPort-AV: E=Sophos;i="5.82,238,1613462400"; d="scan'208";a="183166375" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2021 03:45:38 -0700 IronPort-SDR: wNS/3yESreZTcyTe3fduqT9gpsTx84L+KfO3P5DJv/7eb7C09HUKUt/okSTwG1cYYQ4PEojP2y n0/y8UheOGeQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,238,1613462400"; d="scan'208";a="534843675" Received: from silpixa00400215.ir.intel.com (HELO silpixa00400215.ger.corp.intel.com) ([10.237.223.24]) by orsmga004.jf.intel.com with ESMTP; 21 Apr 2021 03:45:37 -0700 From: Reshma Pattan To: dev@dpdk.org Cc: Reshma Pattan , david.hunt@intel.com, stable@dpdk.org Date: Wed, 21 Apr 2021 11:45:34 +0100 Message-Id: <20210421104534.17768-1-reshma.pattan@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] examples/vm_power_manager: remove vm channel number check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" VM channel number should not be validated against the host vm_power_manager coremask core indexes, as VM cores need not to be same as host cores. So remove this check, to allow all the vm channels to be added successfully. Fixes: b49c677a0d24 ("examples/vm_power: respect core mask") Cc: david.hunt@intel.com Cc: stable@dpdk.org Signed-off-by: Reshma Pattan --- examples/vm_power_manager/channel_manager.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/vm_power_manager/channel_manager.c b/examples/vm_power_manager/channel_manager.c index 458e37167..fe9156785 100644 --- a/examples/vm_power_manager/channel_manager.c +++ b/examples/vm_power_manager/channel_manager.c @@ -454,9 +454,6 @@ add_all_channels(const char *vm_name) CHANNEL_MGR_SOCKET_PATH, dir->d_name); continue; } - if (rte_lcore_index(channel_num) == -1) - continue; - /* if channel has not been added previously */ if (channel_exists(vm_info, channel_num)) continue; @@ -514,9 +511,6 @@ add_channels(const char *vm_name, unsigned *channel_list, } for (i = 0; i < len_channel_list; i++) { - if (rte_lcore_index(i) == -1) - continue; - if (channel_list[i] >= RTE_MAX_LCORE) { RTE_LOG(INFO, CHANNEL_MANAGER, "Channel(%u) is out of range " "0...%d\n", channel_list[i], -- 2.17.1