Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp362194pxv; Thu, 15 Jul 2021 06:07:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGS0tUtmCt/4beVDPvgQwON/a6rDMUVY4ApUg8uZEVuA1eJCubuYiAhhVKrpdrK671TDFN X-Received: by 2002:a17:906:3693:: with SMTP id a19mr5629311ejc.237.1626354441347; Thu, 15 Jul 2021 06:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626354441; cv=none; d=google.com; s=arc-20160816; b=ajQp/95+Iw7KxzamL9rTO+3qaIeLogLKs2Gqk/9z/UKJWeZ9bu1Js5RwwE5VTWiXap 2SKsQHNNn2rD+ZAG64WtmERIu128zXRhofKQkwYaDPygY3iu4S1glpveVp77uknSsIUw gwePDB1nMSKZ21nOSMC/Ko1KS2Pqw31Y0FiX6GaMSQspg6q5mUOwRZmUAe7Ua7OEa8fi nK5iSENhCvA0VBy349LWCaoIXfJpyAHgmkhtGr/IJZapU+wcg1hl7I5tXmXeUkcfnv5E 5XGZog6Yj6X+4ojTilHHdHuZB1yOIc4MsurBtrnAfBDK3rz5c71sIo5uPgY21BcbjzQW XrnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=3XKnCVe17/cL/PJQD7dAeEz7KGEt/61iS/itcmUBvTw=; b=Lt3OrOOrzwDb7G/hmY8U+7Rqq9DOZ2vKceDet+Anut9h8R0LmXZ1/Y8P2Dr8xgtH7e Cet4pU9Wqa7xwyHaiSAkb9Q299XoB+wge1yK2w4raKwPd0UrxfKu6918vheAeL7tMkd9 o7HSwTMjBOi3GPaNBFkQGqvLitz90/KXfFhu2lv2GM4LOMioukEENIpPDAZroy1tffDu KYERlB/5QJMWYZBkNyuXawGCE6J7E11qZnCDSuQyxcMPWPnYFi9GOMS81QgBWkmXDvY6 N2XQt0hUsoSOAjkwnUCtCsxyoDVo5MplFt5FG6qE2IIPcmao1Y6tmfvo2smeD2n0hxUP oKhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=AehGIjIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp31si6927464ejc.73.2021.07.15.06.06.57; Thu, 15 Jul 2021 06:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=AehGIjIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234736AbhGONHf (ORCPT + 99 others); Thu, 15 Jul 2021 09:07:35 -0400 Received: from mout.gmx.net ([212.227.17.22]:45775 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhGONHf (ORCPT ); Thu, 15 Jul 2021 09:07:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1626354271; bh=3XKnCVe17/cL/PJQD7dAeEz7KGEt/61iS/itcmUBvTw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=AehGIjIFryTdfYB6UGcGPOqsSWwkRDhvA9wnNHEX9IOamuDhN9gc7QCCvMHE3Zd3s Dz/OxXYKsuqzGYVqn7kCXssY9XIOI4bOtkOcm6uG8weCe6muMWB/EBU2o2A4hilAkj VgNjkq/IwYAWMFVoXPWu8vU1sIZCpm47eGQqPuno= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [87.130.101.138] ([87.130.101.138]) by web-mail.gmx.net (3c-app-gmx-bap31.server.lan [172.19.172.101]) (via HTTP); Thu, 15 Jul 2021 15:04:31 +0200 MIME-Version: 1.0 Message-ID: From: Lino Sanfilippo To: Vladimir Oltean Cc: Andrew Lunn , woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Aw: Re: [PATCH 2/2] net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum Content-Type: text/plain; charset=UTF-8 Date: Thu, 15 Jul 2021 15:04:31 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20210715114908.ripblpevmdujkf2m@skbuf> References: <20210714191723.31294-1-LinoSanfilippo@gmx.de> <20210714191723.31294-3-LinoSanfilippo@gmx.de> <20210714194812.stay3oqyw3ogshhj@skbuf> <20210715065455.7nu7zgle2haa6wku@skbuf> <20210715114908.ripblpevmdujkf2m@skbuf> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:BSfJAEMGWpjmadghZep1FdQXRxpw04ktpiPXQm4UEOWb2hn8UaCaD6/RHVTWWsP9vxrgu 6KOGEfPGPo7MRxTIC+sfYhjtkA9IEFAVzHKA06WD9cicrV55JhssXal3b7xvyu/MUSyd+ITHCZiO EB+xYMQLNp6CKwx7r9A57F5RYfiCoaZQETxVKzLC81uM93bUUUMxRh1aVKGvEX+F/WSMZil7dg3J 4OXOXly6RXBdsXD+9RvwjnL2tjWxLJC/dovEuIrMP0PFeWj1EhdkybWPBJQvNKF0jhjA5CFSkqsA dg= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3Ad/TgTgTrE=:KMdnEyIsLgBVyIkXwHnnZQ bykJuNOiF6M8cmKG49845vHTRtMeIbThHhNNfLNDnjlMj3Eei6r8scvlGZaC8EPAfBLuE3ht/ PzEuOX4giqxS+zc4hL6YYP8XAzf2EzBgIy0vpNZaoNE0foMzYvdwtas1FTFDfVnbv0F1G9bCP /HtdoOsJ0H3U8VghjPrPOkBGvzllW1ii59I95Lmrs1nztOM50NVbJmYW0cnfKfZQa840x1zjH P0omxUqhT72A9sw6yRMAcx0YazzUIl6p0ZgWV/YmW/NUr3aYl3kE/uk450ZRkjJQavc9bSc4g hsv8nVQ3ozNTvNCh9bILkd8kE8FgoxVi8T8atnUIVLmcjNdY0SpI8qSR9pWr+jYgA/GaKrSEf gVE3vEGhqU40FJwxXMG101qR1j1xETsuSb7Zx30rzBJdQ0bgeULqdknrHYIYbILeRQrgtB22a TMHVrACpewIYGaTfAxYurxGc204JddUOWzq6yzoXD1VCESeG17Ty++wGrQBLnOBX7UfRIuUSe 1c4HZ/bWNAKkuAFmIqwZGZmGZWcVe6N9QTaDJaRrKU7YPZ7fU9ZUB+xl+xmdZTky5d9FaOYNg +is3FIp7XOMnFiUEdBdZ0y2cYFuEiGctEcDaJn9LQLViK2G00B8bgolG7tbxmBlGlow9utteJ 4iBrGjGACCXtgnypUGmPJKqIBZmf5AjID8jY0HRzlC4QsxwYHsw25VflS1h8cGfPmU7GW/8tq TmwSuk0jN7QRPSFf4pj9UOPYwwYlvooFV0M4KkGCaQMNSdn4M3ZfWwtYa3Gn++TweR+NWlF+F x7jqYzpSHmI80LLv7/GW9WHUVZDWzTO6qcyw/X/+6MN8MEbnAA= Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Gesendet: Donnerstag, 15. Juli 2021 um 13:49 Uhr > Von: "Vladimir Oltean" > An: "Lino Sanfilippo" > Cc: "Andrew Lunn" , woojung.huh@microchip.com, UNGLinuxD= river@microchip.com, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem= @davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger= .kernel.org > Betreff: Re: [PATCH 2/2] net: dsa: tag_ksz: dont let the hardware proces= s the layer 4 checksum > > On Thu, Jul 15, 2021 at 01:16:12PM +0200, Lino Sanfilippo wrote: > > Sure, I will test this solution. But I think NETIF_F_FRAGLIST should a= lso be > > cleared in this case, right? > > Hmm, interesting question. I think only hns3 makes meaningful use of > NETIF_F_FRAGLIST, right? I'm looking at hns3_fill_skb_to_desc(). > Other drivers seem to set it for ridiculous reasons - looking at commit > 66aa0678efc2 ("ibmveth: Support to enable LSO/CSO for Trunk VEA.") - > they set NETIF_F_FRAGLIST and then linearize the skb chain anyway. The > claimed 4x throughput benefit probably has to do with less skbs > traversing the stack? I don't know. > > Anyway, it is hard to imagine all the things that could go wrong with > chains of IP fragments on a DSA interface, precisely because I have so > few examples to look at. I would say, header taggers are probably fine, > tail taggers not so much, so apply the same treatment as for NETIF_F_SG? > Please note that skb_put() asserts that the SKB is linearized. So I think = we should rather clear both NETIF_F_FRAGLIST and NETIF_F_SG unconditionally s= ince also header taggers use some form of skb_put() dont they?