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 CCB50456E5; Mon, 29 Jul 2024 18:33:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E724406BC; Mon, 29 Jul 2024 18:33:18 +0200 (CEST) Received: from fout4-smtp.messagingengine.com (fout4-smtp.messagingengine.com [103.168.172.147]) by mails.dpdk.org (Postfix) with ESMTP id C128D406A2 for ; Mon, 29 Jul 2024 18:33:15 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 3E195138024B; Mon, 29 Jul 2024 12:33:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 29 Jul 2024 12:33:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1722270795; x=1722357195; bh=+THUIe4PjjrdKCJNhz4NHgPXtpWFYtGFG80jBM4h2zg=; b= HJFal2ayfWKgOgVaUmMbwiKtl7qOJbGUx8JiL5YDyTW+Ks94Daoh/rTTWtDEfrNs 5XDCPWjbBnQy6gAdfsVM8A+rh2RrSrUAXqieD3mF3XdS0z3nUuLhRniZpNG3CE/Q wFskWzleopaAXoZ1SBE2khq04Shtqu35wZHrPeYn780481NXXeEw2C3bj7UpZWCf HjR+rm6sn6EOUpszMVHRnI0CTmnemKwL2GsdVZU94xMr/Mpuy44EnQMsxFXheoDl vbCRcDUM4vMpOrMyF1Z2OCm3UA2fZPoqQ86CSG6mz2suorzmU8Zb4DJZsTWRxBnJ I0TcjsGqz29AxjLYw8fD5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722270795; x= 1722357195; bh=+THUIe4PjjrdKCJNhz4NHgPXtpWFYtGFG80jBM4h2zg=; b=u DaG+pTWa8dlxAqZV8AUVga9MarlI47tlWVv2vfjHzc3MULTyNKByhC9ycVT0KGwB emfF2VwACbpbJd6esCd9ZX827Joj0X1BPs3PbbN2zPFlYDBJytC1SNTUekEl8Vu5 U2nzFgSEt03cHVcPzQr0KkKTSuTNVDVfhsix2pnRKTw8cJ56gZhUlsDZ6PY1sl6s stuccLO85oG5VxdXzrvbGWp0nmRQuFAVsPgN4miZUPgcJbVlBSEWqMSkjXq6Xtoq rsk0jEKIGkgAbdGN+w8ToizSJhFHJs0ZAyB45hFr11acWofrtNqw2pLSEV31iejQ fsLFY6WynlmLxts488QQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjedvgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeejudevheeiveduuddtveffgfdtgeekueevjeffjeegtdeggeek gfdvuefgfeekjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtpdhnsggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Jul 2024 12:33:14 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org, Reshma Pattan , Luca Boccassi Subject: Re: [PATCH] test: fix 32 bit overflow in pcapng test Date: Mon, 29 Jul 2024 18:33:11 +0200 Message-ID: <1939808.6tgchFWduM@thomas> In-Reply-To: References: <20240718174253.16346-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" 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 18/07/2024 21:07, Luca Boccassi: > On Thu, 18 Jul 2024 at 18:43, Stephen Hemminger > wrote: > > > > The conversion from seconds to nanoseconds in the pcapng test > > would overflow on 32 bit platforms leading to this test failing. > > > > Reported-by: Luca Boccassi > > Signed-off-by: Stephen Hemminger > > --- > > - ns = h->ts.tv_sec * NS_PER_S + h->ts.tv_usec; > > + ns = (uint64_t)h->ts.tv_sec * NS_PER_S + h->ts.tv_usec; > > Thanks this fixes the issue, the build is now green > > Tested-by: Luca Boccassi Applied, thanks.