Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2130221rdf; Mon, 6 Nov 2023 05:43:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9W+zto2BbA4Yna2vPYjugw0yd3+5xail3tR+8wlf2O6zYjewptjEKVprUrUToxgWPUl0n X-Received: by 2002:a05:6a00:190b:b0:6bd:a8a3:cc59 with SMTP id y11-20020a056a00190b00b006bda8a3cc59mr32022576pfi.24.1699278232143; Mon, 06 Nov 2023 05:43:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699278232; cv=none; d=google.com; s=arc-20160816; b=fadNt8DkXF1koS3GHFotOxWRBMBWBbI/cdaUoIFaMo3UKTBzYjO7FMLF/Mv86AHEC8 3sYl7g3oXv6zJ1yZFMuJLtDdXG4luM0Y9zJ1lrQmd8XShfVLm61IdcRGKHu0zxGdczj1 lyGct2QI6NI/zShhEK2BKErHTXp43WceMU9oLT/SYeZj3kym27uxVAsDtMPKQz1961s/ GkEvOhow7AJnZ196rIIYTekWXMwk6EvTnJFmrk9v9RcD+qQGwH44P/m6muHTpOXnwRcK QeRmWPXKwXSd6XiNiCw8qq1W9GFkUB7ypfzyh/z73ahA/GOILWkqb11Ex1xXYQ3MG12Z /lGw== 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=8bIyalhCg66VMh95Lz1+QG+xtj+2//dT9BezOv0mZgc=; fh=5wE51Lus8pFdxsENG4WyaL+2nD0Bpnw3dIdk58aHFCE=; b=m4SKOPdH5n9V1CDryk/69+5tjnVZV/uC0EsxVMHNIwI8zI4qzCtaf+C45cODl76Z8Z D2MZj/rzTqJO3yxyU3uERF1a437RsJYABlyCPKUkRmMlkqag3ejE9wNAWhxivSnC/qXD 20uXdOPKjQjakYrR28pxEBH/Dir9LtVAVFTBsm2V9ATo5jatyu7W/Gu3d46ACDk1ZJBX IF6wwKFueVpM2l7NTpijKC/MLXMKBxYdyCMsLSn11KDk+gfId0gzX8nXjETWIjP1kVuC rsg2j6g+6NdxL3cprwvUcnhW5FklFTjvEYZozRFqImauj0GRUcwepjvSuNOujxmZ8r1c R18A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E6a3onPK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id s22-20020a056a00195600b006b70c01a08dsi8008062pfk.161.2023.11.06.05.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:43:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E6a3onPK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C913B8042B42; Mon, 6 Nov 2023 05:43:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbjKFNnj (ORCPT + 99 others); Mon, 6 Nov 2023 08:43:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbjKFNnh (ORCPT ); Mon, 6 Nov 2023 08:43:37 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10485D8; Mon, 6 Nov 2023 05:43:35 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-99357737980so671389466b.2; Mon, 06 Nov 2023 05:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699278213; x=1699883013; 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=8bIyalhCg66VMh95Lz1+QG+xtj+2//dT9BezOv0mZgc=; b=E6a3onPK43GgUXizfDzGgG04DBJwTXN+5eEkvZxDlBxVvXylOUg2kke1YOyKPpT2Ym +p5TG9qTbRX7tGS+N/OgLn2U30XkE0UlMHzsAFWl69rjO+BiMklyQIyN1OBR6TewzvbH T0wegWO5jcOl17rFo1Zwt1JyS0SwFhsi/xWsPsKDdoEv2vcfeiiyh9ZlXmpNNbNOia/I EwsoJPcTQtHwiel+zAv9qwOpjswdBfts7P4M7VgCiJzfyianbsiiA60XzfWDVQUMbh1T mBProqF69tTaliuhQpopIAhtS2ObUWSnxuqInINavzyQutOXg0JqQZdPfaPluWIlNuqH ub0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699278213; x=1699883013; 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=8bIyalhCg66VMh95Lz1+QG+xtj+2//dT9BezOv0mZgc=; b=J0JguYX3ket4TArTSYNsdGzb5h44xvLNYOZs3tOujb3C369GDBYxksFpxCq8drQjpo xkYVN78kKT+pltvLitOouKuIQoPobsPsc0/kFMHK1kmbrXoQeeW3qtFU6jMyHiiB71PZ c90mzm8ly0BQF+0rlLwRRcnPvPkV+svumpxZJpU/Wrbcnbn+4sxoHMEScj4HCyZURoyo qzQuFsMR7ABDzZd1EdH1H+nsy6CMfu/JI22o58i/OJZVuNVYuUBFbldurGi8FvH7RxAx kTUW+ub4DSusSTQGwfm05BNwRiF8gLpq13rWGTUCQSG/H++qum0KZNmA+am5B9arui17 ly/Q== X-Gm-Message-State: AOJu0YwRKCz19AY82JwVeWB8PW0eDdlOY3qGL58eFzsDBTeZj0dvnp1I T2EVdUOunlGVWkMVF1F9dGs= X-Received: by 2002:a17:907:7255:b0:9bf:10f3:e435 with SMTP id ds21-20020a170907725500b009bf10f3e435mr13613113ejc.1.1699278213249; Mon, 06 Nov 2023 05:43:33 -0800 (PST) Received: from skbuf ([188.26.57.160]) by smtp.gmail.com with ESMTPSA id h3-20020a170906260300b009887f4e0291sm4113208ejc.27.2023.11.06.05.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:43:33 -0800 (PST) Date: Mon, 6 Nov 2023 15:43:30 +0200 From: Vladimir Oltean To: Linus Walleij Cc: Hans Ulli Kroll , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Andrew Lunn , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2 4/4] net: ethernet: cortina: Handle large frames Message-ID: <20231106134330.nyxuayv5g6q4l43y@skbuf> References: <20231105-gemini-largeframe-fix-v2-0-cd3a5aa6c496@linaro.org> <20231105-gemini-largeframe-fix-v2-0-cd3a5aa6c496@linaro.org> <20231105-gemini-largeframe-fix-v2-4-cd3a5aa6c496@linaro.org> <20231105-gemini-largeframe-fix-v2-4-cd3a5aa6c496@linaro.org> <20231106132626.orn5r57cc7n5ditj@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231106132626.orn5r57cc7n5ditj@skbuf> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 06 Nov 2023 05:43:49 -0800 (PST) On Mon, Nov 06, 2023 at 03:26:26PM +0200, Vladimir Oltean wrote: > Gemini should never attempt to provide checksums for DSA-tagged packets > unless it is able to take skb->csum_start into consideration, otherwise > it will get it wrong. Additionally, since Gemini does not put NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM in vlan_features, DSA won't inherit (thus won't have) them. So, validate_xmit_skb() should perform the skb checksum during the xmit on the user port, which is earlier compared to the xmit on the conduit. So, I guess skb->ip_summed should already be CHECKSUM_NONE here? I think the only problem for DSA is the lack of the TSS_BYPASS_BIT. The rest is unrelated.