Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp560068rdb; Tue, 31 Oct 2023 15:45:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpDAsZKD7gQjzX3ZZsVz1kgiXKT0YXn+paMlqUrCo7aZI+urnjWkTBQLYFbl32Y+4ar32R X-Received: by 2002:a17:90b:4f91:b0:27d:3f0c:f087 with SMTP id qe17-20020a17090b4f9100b0027d3f0cf087mr13210546pjb.25.1698792351072; Tue, 31 Oct 2023 15:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698792351; cv=none; d=google.com; s=arc-20160816; b=OgfZW/bcfVnPo4+1BkAa4DJjS0CY8My+LoVcq3nOrphs4LzaBgAL8KCd6FWQgXl++V m8jGTUVtgb0MMOqo+Turs9KfnvzUStscMnyeMs30NVlE97u9OsqTC/rOOZfWdhE0W27s StSLFvfsWWqh5NyAQtnR1kfAaIa7aNqFvE4Bzp6ad6+Souz26h6r1ec+S9MXyYuyqWR7 VPL6X+GjGW2WMUoxvV5QGyPUj0Zn/lPIOoUqqxnt0+olGCO9afW4rj4L+DfeBkvNXiFB YC4Af/spjnFu6Je9f4lyTs7Xepyq/73chFybdYBAY3tMBxD5IdUeHFseZbfF3hpr7jXK sb9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VFKvWTyDCWBL9OQU/8hWPAY1ypzqmRlRhrzmC//TK/0=; fh=7sTgL4l5IxDwN+qfPjFbkHPyuOk3OK8dEYGTT0NLMv0=; b=nJDajJCdBI8ARA7OWsGKcsGr0+XTFm07+N1jjUY/OEIqWLtTUuX68doE9dGw4AyFT8 RAsFxm5jOq0PQJX8i798TxtD8y5WVmBpzi0gopqTWBDXxODtDc+rvL0Uqyfs3SwgqU1z QKSHTLPpCPTtof0wh/GuLTm4roxGnRn4DZE3J3rjODVNIHKp0U0YCxCmw8kxleqBfgYD PUN2YaZpwjUZu7OvQcvWazL/P3+/h7Ba6q3sjrtAi0Luna6AinG56PUpAcZohjTquG0r KDo7GcvmaQxpw2lzuKXdGcIVTmwTQaeGqx02NAkwyPlgYWoifXBxQ6E4moEB5aDTsdZg +XIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PMXvc1HG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id pf12-20020a17090b1d8c00b002802838d557si1681485pjb.55.2023.10.31.15.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 15:45:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PMXvc1HG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 61C1B8076482; Tue, 31 Oct 2023 15:45:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344424AbjJaWpO (ORCPT + 99 others); Tue, 31 Oct 2023 18:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231889AbjJaWpN (ORCPT ); Tue, 31 Oct 2023 18:45:13 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E991BED for ; Tue, 31 Oct 2023 15:45:10 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5a7b91faf40so61521737b3.1 for ; Tue, 31 Oct 2023 15:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698792310; x=1699397110; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VFKvWTyDCWBL9OQU/8hWPAY1ypzqmRlRhrzmC//TK/0=; b=PMXvc1HGovDdOgdkRz1v4Q3k6/CIteWWFtrKVjAqOHlXJiwbUEq8fyEWOXKZJy/7t/ atC/W06dSLAtMne9lxd8OBUdP+AVt+lQygPzuEKAA4FjfKACY0V6ZwdsTPCC78O7mv86 j3ZhjKpWbtzYylbkQ+J44kh7/d1/4mAUtJx6zzSQA6dFyi/51GKKrWL8BDVjQrJI2V4D l5uC2lbUq2dfOpvBuyXrFgO+qUzSTbNu7IC0qVPOr+nBicFam8UHMwzKkOV4LNIUW4oR mHFDG9fLXynwFKGsOCl297SngxJESWWhCgrHoFH7wnWVLyeJ7ZANUjwo8kDJ5XTIhkrY RkEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698792310; x=1699397110; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VFKvWTyDCWBL9OQU/8hWPAY1ypzqmRlRhrzmC//TK/0=; b=jTDV6vfh3jiqhA7fTAwijRMMMl2hX893aYk7i+Xfr1LbioxQbeVNSVZbVkb3+fn/b4 rgtpWKqZC9rgJcz8TqBFoJPLFxOUIozEpmsHVnTTZUMxW5m/TyVyYOQA4Ge+tB5b5lme 1IzYGatGT03iZjMnlDCOG/raRFWmZd4Djfl6Z/XUGbdK8adCUq5jqBd+XUMQXfiRzSAH XeNTzyF+ccbEI991S0FfN56ty7TUtGALe3WqBKeiyZBEO7bEg6S4q2vwchnqGmi1F2zj dcSQnHS5OMbv/gMo5u80E42WrtVY7dBzjdyOWeWs5oLtulHkh/jJDUt73lyP7od0OJn7 WdEg== X-Gm-Message-State: AOJu0YwkcBjVQkdZ6s7vfp8G0EZHZPO6wRqh/RnNkZBEdCmhAqqoetwk VZ9jZ/LOruK3AsMo5fc0VO4VxHtO80tCdEBzVz4CTw== X-Received: by 2002:a81:b668:0:b0:5a8:8330:6f20 with SMTP id h40-20020a81b668000000b005a883306f20mr14934750ywk.23.1698792310074; Tue, 31 Oct 2023 15:45:10 -0700 (PDT) MIME-Version: 1.0 References: <20231030-fix-rtl8366rb-v2-1-e66e1ef7dbd2@linaro.org> <20231030141623.ufzhb4ttvxi3ukbj@skbuf> In-Reply-To: <20231030141623.ufzhb4ttvxi3ukbj@skbuf> From: Linus Walleij Date: Tue, 31 Oct 2023 23:44:58 +0100 Message-ID: Subject: Re: [PATCH net v2] net: dsa: tag_rtl4_a: Bump min packet size To: Vladimir Oltean Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 31 Oct 2023 15:45:23 -0700 (PDT) On Mon, Oct 30, 2023 at 3:16=E2=80=AFPM Vladimir Oltean = wrote: > if (skb->len >=3D 1496) > __skb_put_padto(skb, 1518, false); > > (...) > > skb_push(skb, 4); > > which means that here, skb->len will be 1522, if it was originally 1496. > So the code adds 26 extra octets, and only 4 of those are legitimate (a t= ag). > The rest is absolutely unexplained, which means that until there is a > valid explanation for them: Indeed only 4 of them are needed, I tested to add 4 bytes on the tail for > 1496 and it works. I'll send a new version. However that its "tag" is bogus since the extra tail isn't needed before the paket becomes 1496 bytes, i.e. 1500 bytes including the tag. It has a logic to it but ... yeah. All I can think of is bad VHDL in the switch. Yours, Linus Walleij