Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp365193pxv; Thu, 15 Jul 2021 06:10:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO6vjuZkXZLzwanPB8dum7l3WvNJp7gF3rM0qZ7A0MbL39XqQoexFbBB12fqSoNpEu3ovh X-Received: by 2002:a6b:8b0d:: with SMTP id n13mr2684777iod.169.1626354636248; Thu, 15 Jul 2021 06:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626354636; cv=none; d=google.com; s=arc-20160816; b=hC+JZZ1ZBrgFC8pVAXOjy7GoXNCZXMm43XPUleStkbSo68Z6fk8nqLmti+Rw7lqwuv Ucs4xSHj6I4bje+uELprevmgFH3ukt/pgZikYvGeptDmiCejKnT0KqrL4lYzeTkyc581 4rxZqtk1aVepKSve1dWLsUtX09m26xjl4oboqtX6r6yzvqlqd82HWP1GUbMBhAnNU6Wj OKkyvymen/B0hadJNK6Nm9k7qPkRRyJEsYVG4Jm/BczhOJQrHuhh/N6iTU21aVynTxeJ 4lG37qxGUYA9eaGc4MBCbOYT5UG/8rjtQFwNn2tP8DaGAc3+EaSN80RiokDQ+ZKswa4B atow== 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=crnV8WiEsXkYRDOXGKgUcdIiSuJkX3wBykL63bhych8=; b=pa61OJpg09jSxwH0aWwLAI9AKDulScZhRBTLHFYgZj4gWN8y/JHLQA/V3QeoV0nRRb 7uRI8goBI+ttwLqJoP4QM++nSQpTsPlNyr2MwdBAoSOAr5rtF4SO1/DWRVWazh1IsIuX b1xiBSkzCSvgFUBp8y/pO5cw/bTLXMgCwFlocA9uYZrOAlzMG+5ezhu2+WAd0/hi3t5u HupoRrsIYyeTD/IYBMQhicWvtL4ZmshXuR71fxvw7LRXQyMdza5kq0U+ZOMQMHgbti03 Eos1K/7ewPYjUApzkDQN80vwXer7OqsbufBDCf0zHF8/hnL/DToxOElIuXzHQ1snaTKg yTCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PGteHXKT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si8952844iow.87.2021.07.15.06.10.18; Thu, 15 Jul 2021 06:10:36 -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=@lunn.ch header.s=20171124 header.b=PGteHXKT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236596AbhGONL7 (ORCPT + 99 others); Thu, 15 Jul 2021 09:11:59 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56942 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhGONL6 (ORCPT ); Thu, 15 Jul 2021 09:11:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=crnV8WiEsXkYRDOXGKgUcdIiSuJkX3wBykL63bhych8=; b=PGteHXKTX7HAeE/TZ52+tsm07W 9QaWn3GT1Ew2am1IQgb/Zg5KPHd/9AGcLQqee+1eG+bxEDBAFTV7c/px87wrf5mwaGNIsIC3z7NCQ NaGzfMgVGeRCL9F2tbD5hiTf4Ftph5Gc81Zxe1tEhfrj79pWa39uX3K1d0pMfX/t7tSQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m416j-00DUS1-Gx; Thu, 15 Jul 2021 15:08:53 +0200 Date: Thu, 15 Jul 2021 15:08:53 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Lino Sanfilippo , 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: Re: [PATCH 2/2] net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum Message-ID: References: <20210714191723.31294-1-LinoSanfilippo@gmx.de> <20210714191723.31294-3-LinoSanfilippo@gmx.de> <20210714194812.stay3oqyw3ogshhj@skbuf> <20210715065455.7nu7zgle2haa6wku@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715065455.7nu7zgle2haa6wku@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > - If we inherit NETIF_F_HW_CSUM from the master for tail taggers, it is > actively detrimential to keep this feature enabled, as proven my Lino. > As for header taggers, I fail to see how this would be helpful, since > the DSA master would always fail to see the real IP header (it has > been pushed to the right by the DSA tag), and therefore, the DSA > master offload would be effectively bypassed. The Marvell MACs know about DSA and should be able to perform hardware checksumming. It is a long time since i looked at how this works, but i think there is a field in the descriptor which gets set with the offset to the IP header, so it work for DSA as well as EDSA. I _think_ Broadcom MACs also know about Broadcom tags and can do the right thing. So we need to be a bit careful here to prevent performance regressions for same vendor MAC+Switch combinations. Andrew