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 0FE96A00C4 for ; Fri, 1 Jul 2022 19:04:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A44442670; Fri, 1 Jul 2022 19:04:37 +0200 (CEST) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id 35FB240A80 for ; Fri, 1 Jul 2022 19:04:35 +0200 (CEST) Received: by mail-pg1-f180.google.com with SMTP id z14so2974679pgh.0 for ; Fri, 01 Jul 2022 10:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lfq++rI49+SOOmjlXUT2DhM+QpnmlZM7pehvH7oGZuo=; b=I+HEcLE/rYoIqxg6yzDPKSUIF+Y4lZcVEzIzNZN6IZIuhszX8BhRWalsyG3FIdfbbt 2pxjigJAlYokVqJmuKaMNJgtP7LvPeAAkxEBNp2SNEgs2t6Rm8K5UzgtwlGvrclZkg2E EEQeljT9mZhsRvKDXSxjHCY7rDD6Wo/Fy8oKeOd6T2Bdwk1qTghOrAXAiDHL8kVqrYma AwyjPJR5IZ1F3UwEz1YoF+zYaBYyGwctyjL2Ew0BSPceKe9WkKZYXBMq2+XBwKvVf7lV 5Azf9yV0B+XghRYqlwiDAjpRN8dB3/1uI/ELYdtWN+vIFvn/bYUK3naFbomQrx7zDi/+ vh7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lfq++rI49+SOOmjlXUT2DhM+QpnmlZM7pehvH7oGZuo=; b=bhHqPtjh9boXa/vGjLxSJDKvqh2uWjRpyPZ1pF2w4G21SimP2vh0Z4k0s+4K0+1Ojj F/ayMM7kEO33qV39m3fw0R9E9Nlsdien9bGj9V3seXE4XMaby0aLN7hA53BGS1EWylFw cT0bUWFUTmpZQyw89ZE3nPTuMbJUtcNgls/N/Pn9hI3IdYbnVyvEITN+vkxnZjPkmvX4 VHDL0/Mba+3pl7Y9mfVzE/lAWk5zqhPe7qqYwlPhnb/HLgIToQBy6Qt3TpdlFtMZ+Uuk UUfxl6g9JJwkR0O+qYuEeSQCDUOnLQglez+hUXP//Q3ZwXNz4NxiDhNyFEBHj1itdoHY Dbqg== X-Gm-Message-State: AJIora/lGBKtVgkO5vNWqFbW9yceL2dfJpWB5clZDBvGd9/KhTIJc6qW 9scwgxpi+8s1fW0jIgtAe7zIgw== X-Google-Smtp-Source: AGRyM1te3ykfdcJDAfLgGF9OgBOCBozK0nnngmCeC545eODgTGM3cAFDfGvs4iyZQHtsJmRPosWSSg== X-Received: by 2002:a63:7145:0:b0:40c:aac7:41de with SMTP id b5-20020a637145000000b0040caac741demr13204070pgn.490.1656695074221; Fri, 01 Jul 2022 10:04:34 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id w10-20020a17090a1b8a00b001ec7c8919f0sm4371081pjc.23.2022.07.01.10.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 10:04:33 -0700 (PDT) Date: Fri, 1 Jul 2022 10:04:30 -0700 From: Stephen Hemminger To: Morten =?UTF-8?B?QnLDuHJ1cA==?= Cc: "Emil Berg" , , , , , , Subject: Re: [PATCH v4] net: fix checksum with unaligned buffer Message-ID: <20220701100430.1f94306b@hermes.local> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D8719E@smartserver.smartshare.dk> References: <98CBD80474FA8B44BF855DF32C47DC35D87139@smartserver.smartshare.dk> <20220623123900.38283-1-mb@smartsharesystems.com> <20220630104545.55d4e870@hermes.local> <98CBD80474FA8B44BF855DF32C47DC35D8719E@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Fri, 1 Jul 2022 18:50:34 +0200 Morten Br=C3=B8rup wrote: > But I guess it is something else. >=20 > Anyway, this function has ugly alignment problems (also before the patch)= , and has gone through a couple of iterations to silence warnings from the = compiler. These warnings should have been addressed instead of silenced. Ma= ttias has suggested a far better solution [2] than mine, which also correct= ly addresses the compiler alignment warnings, so we will probably end up wi= th his solution instead. >=20 > [2] http://inbox.dpdk.org/dev/AM8PR07MB7666AD7BF7B780CC5062C14598BD9@AM8P= R07MB7666.eurprd07.prod.outlook.com/T/#m1a76490541fce4a85b12d9390f2f4fac5a9= f4660 >=20 Maybe some mix of the memcpy for unaligned and odd length and faster (unrol= led?) version for the case of aligned and exact multiple? Or just take code from FreeBSD?