From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D5439A0524; Thu, 7 Jan 2021 17:29:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB03F140F95; Thu, 7 Jan 2021 17:29:32 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id B9DD7140F67 for ; Thu, 7 Jan 2021 17:29:31 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id t6so3819098plq.1 for ; Thu, 07 Jan 2021 08:29:31 -0800 (PST) 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=iGtWpGpJlfj3QFuYzvSrXOsJmbTWu4APzxp773Rj8Lk=; b=pvQAijBhv8cA5IwL8vr1E3XKPhKwuXlFAr80i6Sel/T4qlLOIPDyugSSjul16SiV51 khoUQHgFYI3v0J/EQ8kuHielugvIwFw8/UmLSxVtyzvRbZIe57iJsq+k3e/ur/0iAGnn 27g4TcvOr2IjKTE1qfWqeoAc3CRf70QdYShJFMFErhJ9Ir/Ry/sdPpuo2PPswQaoYIjh dfW9wZ4ExB++Y+YfmzngOuRV1UEHS631MUp74X5kFL/LQeWPL/xvMAeJZwbzd8cK8035 5AXUY7I3xexiYX+BdGejIyYujHWabWimGG4XirQuSN1gXYRGXl0K4nXi4/gJ/wsukTZ1 9n6w== 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=iGtWpGpJlfj3QFuYzvSrXOsJmbTWu4APzxp773Rj8Lk=; b=FF/CATm0Wp2+a5B+wWuZ3app1rTLfCuRw+pmaMtoEk5R1yGUV0cyvYF7A8Z49wd0t+ aKEsi0ZZnXfOgZzPGscKfC7tradxCIR+tYDaGptCmkaVuMqzl5I1lPBWIVFfg3DdBWlv 3zDbX/GHU0TO36KHpk9iV9/WPaceaNlVKHbSGOQ4Std5xcYOr5eNLwaxx+7bGlYscA2+ HpU1poc3BZn0btwadSaIJjypRJ1oGNJCFtI3kDFxu2OzuCv75UDEL7cD+eqHl43hyGmG VeMA9AveIpo7/bfTlx6hz5sb4H7zMyP12IsyEUq4N0Fz/TEa0aQ1hWpxI8JKmgicWz9F UuHg== X-Gm-Message-State: AOAM5310pbGnrgB33pTDdgtM4svV9GHS7pkJ1uA4JJPOOXPUbsWI7R2p Jt5sVv6Yl2NhUHlxJBD3Mk32SQGGbmR5YQ== X-Google-Smtp-Source: ABdhPJxuHgu/MvMEmI9QS0Si4zD1nVvjQFMvVRlKj6I2j+L2V4mMfSM8C4UEdr89lCYbDjr6opLCZA== X-Received: by 2002:a17:90b:60b:: with SMTP id gb11mr10217895pjb.122.1610036971081; Thu, 07 Jan 2021 08:29:31 -0800 (PST) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id z16sm7076246pgj.51.2021.01.07.08.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 08:29:30 -0800 (PST) Date: Thu, 7 Jan 2021 08:29:28 -0800 From: Stephen Hemminger To: Ferruh Yigit Cc: George Prekas , Wenzhuo Lu , Beilei Xing , Bernard Iremonger , dev@dpdk.org Message-ID: <20210107082928.779e2d63@hermes.local> In-Reply-To: <6157960e-0ed9-5bd0-a150-f1c59c6f95a4@intel.com> References: <20201203135954.1127-1-prekageo@amazon.com> <20201205054238.12469-1-prekageo@amazon.com> <8c1fd6ad-302d-f45e-f48a-e81fd5f8ba85@intel.com> <6539f363-97b1-82b2-1b09-036aa75c9dc9@amazon.com> <20210107075008.77704541@hermes.local> <6157960e-0ed9-5bd0-a150-f1c59c6f95a4@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: fix IP checksum calculation 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" On Thu, 7 Jan 2021 15:59:59 +0000 Ferruh Yigit wrote: > >> > >> int main(void) > >> { > >> pkt_burst_flow_gen(); > >> return 0; > >> } > > > > If I change your code like this to use union, Gcc 10 is still broken. > > This worked fine for me: https://godbolt.org/z/vdsxh9 I was looking for wrong result. The union version gives same answer with and without optimization.