Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp6910rdh; Wed, 25 Oct 2023 14:19:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxmw8PgdByPhVDwUrNSttpCA9DQobnqm1ZAhzAP2NQGnAEmB0pEgZ5Sfrhpe8LRGy9b34O X-Received: by 2002:a25:4041:0:b0:da0:8283:416e with SMTP id n62-20020a254041000000b00da08283416emr1482129yba.27.1698268759057; Wed, 25 Oct 2023 14:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698268759; cv=none; d=google.com; s=arc-20160816; b=MHdj00LJbFqTUFqMWSjxhHUw0Dj1wfit0SkFPA8sBmrGrq3p4E5Nx2KQjiu5Qa1MRF 82B+PkDWY3OgLWroGndf3fL5zRVKODnqZvqvOrCoH5w9mxbOdPdqgnOLHouURG1mcd4O e0mxU5NfkXXOq7qKkC87Aohimt7cGZKB27sIP97G9m+qblCOus/R/DXSVnnLGvqAxNX1 R67769nqUxHaB9pYqmGxyS0Mya05Gv9stmVLI1IfO6W1CYZUuf0YcuMq+lmNFu3qsew+ QnZDdnBC4GV0EF8/6496lR9t+c9yCkv8AWXWiYIz7TN9yP0R948/94D6J8BCZP3TK+1L T7Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=sBbmzZrzS7uTnh17vfzRRsLGG5pya0cO071IzBgauVw=; fh=QMZnFFumhPvD9x6fozyIFj6mpUr1lwHYvb9cBmBOp58=; b=JfN1gKV9ISUSlWnM4nJJumXwS6LchlH55kHwbmXmE2oQcTTbIcLzhf9rEfESt48Eig jfR+3uNEy5yhpNz5iYSuKzna9V/I/PZXrqop3Ve0rHAbC7bVWfcFt3ul8sPh73syVhM0 ih/rq907BsB+ip8GmlTlsLeEaafyqXJW3Xbn3HKBzMZ41x1KsfbqSroshl74J600+P0g Oowctqki02YViOuc4JbajZYBCXuRK6MqJaPmlEElVUNohKcGyM057jfX4rR7Dq+8sMSE 6o6be/aZip0wUmcYpLzOepWtU/RfAPSyJL+ZHFVDr0nTSR1Wz4QX/HuA/HJYEg1MP8ch UISw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=cEGW65XA; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=B6qwFUmE; 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 d31-20020a25addf000000b00d9ca7235c3dsi12870453ybe.737.2023.10.25.14.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:19:19 -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=@arndb.de header.s=fm2 header.b=cEGW65XA; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=B6qwFUmE; 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 52808802A02C; Wed, 25 Oct 2023 14:19:16 -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 S229881AbjJYVTE (ORCPT + 99 others); Wed, 25 Oct 2023 17:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjJYVTD (ORCPT ); Wed, 25 Oct 2023 17:19:03 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B304D132; Wed, 25 Oct 2023 14:19:01 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 217615C02D1; Wed, 25 Oct 2023 17:19:01 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 25 Oct 2023 17:19:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1698268741; x=1698355141; bh=sB bmzZrzS7uTnh17vfzRRsLGG5pya0cO071IzBgauVw=; b=cEGW65XAIPb/2izJgp CDNL/6qj+dj9I6xTv077eqlR9F9W9CENmDXvCK5w3j0oBgdR7HbmVHLb/MrRWvHs 6fSWyu1V7USJiN7J/0oYHagyu11Opj2C6e6Jp1rGV5jOBVE8Ea4yqM09svL8kZCf pjGGu4CWF4OAcZX1K7FTRNFl/BWFqQXgqkdVEPnGzJa6dVONdvbGDDKwdgCVlHsd XMESC0iY7G2qWQgs3P+I7S1kHGTXSfZmvQrykBdFWoIz1qYWR95e7A1Vubgtrb4n yNvh/rii5JKXOwmTwghXClJTe5VfJfXno1JEpnPWJ3bdKNMwlGIHc0rYeplYAcR4 mIsQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1698268741; x=1698355141; bh=sBbmzZrzS7uTn h17vfzRRsLGG5pya0cO071IzBgauVw=; b=B6qwFUmEMob+EA2+IiIud9rsZ2Djn G3DTTilrXtsOAaKYdVplWsooJZj+Y2vbKCzWWNxY4Jfhe0di5qFyPcJ/4JQBQkZc WYYFytP0NLIGXoUhGP2JoDeANt50t3TAsZla/iURUbw98UK6E1yw3tZcEDP3oCfI 7Lp2exF8FrfsqOWwhZ/ZYWdN0v3wUyedHltDhjdiw3dQiHiH4QZXP0XavdterzXa F8hm2tsjWmUmXptrG1RIGPkVGDU0YyrnJ4XgyHIA2mWAcFRRvHjKrn6rs+GoT3fy zX3bxaMerVMOQ3VhugI0tBEane6n35v6cbCNWFAVs2DF6rLy5xHOuV/7w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdduheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BDBADB60089; Wed, 25 Oct 2023 17:19:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <571211a1-470a-43da-a603-fd12a640b7a8@app.fastmail.com> In-Reply-To: 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> Date: Wed, 25 Oct 2023 23:18:40 +0200 From: "Arnd Bergmann" To: "Charlie Jenkins" 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 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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:19:16 -0700 (PDT) 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