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 E2C4B429A5; Fri, 21 Apr 2023 07:51:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3A54410DD; Fri, 21 Apr 2023 07:51:14 +0200 (CEST) Received: from mail-vk1-f173.google.com (mail-vk1-f173.google.com [209.85.221.173]) by mails.dpdk.org (Postfix) with ESMTP id 0242540E6E; Fri, 21 Apr 2023 07:51:14 +0200 (CEST) Received: by mail-vk1-f173.google.com with SMTP id 71dfb90a1353d-440445a48c7so449000e0c.1; Thu, 20 Apr 2023 22:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682056273; x=1684648273; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rU0PfPMZmhUiHq0Y4DcwKSkcJY91cizka8rAcjIPOnY=; b=GIRozmvjppV3LUEX8138/drQzAsNCK8ZBjHym6oj70CuRZbp4+poBPXjijM/XkhNM/ KeKBar6BJzzpcriioZfjbHs0AEDeA7yZqjetoaHca2w8jfwKjRswEoM4Um6ZVGv6Kc3y Eib8jMcDxVMT8xy9UGCM94RZUnYXZtXSSm018gkiXvb8Cpywd8F/RG8DrgDCA0Pvaw6X IchONnrcO6WbqJ67lYnW5KWEs1QVsOIJMPYgVzFj3RU/8vWl9QgVKxWoLvV+wJMp20UT 6c5cdFX9FVPPTx1cUvfMaeHgEjBoHOxe19CtTQwgsJkfsBFb7MUJtoM6ZUh1lD0tQhSy eD5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682056273; x=1684648273; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rU0PfPMZmhUiHq0Y4DcwKSkcJY91cizka8rAcjIPOnY=; b=bbiAryX2GkF/MiTcf5KfC79kEstwYz9wNAr3+MmYbFrlqBNjWeyQc49UQYyFjh2Sjo NjjM61VVv8BCv6Nr/S9rq8+6pudealsNWIrIQEYwPiCeO+TxUneLRGB1KNLvXsStNsME Jx8pk3cwzFn+tdBpnsw6YcrIMXViZWWi2A9xRB6G2ZeyKfxd1zCWCVNg+NTcg6nuRudd 69SgJj3rsYnkUyRK7z1j4GGOa2Nsf+wFhp6EXMLJJi3oiuTCGwGtGnFgTSS0bUTCx8Ee KVuTjmcgqi5n53xJR0o0UtJNH2DB73BtotRevD4tjCt9DVv+6PlB5q87mflO0gGZT153 00ZQ== X-Gm-Message-State: AAQBX9cUL0GM6cwFzLQHPDutBgtdTuO8HoNX6xgjqLXHag0NXvtq2nog NXZtzkdTQ6isIPPrzQRn/YVIddnx+5Kui6h9Fp8= X-Google-Smtp-Source: AKy350ZD1sUyESmV6fYhImuc5P6ddu+6jLDYUXK42xp5PVgMMDaYvvWfSZsg6PzNSdT7DtHHdf/N1eJySbo12AhDWkY= X-Received: by 2002:a1f:e787:0:b0:440:4920:e620 with SMTP id e129-20020a1fe787000000b004404920e620mr333297vkh.4.1682056273236; Thu, 20 Apr 2023 22:51:13 -0700 (PDT) MIME-Version: 1.0 References: <90fb5b328eda4c7f83cfb11998ba32a01935ff8e.1679375813.git.sthotton@marvell.com> In-Reply-To: From: Jerin Jacob Date: Fri, 21 Apr 2023 11:20:47 +0530 Message-ID: Subject: Re: [PATCH v2] eventdev/timer: fix timeout event wait behavior To: "Carrillo, Erik G" Cc: Shijith Thotton , "jerinj@marvell.com" , "dev@dpdk.org" , "pbhagavatula@marvell.com" , "stable@dpdk.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Thu, Apr 13, 2023 at 1:31=E2=80=AFAM Carrillo, Erik G wrote: > > > -----Original Message----- > > From: Shijith Thotton > > Sent: Tuesday, March 21, 2023 12:20 AM > > To: Carrillo, Erik G ; jerinj@marvell.com > > Cc: Shijith Thotton ; dev@dpdk.org; > > pbhagavatula@marvell.com; stable@dpdk.org > > Subject: [PATCH v2] eventdev/timer: fix timeout event wait behavior > > > > Improved the accuracy and consistency of timeout event wait behavior by > > refactoring it. Previously, the delay function used for waiting could b= e > > inaccurate, leading to inconsistent results. This commit updates the wa= it > > behavior to use a timeout-based approach, enabling the wait for the exa= ct > > number of timer ticks before proceeding. > > > > The new function timeout_event_dequeue mimics the behavior of the > > tested systems closely. It dequeues timer expiry events until either th= e > > expected number of events have been dequeued or the specified time has > > elapsed. The WAIT_TICKS macro defines the waiting behavior based on the > > type of timer being used (software or hardware). > > > > Fixes: d1f3385d0076 ("test: add event timer adapter auto-test") > > > > Signed-off-by: Shijith Thotton > Thanks for the update. > > Acked-by: Erik Gabriel Carrillo Applied to dpdk-next-net-eventdev/for-main. Thanks