From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CEC2C10DC3 for ; Mon, 11 Dec 2023 14:09:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344073AbjLKOIy (ORCPT ); Mon, 11 Dec 2023 09:08:54 -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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > ## 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