Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3993241rdb; Mon, 11 Dec 2023 06:09:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6ZNHi9e+o9JiSbF/GgSEF9JBqvAM/SUfVKzhPNt7vKEqUHc/ZoE8reY4E1UaGL96cfPAg X-Received: by 2002:a17:90a:4b87:b0:28a:3837:6972 with SMTP id i7-20020a17090a4b8700b0028a38376972mr1659176pjh.22.1702303751115; Mon, 11 Dec 2023 06:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702303751; cv=none; d=google.com; s=arc-20160816; b=BnALlJsTsIMtc3Z9mXhmM0i33f8vBPG+M7Ouh5aahJ+noH7WqkDuM+2S6ZdcpHJ7rK ufEaqh0bcA/Rl4bdOgUjHNlAjVTquW1lWMlgYhPPLKgOG7+gVWJ8JvPWdtzWa3Ez7lYa yukxfyO45+T73XuBOy6MsuMGV1290j7BfhLwb9TVJRzGRRs4ajQO6hSeYhjyscn1PcAI BWhAoBnt1EOTLwXlGoFA96N6O9osjWCq8+72KzpRccd8r/yHIpfwQ6xZU4UBryYeNJtq Ati7UwDl45maqOZlMkkzr2fAIj9+qf+Ldjk8vT/yIigtAIsXe63wGappt83CS25TZBVo BUgA== 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=a5KlyULzT0peuZ0c1QWXDeAwyadS1a4REYYtErhjE+A=; fh=39O3yEiOibZCN+TbBr8BNoydF9bUVrKGEGWP79DFA9M=; b=mg7ZdaCibJudTeknP8WrBZSEJVdXZ3/t+2uj/lQWRBxp7Sd7oV34SHblWbKqedDJSt OuCDLYXqQyziiaGo46nlcCGcwEtMJYZ66oq6MiJRIYh7abYm6rkik/xXWUJgmaQlnlif CK2JngA6TJGLkSeG6Be++BTmqIvoxDABWljeSVfax5GRRctdhSw5ZxXF4Yw3A0ybHWy7 2dbcxVR6PGGurvbbiKrgXnLtqrFtiQFJobujyHZwislfyO7hMjLlg6rt4c5RC6n6eof9 8leFCO96j1L2wd09/Tew3xqsNdnnA4qxoACRBj6SnyiBADOeYbImOkM/D/WvKFIT21N+ 86vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1CQSVdej; 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=lunn.ch Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x3-20020a17090a6c0300b002887144daffsi6176736pjj.83.2023.12.11.06.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 06:09:11 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=1CQSVdej; 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=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 52C40807861F; Mon, 11 Dec 2023 06:09:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344256AbjLKOIx (ORCPT + 99 others); Mon, 11 Dec 2023 09:08:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343996AbjLKOI0 (ORCPT ); Mon, 11 Dec 2023 09:08:26 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB23812E; Mon, 11 Dec 2023 05:55:02 -0800 (PST) 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=a5KlyULzT0peuZ0c1QWXDeAwyadS1a4REYYtErhjE+A=; b=1CQSVdejU3ZzLEn2q0Fn/CRiw6 ofo935OiRRj+zg2q8PJUmbmZnLm7uOOeblonKXNxqHr5k0MFhQBvzz8igGt0VyYzA2MgtKyMPh2Mj w5tBE+e5kab9YD2PWkOtKPYKb8TCcABIttfQ/nrEv8dJ/k5yOH553EB21IQQVXSDOOfA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rCgkD-002cfT-2r; Mon, 11 Dec 2023 14:54:49 +0100 Date: Mon, 11 Dec 2023 14:54:49 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?Ram=F3n?= Nordin Rodriguez Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] net: microchip_t1s: additional phy support and collision detect handling Message-ID: References: <20231127104045.96722-1-ramon.nordin.rodriguez@ferroamp.se> <270f74c0-4a1d-4a82-a77c-0e8a8982e80f@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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]); Mon, 11 Dec 2023 06:09:07 -0800 (PST) > ## with collision detection enabled > > iperf3 normal > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 5] 0.00-10.00 sec 5.54 MBytes 4.65 Mbits/sec 0 sender > [ 5] 0.00-10.01 sec 5.40 MBytes 4.53 Mbits/sec receiver > > iperf3 reverse > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 5] 0.00-10.00 sec 929 KBytes 761 Kbits/sec 293 sender > [ 5] 0.00-10.00 sec 830 KBytes 680 Kbits/sec receiver > > > ## with collision detection disabled > > iperf3 normal > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 5] 0.00-10.00 sec 6.39 MBytes 5.36 Mbits/sec 0 sender > [ 5] 0.00-10.04 sec 6.19 MBytes 5.17 Mbits/sec receiver > > iperf3 reverse > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 5] 0.00-10.27 sec 1.10 MBytes 897 Kbits/sec 268 sender > [ 5] 0.00-10.00 sec 1.01 MBytes 843 Kbits/sec receiver > > # Conclusions > > The arm system running the lan865x macphy uses a not yet mainlined driver, see > https://lore.kernel.org/all/20231023154649.45931-1-Parthiban.Veerasooran@microchip.com/ > > The lan865x driver crashed out every once in a while on reverse mode, there > is definetly something biased in the driver for tx over rx. > > Then again it's not accepted yet. > > Disabling collision detection seemes to have an positive effect. > Slightly higher speeds and slightly fewer retransmissions. I would want to first understand why there is such a big difference with the direction. Is it TCP backing off because of the packet loss? Or is there some other problem. Maybe try with UDP streams, say with a bandwidth of 5Mbps. Do you loose 4Mbps in one direction? Or a much smaller number of packets. Are there any usable statistics? FCS errors? Andrew