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 64DCAC64EC7 for ; Sat, 25 Feb 2023 19:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbjBYT4i (ORCPT ); Sat, 25 Feb 2023 14:56:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjBYT4g (ORCPT ); Sat, 25 Feb 2023 14:56:36 -0500 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6560168B2 for ; Sat, 25 Feb 2023 11:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677354976; cv=none; d=zohomail.com; s=zohoarc; b=Ce+dNhFnCVclvggem99aBftuNzt/h+IwDCeu4Wx1S0uqs+XL5wtBuS0ONznmbVa6JxulLl6RfSgxwBiC6eCb2EnegdKKDfsfd0MHoLRpEj2addTH2xpdwMOlv/k8i82Hmg7chjB/2gdoy5Np/rINC6+3paTW0geq9daOfaQPRP8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677354976; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=uliIbUfFytdyn5gDDQA7T8WrMz7393U1oiacEYhbXxk=; b=EyTqJYApnwM8ycuyD2W9Rw56KM5n7bjbe6nAb8pkkJedCn7aiDDqgeadaWJI/VRPnflxcXD4El3JWm/aB+JWRIj41KG5LM7oltZn+x+vsssvKQ6WmPXZhm4CFdd1PYhA3FCvJC9TQ9pvvsS9umi4RaCSpQj7mZ7GtiI4JWOVJCU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1677354976; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:From:From:To:To:Cc:Cc:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=uliIbUfFytdyn5gDDQA7T8WrMz7393U1oiacEYhbXxk=; b=OWwMdJVAJjS2148yfsymFdWB98dOyIFfgUFwDsEYoTvazhOSaS4jmoCkk6TAnxEi imT7Wu4XLvmJtKxtfBRXqGglzagMoV7hP8cq+kGyEEbgQCOhyWd/1R3xkKUnFF9P0zL KF5s/ntSHAghKiv3r+qB4AvWKTY5YvKRN4RE3CQM= Received: from [10.10.10.122] (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1677354974448838.1182811734; Sat, 25 Feb 2023 11:56:14 -0800 (PST) Message-ID: <6383a98a-1b00-913d-0db1-fe33685a8410@arinc9.com> Date: Sat, 25 Feb 2023 22:56:09 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: Aw: Re: Choose a default DSA CPU port From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= To: Frank Wunderlich , Vladimir Oltean Cc: netdev , erkin.bozoglu@xeront.com, Andrew Lunn , Florian Fainelli , Felix Fietkau , John Crispin , Mark Lee , Lorenzo Bianconi , Matthias Brugger , Landen Chao , Sean Wang , DENG Qingfang References: <20230224210852.np3kduoqhrbzuqg3@skbuf> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 25.02.2023 19:11, Arınç ÜNAL wrote: > On 25.02.2023 16:50, Frank Wunderlich wrote: >> Hi >> >>> Gesendet: Freitag, 24. Februar 2023 um 22:08 Uhr >>> Von: "Vladimir Oltean" >> >>> On Fri, Feb 24, 2023 at 09:44:43PM +0100, Frank Wunderlich wrote: >>>> 6.1.12 is clean and i get 940 Mbit/s over gmac0/port6 >>> >>> Sounds like something which could be bisected? >> >> managed to do a full bisect... >> >> most steps needed the fix from Vladimir >> (1a3245fe0cf84e630598da4ab110a5f8a2d6730d net: ethernet: mtk_eth_soc: >> fix DSA TX tag hwaccel for switch port 0) >> >> here is the result: >> >> f63959c7eec3151c30a2ee0d351827b62e742dcb is the first bad commit > > Thanks a lot for finding this. I can confirm reverting this fixes the > low throughput on my Bananapi BPI-R2 as well. > > $ iperf3 -c 192.168.2.1 -R > Connecting to host 192.168.2.1, port 5201 > Reverse mode, remote host 192.168.2.1 is sending > [  5] local 192.168.2.2 port 56840 connected to 192.168.2.1 port 5201 > [ ID] Interval           Transfer     Bitrate > [  5]   0.00-1.00   sec  74.6 MBytes   626 Mbits/sec > [  5]   1.00-2.00   sec  74.4 MBytes   624 Mbits/sec > [  5]   2.00-3.00   sec  74.4 MBytes   624 Mbits/sec > [  5]   3.00-4.00   sec  74.3 MBytes   624 Mbits/sec > [  5]   4.00-5.00   sec  74.4 MBytes   624 Mbits/sec > [  5]   5.00-6.00   sec  74.3 MBytes   623 Mbits/sec > [  5]   6.00-7.00   sec  74.4 MBytes   624 Mbits/sec > [  5]   7.00-8.00   sec  74.3 MBytes   623 Mbits/sec > [  5]   8.00-9.00   sec  74.4 MBytes   624 Mbits/sec > [  5]   9.00-10.00  sec  74.3 MBytes   624 Mbits/sec > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval           Transfer     Bitrate         Retr > [  5]   0.00-10.00  sec   745 MBytes   625 Mbits/sec    0 > sender > [  5]   0.00-10.00  sec   744 MBytes   624 Mbits/sec receiver > > After reverting f63959c7eec3151c30a2ee0d351827b62e742dcb (and removing > the lines that appeared on HEAD which caused a conflict): > > $ iperf3 -c 192.168.2.1 -R > Connecting to host 192.168.2.1, port 5201 > Reverse mode, remote host 192.168.2.1 is sending > [  5] local 192.168.2.2 port 36364 connected to 192.168.2.1 port 5201 > [ ID] Interval           Transfer     Bitrate > [  5]   0.00-1.00   sec   112 MBytes   938 Mbits/sec > [  5]   1.00-2.00   sec   112 MBytes   939 Mbits/sec > [  5]   2.00-3.00   sec   112 MBytes   939 Mbits/sec > [  5]   3.00-4.00   sec   112 MBytes   939 Mbits/sec > [  5]   4.00-5.00   sec   112 MBytes   939 Mbits/sec > [  5]   5.00-6.00   sec   112 MBytes   939 Mbits/sec > [  5]   6.00-7.00   sec   112 MBytes   939 Mbits/sec > [  5]   7.00-8.00   sec   112 MBytes   939 Mbits/sec > [  5]   8.00-9.00   sec   112 MBytes   939 Mbits/sec > [  5]   9.00-10.00  sec   112 MBytes   939 Mbits/sec > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval           Transfer     Bitrate         Retr > [  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec    0 > sender > [  5]   0.00-10.00  sec  1.09 GBytes   939 Mbits/sec receiver Just tested on an MT7621 Unielec U7621-06 board. MT7621 is not affected. $ iperf3 -c 192.168.2.1 -R Connecting to host 192.168.2.1, port 5201 Reverse mode, remote host 192.168.2.1 is sending [ 5] local 192.168.2.2 port 38946 connected to 192.168.2.1 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 96.5 MBytes 809 Mbits/sec [ 5] 1.00-2.00 sec 97.6 MBytes 819 Mbits/sec [ 5] 2.00-3.00 sec 91.5 MBytes 767 Mbits/sec [ 5] 3.00-4.00 sec 91.7 MBytes 769 Mbits/sec [ 5] 4.00-5.00 sec 90.8 MBytes 762 Mbits/sec [ 5] 5.00-6.00 sec 91.3 MBytes 766 Mbits/sec [ 5] 6.00-7.00 sec 91.5 MBytes 768 Mbits/sec [ 5] 7.00-8.00 sec 93.9 MBytes 788 Mbits/sec [ 5] 8.00-9.00 sec 93.8 MBytes 787 Mbits/sec [ 5] 9.00-10.00 sec 93.3 MBytes 783 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.01 sec 932 MBytes 782 Mbits/sec 0 sender [ 5] 0.00-10.00 sec 932 MBytes 782 Mbits/sec receiver After reverting: $ iperf3 -c 192.168.2.1 -R Connecting to host 192.168.2.1, port 5201 Reverse mode, remote host 192.168.2.1 is sending [ 5] local 192.168.2.2 port 57204 connected to 192.168.2.1 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 92.7 MBytes 778 Mbits/sec [ 5] 1.00-2.00 sec 94.0 MBytes 788 Mbits/sec [ 5] 2.00-3.00 sec 93.4 MBytes 783 Mbits/sec [ 5] 3.00-4.00 sec 92.0 MBytes 772 Mbits/sec [ 5] 4.00-5.00 sec 92.0 MBytes 772 Mbits/sec [ 5] 5.00-6.00 sec 92.8 MBytes 779 Mbits/sec [ 5] 6.00-7.00 sec 92.4 MBytes 775 Mbits/sec [ 5] 7.00-8.00 sec 92.1 MBytes 773 Mbits/sec [ 5] 8.00-9.00 sec 92.7 MBytes 777 Mbits/sec [ 5] 9.00-10.00 sec 94.3 MBytes 791 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 929 MBytes 779 Mbits/sec 0 sender [ 5] 0.00-10.00 sec 928 MBytes 779 Mbits/sec receiver Arınç