From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 8AD7FA0679 for ; Fri, 5 Apr 2019 18:23:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B35B61B563; Fri, 5 Apr 2019 18:23:38 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 248881B55F for ; Fri, 5 Apr 2019 18:23:36 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Apr 2019 09:23:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,313,1549958400"; d="scan'208";a="158588039" Received: from mhajkowx-mobl.ger.corp.intel.com ([10.104.116.181]) by fmsmga002.fm.intel.com with ESMTP; 05 Apr 2019 09:23:35 -0700 From: Hajkowski To: david.hunt@intel.com Cc: dev@dpdk.org, Marcin Hajkowski Date: Fri, 5 Apr 2019 18:22:02 +0200 Message-Id: <20190405162205.4824-1-marcinx.hajkowski@intel.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/3] rte_power enhancement 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190405162202.JMNPpor98ugrYyZ_UmQ2Pewrv4SJnjGtioumulvKirs@z> From: Marcin Hajkowski Enhance rte_power API user notification by returning more suitable value in case of power environment setting, add related tests and some internal data cleaning corrections. Please note that changes depends on patch (http://patchwork.dpdk.org/patch/52349/) which should be applied at first place. Marcin Hajkowski (3): power: return error in set env when power env already set power: reset function pointers on unset env power: add UTs for all power env types app/test/test_power.c | 156 +++++++++++++++++++++++++++-------- lib/librte_power/rte_power.c | 24 +++++- lib/librte_power/rte_power.h | 3 +- 3 files changed, 145 insertions(+), 38 deletions(-) -- 2.17.2