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 67E0CA04FF for ; Fri, 29 Apr 2022 12:04:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57D1D4281C; Fri, 29 Apr 2022 12:04:50 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7E442410E3; Fri, 29 Apr 2022 12:04:48 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23SN51Gq010702; Fri, 29 Apr 2022 03:04:47 -0700 Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam07lp2041.outbound.protection.outlook.com [104.47.56.41]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fr49gt7ug-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 03:04:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5NIG0qQWexK8QMStkritAyO3NBG/Zxa1LWGvyeNlAFB+WmcigjUeP4YDY20CvbRtHhGx0oJk4qe76KK9sscst9hs1wAOUPXbzzzed7VBCXPkLj6z3KPjBr5gNJPzD50llcRQsUvSXSW2ofXwnNzWvqygSIm7BI3r9jI8yvT7Vx1dIvOcKcvPgfGef/TEXXccaJdTM0kik2mWVVHQo6kiSBXLF5THd2m7mXwGllDwI81ydfBn6V6mWRMuZjY8EW2WBKT7mnEJrdsg9GG9Pok2tVb6FzQpunK0GZc9bLpS2F7qXjXYaudA+Bq+QTO7Y8C2818Unl/cTpDnW9o1FyZWw== 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=faeHik8k8qIXlFiWjqI0cVytI0rzQk1gSByhrWX47Wg=; b=eyqGH85bFu+N9etaJ9dxG6MrQT++488REMfF4QqLkGLNTSW8vWnVsBs0UJuRVAKxcYhFrr9zcmTL4xCY/L4KxeoF6qk8TbSM1d2/iUgTYgD9S4rL/TKEdLNBbfhffJ+aNYWJ1gT3OTvBbCAckkk7AmzUOq18+WO+hUIoTXVDjhcamY3Qsg03EDFZF3Bo8hOOowhy+t/2SuJwIIBdq1RB4aWPIUQ5UEfYV6I/9Ky0JRlpxpaeCIXFpNeC2uAsK2DdGlnpO+rXutbNsVwjivC/reqYcL8gDQ4fOv2i3JHmCm+Oe7z8x7Rks/xjVdLUSIXyA+IjwSIMN1pd296rcGmDLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=faeHik8k8qIXlFiWjqI0cVytI0rzQk1gSByhrWX47Wg=; b=IIRS7sxnGmQ0zm/rBVtkIXqHxpCOh7q7Gael9DQll78Emy7qsocA0M/ZQ6yZ3mBDoQeRdU2UekIP0CENuLbzhMatgTxjAXcu2xRPYur+TbW7NG1vN57zgH1t8OrFQJ8BY5wjFXLjwh+WGSqcetnHazRMfxCBZQT3nXATYA1nNLo= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by MWHPR18MB1149.namprd18.prod.outlook.com (2603:10b6:300:a5::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.26; Fri, 29 Apr 2022 10:04:45 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::a0df:8676:6ad2:4338]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::a0df:8676:6ad2:4338%7]) with mapi id 15.20.5206.014; Fri, 29 Apr 2022 10:04:45 +0000 From: Akhil Goyal To: Raja Zidane , "dev@dpdk.org" CC: "matan@nvidia.com" , "stable@dpdk.org" Subject: RE: [EXT] [PATCH] examples/l2fwd-crypto: fix stats refresh rate Thread-Topic: [EXT] [PATCH] examples/l2fwd-crypto: fix stats refresh rate Thread-Index: AQHYSnSqMDe5Ysp2KUCxi6SxpLocOK0Gy7kA Date: Fri, 29 Apr 2022 10:04:45 +0000 Message-ID: References: <20220407114249.15024-1-rzidane@nvidia.com> In-Reply-To: <20220407114249.15024-1-rzidane@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 50776ccd-a92d-4d76-3675-08da29c7afe2 x-ms-traffictypediagnostic: MWHPR18MB1149: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: UlGTdtKqpgx2U0EBkss0z+NKGrnstYVrPZBDEw55VKnarcn2VuMtmWHrq9nSg/87MC6CxhA1x/SC02EqWUrlkW6X6/5j5CiPv7f/p/hikQ4zXT0VuEsjmQMCFxYTN7Jv/5qhwKqg3fITbBed2FwHu/T9gAkMKzGclLu+iki3KoiGLYVRlax1EsrxMTtcGgyjPqoJgL4AlR/W8HMHeKTj2BncR38wOzLW+2ftH3PIK9jwWOXSiAAvVsvPM35ooiHpI36Oj1D2KVyV7GRwhTt253dx+Uy1wS3shIRG3J+Lmj2fvkT2WCGATl3TB3zZIt5b3GLPMiG85MQvMwtqUZ9IhWDR5dFxRePCtnKdQMgyZ5m2TLso1uSLLsaSaXNBvgKSPmP0VRSGeRVewhI3b4TM3y5h7YiH2rGgw5apcXtJ/tzSljkRoPngaK6amaMccZrSKr6wlcldEy5CsmCR2e4v0lipUggWcNVPYExvOtNjziTGwqDINuPubGUtW0rmvETNsyU/YP6Wulb276eMCxq+w/LM7V6yZ2ESCDfwzLxV17TMFLeFM1Z/MJckGzelyhENcU3VcqbpOYa+YxuJFFtqLrvPrGREfGxcUnAMwYqe+WD8BcDcl9y1vuM7AZ5+DTYdPdoiSeFBUwogsEKbF1pdIN5brkW9h0OjAmqPJmVR7g7L1GOzYwhr1jXTbl0k2EWwTUpS77r0m35tV2fG5akgRg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(6506007)(2906002)(55236004)(508600001)(86362001)(7696005)(55016003)(186003)(110136005)(71200400001)(9686003)(26005)(38100700002)(38070700005)(316002)(33656002)(122000001)(5660300002)(4744005)(66446008)(66556008)(66476007)(8676002)(52536014)(4326008)(64756008)(76116006)(66946007)(54906003)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?7aNW4ebqSeEExN+M7fxRydTc1SGosrBdPD+cLppZb+FEqfOLHKp+CPoWIycC?= =?us-ascii?Q?NpRkoCOPSgHEgob34GjFlGVqWeGkxqL8SsPHUzcBw2CbQfhODkhUQWLPCPLZ?= =?us-ascii?Q?3d58b7k1CSG8WylOp8dIWFa+IA9zjXhjg8z0ZyaTerlPVHQcSPuEYrnOE5S6?= =?us-ascii?Q?/7OD3dDRpLy7oq2zl0xW0YhaQRXLWLXSrT37IRCee+XQg8NpXsC54YCNduGE?= =?us-ascii?Q?y7wOAZDDjpQPsAwdSaXUJCQLHF1J7T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ascii?Q?qeOg5GixgbEUEau6WETxtzBtkJUntouX7X/sKa9rUD9K8HIcXMVR8sqV3Pyh?= =?us-ascii?Q?+u51mufn9UwXY7ozz5U57SA6M088ftCCnjDRCbzkTZbG80JJswiKIvJM+hKw?= =?us-ascii?Q?x9o1TpFo0pBEVGAsxmB3uyrH6hkjeI8MUyK4htvajo42h2eyi+lkX5SXCUt8?= =?us-ascii?Q?a+pZ/VcHrLjWpx6NZ1Nx+jquJk9wRS6qBnsVsIE8QbejJLlDuAxLK9RfDfmq?= =?us-ascii?Q?WiLIWY5EdkRDJxGJMwQaxnAtqssF67Vrlrie3SEKdV7tNgBwWqtZZnQeVeTJ?= =?us-ascii?Q?g7HzBP2ixz5Ay+Hai9GO21qZlrUX1+wfP++CrkurT2WH3Eo6LR3mg3jsoEGX?= =?us-ascii?Q?Zi+r8MsER9w271vF/GZImD0DQhizmK16G3kQ7Q5yspCY3D07kAU/AjhzN4uY?= =?us-ascii?Q?+eSTik/bjqJMiHIzGiP4M6T8xX52AcOAWUWN4pUctcVLPe07Q5J2WxmqHBoh?= =?us-ascii?Q?Z7VwNoGfXpGHf61TVh++qOZxUj+yLy2oEoa/KF18O97yGrdujbs8NSXwosWt?= =?us-ascii?Q?8Tn0ZSCMwV2rAeyBADcadIlF8LpM46jCwS1zvHsS5Cn9mQ3sN0UE65M90gmD?= =?us-ascii?Q?vP82R9x4ow=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50776ccd-a92d-4d76-3675-08da29c7afe2 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2022 10:04:45.1790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3tvYO8MLBQXGuB5rWDsuzTvIZrGtEnr5WvP4NL5bYHWJW+WFBdMyOdfd0oQIU/9+75i4KPSoGAi9eIENopkWmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR18MB1149 X-Proofpoint-ORIG-GUID: j7IEtSj4LKs2ZZ870HMbeiEoD4T57ZEz X-Proofpoint-GUID: j7IEtSj4LKs2ZZ870HMbeiEoD4T57ZEz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-29_05,2022-04-28_01,2022-02-23_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > TIMER_MILLISECOND is defined as the number of cpu cycles per millisecond, > current definition is correct for cores with frequency of 2GHZ, for cores > with different frequency, it caused different periods between refresh, > (i.e. the definition is about 14ms on ARM cores). > The devarg that stated the period between stats print was not used, > instead, it was always defaulted to 10 seconds (on 2GHZ core). >=20 > Use dpdk API to get CPU frequency, to define TIMER_MILLISECOND. > Use the refresh period devarg instead of defaulting to 10s always. >=20 > Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application") > Cc: stable@dpdk.org >=20 > Signed-off-by: Raja Zidane > Acked-by: Matan Azrad Acked-by: Akhil Goyal Applied to dpdk-next-crypto Thanks.