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 3947DA0C40; Thu, 29 Jul 2021 11:45:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8616B40E3C; Thu, 29 Jul 2021 11:45:22 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2077.outbound.protection.outlook.com [40.107.95.77]) by mails.dpdk.org (Postfix) with ESMTP id 6E5C440041; Thu, 29 Jul 2021 11:45:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n81PQ5NhHV4b6GBhn6/STJf3ktzl/aXz23Nzre9y0PWqZe9tZD1AN2GkCvrqamZwLlG1jF3xgw7QuK26kP+m8uHf1eogDid6lwQ92UcEpwZ7wT/XOo2OUIlbpvbUX3oQVqQWI6Y4bYQVB6vtQ/LfW4n9aMkEB4s4eGbaiqjAFyddWD5gYTmR10Qqheyd0RcqAtQo9NTALm1U+QOhgN215CDsNcRJZJC1uqw7QCZc5ZDPEgBQUGWF6VoivGQKzZC+VsGVu4tNmcSbEZ+Q4dbkyGbfuxJO+4XaodW8LyCLlQ/lmQPfK8OuQmD26WK7LKXd5cOS0qKC7TzF6H73IqzyxQ== 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-SenderADCheck; bh=waIb7udHpVjvLBsbT/b81GjS0V/LNdj/W2CLkvKwVyY=; b=PGBx6ZeP6bpQW4H2MzwGDNR3HVjfYSZqrImKGHIdPRRvHxpbZClx8XtnZ1TxJpMpWF4LWsDd25UFCgOkU2bURxtg7q6YPa+HWo/Zvdw0uB3YDrXmQvaQJg33Gyqx60naxQ2d/rdqwcGJ1Kz4TlgUP3zFzL01rI+F8yb9WcPTnCFqpTYN/W43rBKqaaIZIkteBXKuiSQXzCvwobaz9YfIHPayaq5vAsoFXLawUcGh0vptYe4mQhUBRC5az+GTMXKTDw56qIz0i5Rpsk6XmYWa0sBJBTcey3bCQzphfkfCLhkHcuWEzQ4+pP8BqKLpcbl6/1lPyS5Cb1HJUlao6FH1VA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=waIb7udHpVjvLBsbT/b81GjS0V/LNdj/W2CLkvKwVyY=; b=d6eZIGccb2E4+qHKJcaoHnbu9IT6KqnreqsPj8/w2MYU9E1zEzszZeojNvtoGANysYpC+VfUg/nkFLNjx3A1xySMy3jrvd1AWU4UtYLKZc47cKDT2ObLzzAx+wdVjH/C2P6TGTGIW0/RyBxvj2Pc7gcC3w+BoJBIta/wslbyDWeKYFPCRtpVSJuf/HQddK0xerzSuGHg+Hx3mrhsV9dRaWf6zDnabX/SEVDuUvXc0Jj6lB4KDtRELrSb4ZbLSPL237bofyGg4AONt7OyzODg6ayZruEGGXL30QY/11Od8dGUJgFTtplimpI8flEcqghfY7he2aDJuQStWPLFVugzPA== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5072.namprd12.prod.outlook.com (2603:10b6:5:38b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Thu, 29 Jul 2021 09:45:20 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4373.021; Thu, 29 Jul 2021 09:45:20 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix timestamp initialization on empty clock queue Thread-Index: AQHXg7wxOGLoo8jOPUWnahesOVzBm6tZtIXg Date: Thu, 29 Jul 2021 09:45:20 +0000 Message-ID: References: <20210728142335.31324-1-viacheslavo@nvidia.com> In-Reply-To: <20210728142335.31324-1-viacheslavo@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9bf59d09-4c00-41d2-130b-08d952759459 x-ms-traffictypediagnostic: DM4PR12MB5072: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MR8gL3oEhkC7JDNlJ+ZL2USVPTZL9aDzK7Eam6yF3yV1rmuOdoZ1tvDNTZA5O6Zn5Nun1fag1kpqZWhCPyQwQhLpuTc4VKyvT9gA9NWeZGr727tQoHSD3elZkfA8P+958r/Ke0NdjveKXguvPRqCsUdt0HcajKoWfwcugTF7ATjSOkkMAohvvLvgQGaZCmfrLsr54aa3SuT4WpoCrL3JJ74FSnkrnLAdut8HBUCTCKjBsG2FuFWnsaHybuhcxeT37KHIq+aIJoPsE++LkgJz7H+ZkeMifI2VRW04tsWDS1JKXCHERkoPYUhnFPOH926QpbHmCRh4PWDIut3TqIFmPptQj6uK4ajcnrEbREl85E2oiz9gV/UmGBdmZREvW1fOk60/kEvCSoX2CPbriA28/AlQpEaLaPfDDfNN2+kQF3wFr8RkBeUYep7d+i60DcDYWL3/t5EY9BJy6lYCP1SfrqOeMFo4HoFviycZTCBOvRiPKTzj83L4jN4ZmZwEaviW+YeplVfn4bLAlaIRuYcow0NU/AlW3aGEJMCjcvlAFoWGtNrRqpQXj1go37dn6Tre+ELfxBJ8i+43MfMaZH/Tv7dKJP30K3ubqB4Wv1QtTQg89fklUxQZebIdaEGYthD9xxWGhQbLKrrlVIWWwkqxLOxhXSx3yyQuXf64on0Kt383rZFGF3sNCa9yJfA/kdHBwhRGmV2VdCKSLaYBFKOzMA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(346002)(39860400002)(376002)(366004)(76116006)(66946007)(5660300002)(71200400001)(186003)(450100002)(26005)(55016002)(122000001)(4326008)(8936002)(86362001)(38100700002)(8676002)(52536014)(7696005)(110136005)(33656002)(83380400001)(478600001)(54906003)(6506007)(38070700005)(9686003)(66446008)(64756008)(66556008)(66476007)(316002)(53546011)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?adID+56+y4R5mNeddZaWanocSPW+mnwECbusfuuQzzelKCAPXcKKl/9zpAUA?= =?us-ascii?Q?reB+cEBybkDMPy33HMGTQvMFjbLvY4cy6+3kWayf0kOk6fZQ97NsGE/u32AF?= =?us-ascii?Q?QVF9W6p8kmxePb3Znep+5EeP6E6F3kvaJz1MibL7+iuGLiHy7W0H1aPMVyx/?= =?us-ascii?Q?EF9N0Y/iDPfikgQqcTIP+e0hhzlmYrY5Hjgr8dDR05UgoDhUHSim/k9+/N9g?= =?us-ascii?Q?Vuv998+VCpSMEeZInAS2Vso2Tps4dhR7V1gxag/3skOAOW34bp3uBo3cSz3p?= =?us-ascii?Q?6nO391tn7nYvKh8eg03swrlQ2vONAYo2wX45KAbjL1DBJVfiJGLRnhbg2uZU?= =?us-ascii?Q?kO+Q4mTrj58oq1ll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Pwt7U/Wj?= =?us-ascii?Q?ZscNXjp6L00zIBA125dQqDNSBIqLrNRBVbRupq73CWn9Qel2mg8MHAsPiWf/?= =?us-ascii?Q?xfGMG2lOOtUY5Dxd2X2ifcln?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9bf59d09-4c00-41d2-130b-08d952759459 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2021 09:45:20.1051 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ernBcRiN+9+ECDX150zjCvCsupLz8YEylsTjGsiboZAjtOwLioDbGVgHepp40lBxMzNF6VMB2rgkCXMKYrn5CA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5072 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix timestamp initialization on empty clock queue 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" Hi, > -----Original Message----- > From: Slava Ovsiienko > Sent: Wednesday, July 28, 2021 5:24 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix timestamp initialization on empty clock qu= eue >=20 > The committing completions by clock queue might be delayed > after queue initialization done and the only Clock Queue Added missing auxiliary verb in the syntax, Should be after queue initialization is done. > completion entry (CQE) might keep the invalid status till > the CQE first update happens. >=20 > The mlx5_txpp_update_timestamp() wrongly recognized invalid > status as error and reported about lost synchronization. >=20 > The patch recognizes the invalid status as "not updated yet" > and accurate scheduling initialization routine waits till > CQE first update happens. >=20 > Some collateral typos in comment are fixed as well. >=20 > Fixes: 77522be0a56d ("net/mlx5: introduce clock queue service routine") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_txpp.c | 21 +++++++++++++++------ > 1 file changed, 15 insertions(+), 6 deletions(-) >=20 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh