From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49E2D1388 for ; Mon, 29 May 2023 08:08:52 +0000 (UTC) Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17AF9AD; Mon, 29 May 2023 01:08:49 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.00,200,1681138800"; d="scan'208";a="164772888" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 29 May 2023 17:08:49 +0900 Received: from localhost.localdomain (unknown [10.166.15.32]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 6771D400C743; Mon, 29 May 2023 17:08:49 +0900 (JST) From: Yoshihiro Shimoda To: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH net-next 0/5] net: renesas: rswitch: Improve performance of TX Date: Mon, 29 May 2023 17:08:35 +0900 Message-Id: <20230529080840.1156458-1-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net This patch series is based on next-20230525. This patch series can improve performance of TX in a specific condition. The previous code used "global rate limiter" feature so that this is possible to cause performance down if we use multiple ports at the same time. To resolve this issue, use "per-queue rate limiter" feature instead. To use the feature, we need to refactor the rswitch driver, especially got the internal bus clock rate and calculate the value for the feature. Yoshihiro Shimoda (5): dt-bindings: net: r8a779f0-ether-switch: Add ACLK net: renesas: rswitch: Rename GWCA related definitions net: renesas: rswitch: Alloc all 128 queues net: renesas: rswitch: Use AXI_TLIM_N queues if a TX queue net: renesas: rswitch: Use per-queue rate limiter .../net/renesas,r8a779f0-ether-switch.yaml | 10 ++- drivers/net/ethernet/renesas/rswitch.c | 86 ++++++++++++------- drivers/net/ethernet/renesas/rswitch.h | 30 +++++-- 3 files changed, 82 insertions(+), 44 deletions(-) -- 2.25.1