Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp598815rwb; Fri, 18 Nov 2022 05:59:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6fVOkT3hkQj52yZkS2UperIRSb74seiIhxVG8aUhsTJS5RUBaCBMespIDCtF+k27+sHFOz X-Received: by 2002:a17:906:3792:b0:7aa:97c7:2bfe with SMTP id n18-20020a170906379200b007aa97c72bfemr5986795ejc.196.1668779975776; Fri, 18 Nov 2022 05:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668779975; cv=none; d=google.com; s=arc-20160816; b=pl9IMcie+VsOOP+FxhWpLyjmuPnbtySwK1dUCoYhQ7maR1JHFm7na7hFDLG72JXqnV /g4138nzrV4hyIX1Zz5NknmK4OX/c9utB7ngmz9MuBIbPhXj8bKdoROCITskx1rWWv2j x0Ch0FfwXwnsFndPbLpwx5ew1GCpjHnqODGgP8jf8uognIMOvPx4BwBcUW9PS/+w9V+k erTAxwkkO/CjfBn4C7V/bHUu7zSmbOQx7UqRsSxVs4kL9wgi0kbq81W1jH3CkPs30Dz8 zsrtCSbft1Cr1eF90CdtU1bzGR5IiHPrGK8W/jefs8nlGWBXji769GCMmTpndu7nMW35 xmgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=i/Me5nSDjx2Cd9WbJI3mNaFiEfegP5j/RI4BMT0MWGw=; b=kUQLNqRuyRdQRvDSXwOlEa9JfGul9aXdXOR2XIfrcyQOk7jgh0oVsOoC0FPj+zHJxT K07hP7g1AKjTdTuSAGiRWxCzkF9QfO0fXNJyNA2WxyVUZCDtFK7zCVMjgnlyx7Is2nwx 8TiTUlp3GaPbhLpgYAFHUZle8PB/IS1u9phHkTLQM3YQv0tSuHGVCH+q/2zPtUfo6VUG MyEGP7QMu/+Zp0SOLpUIkZzfujJ38euxqPfHWj8ZwVeR1cyJpSpNz6A/rokhK5+ID13D UiWM4bONT7OGLP+6tLNg4WQukSneUEPTA6BQzcpb1YMVFM2IhOR+JQa3BR/U67S8rYxE sqxA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a170906861800b0077ef2f9c8b7si2510668ejx.922.2022.11.18.05.59.11; Fri, 18 Nov 2022 05:59:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242217AbiKRNjE (ORCPT + 91 others); Fri, 18 Nov 2022 08:39:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242133AbiKRNin (ORCPT ); Fri, 18 Nov 2022 08:38:43 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7D3920B5; Fri, 18 Nov 2022 05:37:28 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 6A14D1884470; Fri, 18 Nov 2022 13:37:26 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 5E708250052C; Fri, 18 Nov 2022 13:37:26 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 5395F9EC0020; Fri, 18 Nov 2022 13:37:26 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Fri, 18 Nov 2022 14:37:26 +0100 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: Ido Schimmel , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH v8 net-next 0/2] mv88e6xxx: Add MAB offload support In-Reply-To: <20221116102406.gg6h7gvkx55f2ojj@skbuf> References: <20221115102833.ahwnahrqstcs2eug@skbuf> <7c02d4f14e59a6e26431c086a9bb9643@kapio-technology.com> <20221115111034.z5bggxqhdf7kbw64@skbuf> <0cd30d4517d548f35042a535fd994831@kapio-technology.com> <20221115122237.jfa5aqv6hauqid6l@skbuf> <20221115145650.gs7crhkidbq5ko6v@skbuf> <20221115161846.2st2kjxylfvlncib@skbuf> <20221116102406.gg6h7gvkx55f2ojj@skbuf> User-Agent: Gigahost Webmail Message-ID: <54b489e65712e50e5ee67b746c0fec74@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 2022-11-16 11:24, Vladimir Oltean wrote: > On Tue, Nov 15, 2022 at 07:40:02PM +0100, netdev@kapio-technology.com > wrote: >> So, I will not present you with a graph as it is a tedious process >> (probably >> it is some descending gaussian curve wrt timeout occurring). >> >> But 100ms fails, 125 I had 1 port fail, at 140, 150 and 180 I saw >> timeouts >> resulting in fdb add fails, like (and occasional port fail): >> >> mv88e6085 1002b000.ethernet-1:04: Timeout while waiting for switch >> mv88e6085 1002b000.ethernet-1:04: port 0 failed to add >> be:7c:96:06:9f:09 vid >> 1 to fdb: -110 >> >> At around 200 ms it looks like it is getting stable (like 5 runs, no >> problems). >> >> So with the gaussian curve tail whipping ones behind (risque of >> failure) it >> might need to be like 300 ms in my case... :-) > > Pick a value that is high enough to be reliable and submit a patch to > "net" where you present the evidence for it (top-level MDIO controller, > SoC, switch, kernel). I don't believe there's much to read into. A > large > timeout shouldn't have a negative effect on the MDIO performance, > because it just determines how long it takes until the kernel declares > it dead, rather than how long it takes for transactions to actually > take > place. Would it not be appropriate to have a define that specifies the value instead of the same value two places as it is now? And in so case, what would be an appropriate name?