Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp789027rwb; Thu, 10 Nov 2022 07:27:02 -0800 (PST) X-Google-Smtp-Source: AMsMyM7e6Lk5Zmqf3DKvlL81mvStv4uGmUzF4vKWuUweQmrpYPrw/coPh32PLSgcxTiSxZRx+Jrm X-Received: by 2002:a05:6402:13d9:b0:463:398a:75af with SMTP id a25-20020a05640213d900b00463398a75afmr56304026edx.328.1668094021979; Thu, 10 Nov 2022 07:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668094021; cv=none; d=google.com; s=arc-20160816; b=Fe2Mfbqn4wSbwhOROHz99iSwCqDBaIj7m7Vo6zjMzuZAczA2OZk8PaCuUmjASiCbRr 0UJfVbSOxR/Qa8JmPTi9PVpGgJxDrAtsDUDP0TeBTk8JaAfib5cn+CnWVAqWPBrj3tMW XcXknj4OS6Zm6qq2AvBNNt22Edf630FaQLOdg/VYsZd9vHWB5hi0ZSI1BSMGz3iVTK49 czjg4qBKcnotQeecdTMS8MV5y9kFdKapmeRUsiOTGnRJ9Bgj6bzdpcReWzJyq7g3q0lH N+6Ddc/1Z3LsZCe02LwekmAF2eKHZS+5M0SYMLhhFbLXSakZewGrofV9NEx0HuUfQHBv IdaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dx9Bi6iY9mxmn1O18gi6zgWDIoquBunnLdm9wuBtprA=; b=ASQj51gGDNNIuuWftLvBHb1GmmkTUUqozigQSGhE4mmBunOONQuKGvOS38/RVvCWI0 2nS1xsUkur2Mr5EMmjh5yz1IlwZuuEBSG3bCww0d59ZjjTdM0S/PVMl9EHAhY4A5HVmj utRfBaeDFfTHzWdSmGk5mdH4raqRlcT8yW8bHG7AaA5ncDvZl9yJJVkZ69tIV7ONj9ar Z4JKUziQO419iwG/rY+6dJ7ma4jw+w+OKuZ8w5UX2rPelgQbb3XA7nEDtwWWskuDZSf7 5PQjgLq/PM9kyj/NrtdN0ZZAO6/QYap/kd85Mp/E0MK5Ayw8krqe99AuKb3MWwsZpGgL q4gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lRZZx5h6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h15-20020a056402280f00b004589ea2d983si22033381ede.287.2022.11.10.07.26.38; Thu, 10 Nov 2022 07:27:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lRZZx5h6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230496AbiKJOnz (ORCPT + 92 others); Thu, 10 Nov 2022 09:43:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230430AbiKJOnw (ORCPT ); Thu, 10 Nov 2022 09:43:52 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734CA2C67A; Thu, 10 Nov 2022 06:43:51 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id u6so1523913plq.12; Thu, 10 Nov 2022 06:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dx9Bi6iY9mxmn1O18gi6zgWDIoquBunnLdm9wuBtprA=; b=lRZZx5h6X+vXmxfPORkbofXfmHdIPTjZCmSYfkmmZlYrlt8PA794rc0BGpACiWGJkr x8gdxb9aedhOfiIoThbJmnB9ILE8f63KPhVIZbKYyo61pizubVdLtQgywc3bV7WMaTlg nA/yaMhYWEJapU3G+gDRC9XyaRyJbu7rqxsaw+iEVG3m1JL2N4E7S4++g9Ju1ddeYZFD SGsnfON7LPKvDTG321jcSvXt6Ek3j+6SNfYrE/Dzsenk+v14BUt9J1icGk8wolXeP1hR Z9WY4b1dZkcd8c/u7wB4SB4tJPBBtWCSZLQB+ithbe1KS4/+ts8Usil2/EaTa5EQwHhh tnTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dx9Bi6iY9mxmn1O18gi6zgWDIoquBunnLdm9wuBtprA=; b=pFA6eGUkq7Ykx4Udxdu0atkSlrYbJEMAfiukbeNd5KANMe8qWDIBVRG3+3Lk2P1Bts bGPgiqpwA9Qx5CnpWEOuEwEsTDhZY5ZWv/LFfrXBdL8UAgn3d24YWdpJS9JzFLQfVHd0 fqhIE3m2wl5qZ/XDA3z/q3dSZe9hQMUWklWn4j25CtcTcUyQ++tE0p5QstUNPKShv30Q KRNmWsofQCymKobXozOvY7kUuVBu7NwQYMOloBWPHRrZKm0BpVW/6VF9OXUdsXDTdhc5 7tZS9dOvC+wP818V9AhyXY9JtkbKZ/INW8DHV7S1SG8kpEjrdip4J68IxUGLxISywQ8V Nu7w== X-Gm-Message-State: ANoB5pn887tO+xvvAD1gBMOXykQhCEEmyKC3cxM4MkhVtwC5s6oDwpM0 1ctVc4s1vuGUmxCBBKgTLBo= X-Received: by 2002:a17:902:8a97:b0:188:8cad:f8ca with SMTP id p23-20020a1709028a9700b001888cadf8camr10767968plo.84.1668091430966; Thu, 10 Nov 2022 06:43:50 -0800 (PST) Received: from ?IPV6:2600:8802:b00:4a48:c0ce:1fc9:9b4c:5c3d? ([2600:8802:b00:4a48:c0ce:1fc9:9b4c:5c3d]) by smtp.gmail.com with ESMTPSA id j2-20020a625502000000b0056bd4ec964csm10250751pfb.194.2022.11.10.06.43.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Nov 2022 06:43:50 -0800 (PST) Message-ID: <75394de2-44ca-7a65-3dce-7c583b514e0a@gmail.com> Date: Thu, 10 Nov 2022 06:43:50 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH net-next v4 4/4] net: dsa: microchip: ksz8: add MTU configuration support Content-Language: en-US To: Oleksij Rempel , Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Arun Ramadoss , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20221110122225.1283326-1-o.rempel@pengutronix.de> <20221110122225.1283326-5-o.rempel@pengutronix.de> From: Florian Fainelli In-Reply-To: <20221110122225.1283326-5-o.rempel@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/10/2022 4:22 AM, Oleksij Rempel wrote: > Make MTU configurable on KSZ87xx and KSZ88xx series of switches. > > Before this patch, pre-configured behavior was different on different > switch series, due to opposite meaning of the same bit: > - KSZ87xx: Reg 4, Bit 1 - if 1, max frame size is 1532; if 0 - 1514 > - KSZ88xx: Reg 4, Bit 1 - if 1, max frame size is 1514; if 0 - 1532 > > Since the code was telling "... SW_LEGAL_PACKET_DISABLE, true)", I > assume, the idea was to set max frame size to 1532. > > With this patch, by setting MTU size 1500, both switch series will be > configured to the 1532 frame limit. > > This patch was tested on KSZ8873. > > Signed-off-by: Oleksij Rempel > Acked-by: Arun Ramadoss Reviewed-by: Florian Fainelli -- Florian