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 9F9AAA0548; Thu, 2 Jun 2022 16:01:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5282240691; Thu, 2 Jun 2022 16:01:38 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 68DFD4021E for ; Thu, 2 Jun 2022 16:01:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654178495; x=1685714495; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=qIBclAei2zz2h+SKP4AxLbOP+FQGc4Y+0O8sD2yBeXc=; b=ZKFafum0JOq2L6a/XVC5QWSHBQzABxq0G7DZrykySar6XYvT80s7npru Q+73oNpe8exWlkAE1Cr8Yt4IKudJXZk2rfvLCVy/2JehNxQeiK1ieHP8L ADyF75S7B6lodI3LETFMpjU9vkgFqhKZTzBJmvUlMPZ4oGYzWEfHUmaFi 72zyMKtwiibaRfnz4W6EQOcc251KBS4mkHFokK4XduxskB7yxM/yYLu0Z LU2kmdybMowBvZxWWfYhNpcEjM9I6Al5No9CGTdzhoTuguYiwbR8xsadf OhEO/zXGG6O2gqUPnKDiZ+9aB4fM3lbpo1hI5niUmLJEfh8qLK8m+x8ki A==; X-IronPort-AV: E=McAfee;i="6400,9594,10365"; a="362328625" X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="362328625" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 07:01:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="721313989" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga001.fm.intel.com with ESMTP; 02 Jun 2022 07:01:34 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 2 Jun 2022 07:01:33 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 2 Jun 2022 07:01:33 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 2 Jun 2022 07:01:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OP32sf00whHEmxctoEB4vYa96TGZ5fIGglOzn4XScO6ItN49e+/FvR18w12k4dkqri+vQf8im6HBmKS3gjV4UDfJ3IVywdpzNCGcHxAbbzMPxCJ//VjEbspz41Qw1xWdINgqQbstE+GlTFTiDYP2ljFD2PDNSQIc0tG1RVmKujUWFhEipDiCVE8E30uhKwzGtT/HFbMgYpAHb0limWJ2wnQQzYcWSxQbNLO7zxJlZ8LGb50Habj3KZADseC1PJX2S7YMRZveFEiW0l0L0ujIL42Mhbz27soQF7s5obON5Kkq1bkjfMGneEYnYOUFYoUXN/FOYgxFs4e0fL66fJlfwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=75/MH+PFbYcx4pevYWhSUtjL40u2aw1SurzsHf8PaNc=; b=V8aUBMrPgM0Lx7pSqvMdrqhjdMRaKjQ3hk+KIeOiZk9Nu7j2rYXxLXrSLntlPuUINXJLgW/fSaRKbbqJ8Dfk58Jlo4EcZd+vXHQ/OMjPeURQOBefFjigO/32NuvT6qsBfzIj1JSiOn/RjhRDCLTYJio8eTMM7hKaf8SCj3hbI0HRSZOCQGnEXO+r/xUHqmqZjyFzyJUCFO5OkB/O/EfufmW8nWwdxA+Pti2kd2kCMMcrSlljuBQ1OaQjSuu8/I6z5EkSR/3wj/h+UjfP+SEOWzHcwshErzgqxSAKCKBzt0ediBeQeMNbqtUhHSBABOuQOSjWE2BzXSZLpw4EtIapAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from BN6PR11MB1251.namprd11.prod.outlook.com (2603:10b6:404:48::10) by CY4PR11MB1352.namprd11.prod.outlook.com (2603:10b6:903:2a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 2 Jun 2022 14:01:32 +0000 Received: from BN6PR11MB1251.namprd11.prod.outlook.com ([fe80::5877:3176:59f4:11]) by BN6PR11MB1251.namprd11.prod.outlook.com ([fe80::5877:3176:59f4:11%11]) with mapi id 15.20.5314.014; Thu, 2 Jun 2022 14:01:31 +0000 Message-ID: <09b1a2bc-1593-063b-9b7f-ee1019214365@intel.com> Date: Thu, 2 Jun 2022 15:01:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.9.1 Subject: Re: [PATCH v5 2/4] lib/power: add get and set API for pause duration Content-Language: en-US To: Kevin Laatz , CC: Ray Kinsella , David Hunt References: <20220408140847.1319312-1-kevin.laatz@intel.com> <20220531095936.1965727-1-kevin.laatz@intel.com> <20220531095936.1965727-3-kevin.laatz@intel.com> From: "Burakov, Anatoly" In-Reply-To: <20220531095936.1965727-3-kevin.laatz@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0280.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:195::15) To BN6PR11MB1251.namprd11.prod.outlook.com (2603:10b6:404:48::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6d08f19-34e2-4fce-b9ce-08da44a06558 X-MS-TrafficTypeDiagnostic: CY4PR11MB1352:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: THTOoHiXtpngR9o/U+FUY4ijyrsPb8EDuGcCO00mQD19khK3AKI9OADoVsuiZI4zFlbaip46ZgCFaZpvtPpG3rxSMn1fChHNPA85OZMYBAhWLVFYiiuimBJT7PWlhY4aAwiG4yCP6zQ+Za80VEtasTBgIFLOLRBB5IxgfrFO0wDkLze8gnrQrAFi8V//fmNf+Uh4TFKYJZPsgF24RkectcQZd2oa0OYc09ip+GiNFCanGBkvPk2lzG2nRUAiyQRpiPw8EqxE6KGawzWxJrrwa5E8US6Jg83JINsDQYFXbJ6fFjMVc7ab/nq1JzltgU1SNLbyRu4sthKjW1QZ2WAIhrl9jdLvV0R+ZxNpxgZL5IpG/9/8taBU8LchtX3ry1+DV6B3UdQAQQ4NJE/qYOhJZmPW1QyFSwp86Bv+ptspF0DA/EpGRq0QuD70q6+FYO+zTrcLWFJx2FnuYJLln7CVRREFL3q/JVEOTqJj9u8jVFBBYA2+WCCLiU1kXaqV0JmBliTmlgSdBQ8d6qeWf0isJPtTWLBigxtdXykPg+PRUJwXqNBFlwAVCSL3ItMIqT2sYUY+v/Sif+wIDb4F5Sgec0wUNC1Z1pbJKWHLYE+FbfTCZc90Ufu+UBIsDFhdfyn0zSNa7OMHcyAdMP89hObMrB2RKc3DNP/Rb2/moLok71l7bJ4VZRdTBi0nyIpU0OmAmCeatIUHMndFYR5Ruin0qB5RHJGbQJaL/2PksGvlsBE= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB1251.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(36756003)(5660300002)(66476007)(8936002)(508600001)(38100700002)(66556008)(2906002)(31686004)(6666004)(26005)(83380400001)(86362001)(2616005)(6512007)(6506007)(82960400001)(53546011)(54906003)(6486002)(66946007)(4326008)(107886003)(31696002)(186003)(316002)(8676002)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?THBlZUlLaUpVYUJxbmlERVRTYms0WjBOdFFyd0JmeUhCbWlMYXliNHFaZERY?= =?utf-8?B?eFpRWWZLYTRBNThPOGNZRUlqQy9jU1l1SHZROGN5aGRPMDZEdnBxaEU1VkU0?= =?utf-8?B?c05DTEJNS1dsS216UE1mWUtoYko4KytyZVpaYTJhTzA5RjJVZjgxTVRyWnNm?= =?utf-8?B?YkRHTHlQa2Jhdnpxa3dVU3cvQmhTVUhnRThuN0ZORTVYWDZ0aHh6N3lvZ2pP?= =?utf-8?B?TjY4cm40TmdtTlZ5dkxJL3FHbkxMSHFScjMzS2w5WUFqVElNMWU4VHo4aHRp?= =?utf-8?B?ZWx6dlErVjdGbFhHQWRBREgrRDk3RUxPd0ZPdk5PVStmWnNXMG0yZzJLaHpj?= =?utf-8?B?N3RjbFNVa0JvTHVsejF5RGNwV05xUkdWbVd6L21NU3BsNDZK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h0ZHpFVGpmeU40VTkydDNUb0dCOW52a25QQzc0N1Qv?= =?utf-8?B?R0NWN1pFeENNMWxVUHhRQ2tYdElTbGUyYXdHbjYwMU93RDFWS0oxdVphc1dQ?= =?utf-8?B?Y2lpcmNHc2lTQURlcVl3WkxUdW1OdzRKZS9Wem1ENjBrUEtrVGxaclpDQW85?= =?utf-8?Q?8aIVc9ZphE3h4Ko4=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: e6d08f19-34e2-4fce-b9ce-08da44a06558 X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB1251.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2022 14:01:31.8834 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FRsBmwmXhuIpb+J9Whomt8cK1l/1vxhme7UUGpBBsbvJ8Y1q/J1VwBNcOOCndK4Z3d9+Su1W59xQSq7FvCbxVtUP4INk0kAnuEQcaYNkTe8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1352 X-OriginatorOrg: intel.com 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 On 31-May-22 10:59 AM, Kevin Laatz wrote: > Add new get/set API for configuring 'pause_duration' which used to adjust > the pause mode callback duration. > > Signed-off-by: Kevin Laatz > Acked-by: Ray Kinsella > Acked-by: Anatoly Burakov > Tested-by: David Hunt > > --- > v5: add doc entry for new API > v3: changed printf to RTE_LOG > --- > doc/guides/prog_guide/power_man.rst | 6 ++++++ > lib/power/rte_power_pmd_mgmt.c | 25 +++++++++++++++++++++-- > lib/power/rte_power_pmd_mgmt.h | 31 +++++++++++++++++++++++++++++ > lib/power/version.map | 2 ++ > 4 files changed, 62 insertions(+), 2 deletions(-) > > diff --git a/doc/guides/prog_guide/power_man.rst b/doc/guides/prog_guide/power_man.rst > index 5d345f6eb9..f22513b324 100644 > --- a/doc/guides/prog_guide/power_man.rst > +++ b/doc/guides/prog_guide/power_man.rst > @@ -258,6 +258,12 @@ API Overview for Ethernet PMD Power Management > * **Set Emptypoll Max**: Set the number of empty polls to wait before entering > sleep state. > > +* **Get Pause Duration**: Get the configured duration (ms) to be used in the > + Pause callback. > + > +* **Set Pause Duration**: Set the duration of the pause (ms) used in the Pause > + mode callback. > + Is it not microseconds rather than milliseconds? -- Thanks, Anatoly