Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp7865rdh; Wed, 25 Oct 2023 14:21:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuvJh2/UBGve6nPo+tkSG4rqu93fPcpAHtWCSvpPl0LLPOHaNWxUi8cqU//kzyPJgW2SAX X-Received: by 2002:a05:6871:3299:b0:1e9:e923:9520 with SMTP id mp25-20020a056871329900b001e9e9239520mr19683759oac.11.1698268868019; Wed, 25 Oct 2023 14:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698268867; cv=none; d=google.com; s=arc-20160816; b=fqJ0rIRXW9Ej6y5h23LUvuXOBqt155mZh6NUlUfrZWt+oE5pKTmTrriAAlNWRluGdq RLS1Ff+1tsxpLrjj8u/Em2z9uYHy/uJWbXSyzN73bc1e4C6lXM6mmgx2ezwcnOTMFUY3 PG+9B6CM+d66bdT6ujIMQl4O+NP7+nDAEiYSm0oPhcM/wiwk++vZgsY56w/kQWokrdnw mOKDuVxnZRYR2OyP+zBbWc/7PSQABdO0oX5PEOHkJfcbQ3miAmTYIEWczN2kDglVfXK/ DQVdH3aS3+zVOcH3wZes0sFT01TYoll9TyenMZsCzRsCNRi9noWuZI1AJJdQGEnXJHtj PQEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=x4R+fBPz/tYoWNwPb9Pp7jc9YbV1QMHyx6psPQvV2NA=; fh=rb5rDAlWhE6r7KJsFbpk8GctZWFx9zYlf0bbFqcQYSA=; b=ae77zLMUVmDM/O5WEzcQrad+j0vQPQqIaaQYN+WxzyKMhpkxosY7uCUEjzb0ziQb8c 1+qztpDHf+DBiaGHHMDVxluRofUa0zs0wpbG5JPdF5zXzt08Sx8/+s/7ThVMS2gAxcOA GS+dCtIn/SLnsydEgXp07Q+k9OB+lmCH0xUamOajfsdvnmHktweT0joDhisyb4nWfSrK W6aAzs8R0NL6PZshe6RKTr7reeX6pBk2KhS/lZYwmFbRDzjb8Ur7l7mrWgsyhoVmFDYh 7VHV+1ygwrXngef26YPqzyrUyAkn7ss8nKyKDa7pinjjzYTPWtLabwqijRZ20VBDGfOq g0Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mr158P15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e187-20020a2537c4000000b00da04908d3e1si4964185yba.613.2023.10.25.14.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mr158P15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 70F7E80294D3; Wed, 25 Oct 2023 14:20:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbjJYVUa (ORCPT + 99 others); Wed, 25 Oct 2023 17:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjJYVU3 (ORCPT ); Wed, 25 Oct 2023 17:20:29 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9A1D132 for ; Wed, 25 Oct 2023 14:20:27 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6cd09663b1cso106988a34.3 for ; Wed, 25 Oct 2023 14:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1698268827; x=1698873627; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=x4R+fBPz/tYoWNwPb9Pp7jc9YbV1QMHyx6psPQvV2NA=; b=mr158P156/Z9KJDv08VPhWe22lAiExxKdjEjGw09Oy9Ryx3vnwevfoAsM1mb/Eep5Z GdhWMxpgRwK1C61JWfoXrYnEjtGNNfBxYjugtXY6CEDo6reTGSbe3q7q99h4W36OqzxX Ojp5L/buBcxj/NcDnssvPD2eRAdxYUZs418j3uWNlUJ8t/tlNZzNosJrAZPyyn1umFOY 8nsTj5u7HK5nsYkiepcJiIHAvdWoCjhy5UIAgRVNk6tgIF5uu4sHDByK613UOtd5oG0c VTfNoeDwTpJOUQtXnb/B02IdJJPDItDVlLXBHk1U+5u9dB5hAokXhKLjukBvsigs1h75 146w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698268827; x=1698873627; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=x4R+fBPz/tYoWNwPb9Pp7jc9YbV1QMHyx6psPQvV2NA=; b=DaSwb8XsOaUtyv2HYPelhBSkIC4U0dV4PIpS3/gCPqvzqBH9Pb2y/ZlvBNOBKRHiKt PTpBc9xNX0wb1tC/PlnuZ4Ft+L4YoVzmDZjBWQJ2T3sxSUtCCuxDCt74ppqWAtjg2CuT Rk2YmZl16fVbd3W8l5i8oyEi9Cs35ogmAJBOTxmcUfQnCG23iKrVmeZ4dfsLTWaZ/LoK /1iUL6j0nLaRzpsyl6dMNw+vjqay1Uk9e9t8P3Qy7V+vHUxxCWyxomvfy2ZbtIlU7aSv 6xiSTtT9OM4mw8T5hmtqYQhSGWWMfGwhtycfFPuI5WDnOJQgfcclWIpxYgOvY3wGTVxG EULA== X-Gm-Message-State: AOJu0Yy4nohcfx8kvSlZDqlioV1449rCgGcKkNP8Kch7NXDdUx2G48xM de0grOf1IqtF5XQklzF/qpqWdA== X-Received: by 2002:a05:6830:7:b0:6b8:9a3a:ea12 with SMTP id c7-20020a056830000700b006b89a3aea12mr18253103otp.12.1698268827023; Wed, 25 Oct 2023 14:20:27 -0700 (PDT) Received: from ghost ([208.116.208.98]) by smtp.gmail.com with ESMTPSA id r125-20020a4a4e83000000b0057b38a94f38sm166296ooa.12.2023.10.25.14.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:20:26 -0700 (PDT) Date: Wed, 25 Oct 2023 14:20:23 -0700 From: Charlie Jenkins To: Arnd Bergmann Cc: "Wang, Xiao W" , Linux-Arch , Albert Ou , "linux-kernel@vger.kernel.org" , Conor Dooley , David Laight , Palmer Dabbelt , Paul Walmsley , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH v7 2/4] riscv: Checksum header Message-ID: References: <20230919-optimize_checksum-v7-0-06c7d0ddd5d6@rivosinc.com> <20230919-optimize_checksum-v7-2-06c7d0ddd5d6@rivosinc.com> <059f17e6-e240-40fa-8742-7844ad3b3502@app.fastmail.com> <571211a1-470a-43da-a603-fd12a640b7a8@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <571211a1-470a-43da-a603-fd12a640b7a8@app.fastmail.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 14:20:38 -0700 (PDT) On Wed, Oct 25, 2023 at 11:18:40PM +0200, Arnd Bergmann wrote: > On Wed, Oct 25, 2023, at 23:11, Charlie Jenkins wrote: > > > > Thank you for pointing that out, I had not realized that macro existed. > > Since riscv keeps NET_IP_ALIGN at 0 it should be expected that > > ip_fast_csum is only called with 32-bit aligned addresses. I will update > > the comment and refer to that macro. riscv supports misaligned accesses > > but there are no guarantees of speed. > > Just to clarify for your comment: riscv gets the default value of '2', > which is the one that makes the header aligned. > > Arnd Oops, typo. I meant to write 2. - Charlie