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 45A3542486; Wed, 25 Jan 2023 15:53:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F83742DA1; Wed, 25 Jan 2023 15:53:34 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 082F542D47 for ; Wed, 25 Jan 2023 15:53:32 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id g23so18066875plq.12 for ; Wed, 25 Jan 2023 06:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=V6YOgRErags2+2FLeprfUQtaAK5InwkZoCTn7A1O8wU=; b=b6dZ3KSj/oN1hXUWyZHLwJia03unm4XkfaJihFG+X2thvhxwn4EUrrOu7u52pXmLC6 JG1Rk1hNXfxh2v1QOQVtJWkj1YsgjDwowgLoAUnxH2DJZHWgSkOtHiBYMer8Rk8I4Lp8 vBo/xQoKBvJ5dlYaRT8UKu8riVAgihTaiFi7DPG19vi2h+IljcsRleetHXjdhTHwNyaI dJ9t+5Mf8Um2JVrkr0tAUgUUR0W0ByAdjRhayFUbG2vQ7Viagy9LZq/2SFIlFY/xX5l0 jJ05njipfseWt9vaXyO+CD4YRns9Oa+27wYk0pyjhneVEmzhg0XLew8fVrxGz/TERQ47 +MIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V6YOgRErags2+2FLeprfUQtaAK5InwkZoCTn7A1O8wU=; b=4FyX92FcVgKNmuqNOxsAKD4W8tAmXvAtCwreyYC7mO8P1D+7uVrm6anzYY3EUbLUn8 FlXCJiwjL6mlfcvgKkCaRzBhdckG/q+/9jtCAbLrNMljJwR32Ih7Eu0I2pSI6WuzfM0X OSn2eX9ckYTw4VP/ALGuU2GTyXPhmhVeQShVQmlNSPuF9pTR/IT+V344PA6zO0B97cN6 wVn65riin7KZ78JEwttTXxn5xSRZoKXeG/wbRZ2UUr1xYHy+LuBuO9a8cYQEHb7CrQis K8sKHPbH8QAvhihdIuSuAGA2rsNXthOEf3Iusx2XVUbRN+XOrBTPN2PqSApoAVVuQTV8 gBXQ== X-Gm-Message-State: AFqh2krRWDJu91JZ5VWblY4qLHwf2DfiK5tVf0NqJZBQCjlawLQDEkvb sJJRWMCJjyJtg5I80mrZQbkiQw== X-Google-Smtp-Source: AMrXdXuUeWJwe8xbqBjjEvpqhjb+jh+2gErL9w2qK4V/2R4l9Ik9lbeaL0Ii35zWQPfI+ywrYr17Ow== X-Received: by 2002:a17:902:b18f:b0:193:3154:625c with SMTP id s15-20020a170902b18f00b001933154625cmr31376813plr.35.1674658412044; Wed, 25 Jan 2023 06:53:32 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id k6-20020a170902694600b0019602274208sm3709298plt.186.2023.01.25.06.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 06:53:31 -0800 (PST) Date: Wed, 25 Jan 2023 06:53:30 -0800 From: Stephen Hemminger To: Jerin Jacob Cc: Erik Gabriel Carrillo , jerinj@marvell.com, dev@dpdk.org, stable@dpdk.org Subject: Re: [PATCH] eventdev/timer: fix overflow issue Message-ID: <20230125065330.11ca647c@hermes.local> In-Reply-To: References: <20230124160945.3003303-1-erik.g.carrillo@intel.com> <20230124184731.29b7de96@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Wed, 25 Jan 2023 10:37:16 +0530 Jerin Jacob wrote: > Looks like Stephan replied to v1 hence comment is not showing up here > https://patches.dpdk.org/project/dpdk/patch/20230124204555.3022361-1-erik.g.carrillo@intel.com/ > @Erik Gabriel Carrillo Can be following moved to slow path ? > + cycles_per_nsec = (double)rte_get_timer_hz() / NSECPERSEC; Best solution is to use rte_reciprocal