From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6252EA0350; Tue, 30 Jun 2020 16:59:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 113DD1C01B; Tue, 30 Jun 2020 16:59:28 +0200 (CEST) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id B57691C010 for ; Tue, 30 Jun 2020 16:59:26 +0200 (CEST) Received: by mail-pj1-f66.google.com with SMTP id o22so4526388pjw.2 for ; Tue, 30 Jun 2020 07:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gB9w8K9nQ5i4/bkVX79VnhFhRsoJ+fSvUxj/BUHUgi4=; b=KWwFbLFGv7vfQ94xGOdNgoukcp26bn5buPY54SbAYPTTAuXnkZfMiG9STLXdX8qozM X5sImerpBdF7QGHBuU4wGZZz5echwbEWKb3GpHz0ONinj1bjd+5qdMzJTFYDY0RbIUht uaRIPoDogqfvLaDtNS82syJynZVZyEzBTVfDPEBhj9tXk2o7OkQAC9cxkdWvaN6VMyOA wZ3DjU82h8chnaX5aXD5XJO3/8qKFMMoPvw/RYJiOsWiZ4qDHMpUmeyd92x8h1VJM49I BzBdSrLdzpGhRaeP3+uqLEhTGN/eiktGjrcDwl34S11pIPdzvPJCVubYfSqPEi08ZZep x++A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gB9w8K9nQ5i4/bkVX79VnhFhRsoJ+fSvUxj/BUHUgi4=; b=P+/7S4x4zUmf0y0ZST1Rkl/wmgKsKpafmNJJrcZFu+pNPNckv4nYLDOBQ5o6xHvUqw wNwvOiS8Ul1lawIdAFabhZ9Hq1lezxB+madpbmqJruGfYwa12DAWMquv1nFLqPz7peee zaMrK/N/ZCXzp8ir2eiO3lohi5zmliUppzzB0snVnYtBsHmFKFX9gv4SkPS637ry6iLJ 2gwttjvzm0Yd2SLfRddekpLLBj+OEJPzhvL1tn+3tiERcrB6CqDKDn6ienREq95/zHcp wI830c1XPpnNFl9Uv0Lo5+xcD2+/aKsjLuSuD4aYkTIjmnujHqvEbrtgmereI9MJ131o P0KA== X-Gm-Message-State: AOAM532R2aqFO3yIQKdWcrw6auXTsmkiC8381bw/6HxpeVWF7HxkQp/d WytXjtuVKjWeV6IXggrrNWDTYQ== X-Google-Smtp-Source: ABdhPJyo/+EQE38UJKxh2/mfkqw6sjQ3BxtPe48Hg/tKUgP2r7W/VZZyzel44wXO/FuwHz6I0uNgUw== X-Received: by 2002:a17:90a:ef17:: with SMTP id k23mr20754923pjz.45.1593529165843; Tue, 30 Jun 2020 07:59:25 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q10sm3280578pfk.86.2020.06.30.07.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 07:59:25 -0700 (PDT) Date: Tue, 30 Jun 2020 07:59:22 -0700 From: Stephen Hemminger To: Vivien Didelot Cc: dev@dpdk.org, Olivier Matz , Ferruh Yigit , Patrick Keroulas Message-ID: <20200630075922.7f9ecc7b@hermes.lan> In-Reply-To: <20200625190119.265739-4-vivien.didelot@gmail.com> References: <20200625190119.265739-1-vivien.didelot@gmail.com> <20200625190119.265739-4-vivien.didelot@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC PATCH 3/3] net/pcap: support hardware Tx timestamps X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On Thu, 25 Jun 2020 15:01:19 -0400 Vivien Didelot wrote: > + struct timeval cur_time = { > + .tv_sec = cycles / hz, > + .tv_usec = (cycles % hz) * NSEC_PER_SEC / hz, This is hot path, use rte_reciprocal_divide rather than slow divide instruction.