Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp882397lqt; Fri, 19 Apr 2024 13:26:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUX5CAzWY1mvzlhM4dwzIWvFPayjNlNOPRThDXEqByFVS6t1vYVkfboEEVy0YlY30Zp9cJ+lm/Hwk+pXnkkaTWHHAn6wxOnGjRjgQMoPA== X-Google-Smtp-Source: AGHT+IHYi5kM+emrtGfuvqAnuj/6jMrX8Ao1++FSejuohBXwfw6ghUFt1br/yXaHmGWy+Vyy3dt0 X-Received: by 2002:a0c:e4d3:0:b0:6a0:4187:29a7 with SMTP id g19-20020a0ce4d3000000b006a0418729a7mr6549299qvm.7.1713558388678; Fri, 19 Apr 2024 13:26:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713558388; cv=pass; d=google.com; s=arc-20160816; b=MUoJt0s2Y10ESahS6qE4kw/EWuETUIjYWzE6q2V0nyJamptdZRgUpOTbl+Z61pZq+2 2opo9ltVYsR9GIFyVAQmf44+fiqIwt7RvFCsmnaKqs4MIP6zGDS+lfE0Ixx4P6QW9Px0 nlV5muwjX9+sCBWg+wuq9b4KUYYza03wN3dcSMqzLHOGLmpEvxVm8nMV7XdDTaN8LnmJ 9vbEz74KznCwHNx5FPQZBfRZKWVgVRoaYHnfpENuvuz8baUqCE5kn+FyKu6fSXfLizPp gew762VPo8ryUmd0zSWUloBegzTx2wm2rNZbjU5IisyP2HOK5SNjRqY0T3yXnfeceBqE RDnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=v4IIB/9rhCcSlA5GwFSP2SMVCR/0R3ycKVdslcpFk6w=; fh=Jv8DfSKHltb638CZ9UrBewHmJGrtwtGuOSL9RjntE2E=; b=d1vKzoPATu+x3acIuRxuzJdhwKI87m7Je1BulzTBBeFvGd12+PgiSdAno7qGv+i0YN oFmnBKgqohLqkcrV7od7a7quT5dNFpfZ/hgIezsOqkOmZumhbd9sZe3WnOhy45Bv9Jpq Se1+MP3lNQ+mSvmJd9VK4e0RCgo0bfX5akEWyP7QHHLFtl/zK/z0Wi1tCZ4MCv5raQd/ Q04zRTOyckDVbJ58ej7Q6yyPddOfPI0VCGV8dACxbinycUOh666ds7/sYVawf1b/7s1H NtcBY9fgo2uF6VrJZRpTGTCVu2SAX9nKP4NykkihgXMeGKgP74w/pz13HK4yITGnvMi5 nA7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-151934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151934-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gy5-20020a056214242500b0069b43edda1fsi4827591qvb.40.2024.04.19.13.26.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 13:26:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-151934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151934-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6A7B11C212CD for ; Fri, 19 Apr 2024 20:26:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EF6013CFB3; Fri, 19 Apr 2024 20:26:19 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BA6D137C5A; Fri, 19 Apr 2024 20:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713558378; cv=none; b=BMW+XNrO8oab4m/FmIoCTOQYbsIszj30hMaE3N7szEBhZ6NxnOZA2+jOSOf0maCTlYwpRDDOfrpeiexx1aRxGB23gWHZjjzNtrdRaB23NV5CcaxHw5KRYI0q7pv43+ZBWTGh6DGhf2SUtqwkI0ZSd64a+x9uWB/GWsENxCHYzXw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713558378; c=relaxed/simple; bh=tvsdpL1EtpDQPfPCU5AtidQHVL1qB+Gvt0nWGI4JnGY=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=eTvWySyF7h6AQiKyQjTZX/j4PXZTHk+yjhsHnIn9mDPBVSGEmol1VWSSh5j3LZcbB3C01stRWlqnPIVqbSwh2Zj9EvLRi98fpMbuoD2gFY0g3YwMRSnppxxOrsqyCGLHQsYsBGANLsMuWon4LNzsn+Hd2hjetXQiSbTKg+AERZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from [192.168.1.105] (178.176.73.253) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Fri, 19 Apr 2024 23:26:06 +0300 Subject: Re: [net-next RFC v3 5/7] net: ravb: Enable SW IRQ Coalescing for GbEth To: Paul Barker , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni CC: =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Geert Uytterhoeven , , , References: <20240415094804.8016-1-paul.barker.ct@bp.renesas.com> <20240415094804.8016-6-paul.barker.ct@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Fri, 19 Apr 2024 23:26:05 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240415094804.8016-6-paul.barker.ct@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.1.0, Database issued on: 04/19/2024 20:13:24 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 184817 [Apr 19 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.4 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 18 0.3.18 b9d6ada76958f07c6a68617a7ac8df800bc4166c X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.73.253 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.73.253 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/19/2024 20:17:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 4/19/2024 5:31:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 4/15/24 12:48 PM, Paul Barker wrote: > Software IRQ Coalescing is required to improve network stack performance > in the RZ/G2L SoC family and the RZ/G3S SoC, i.e. the SoCs which use the > GbEth IP. > > This patch gives the following improvements during testing with iperf3: > > * RZ/G2L: > * TCP RX: same bandwidth with -6% CPU load (76% -> 71%) > * UDP RX: same bandwidth with -10% CPU load (99% -> 89%) > > * RZ/G2UL: > * UDP RX: +4200% bandwidth (1.23Mbps -> 53Mbps) > > * RZ/G3S: > * UDP RX: +425% bandwidth (1.23Mbps -> 6.46Mbps) > > The improvement of UDP RX bandwidth for the single core SoCs (RZ/G2UL & > RZ/G3S) is particularly critical. > > Signed-off-by: Paul Barker Reviewed-by: Sergey Shtylyov [...] > diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/renesas/ravb.h > index 71de2a7aa27c..9c6392ade2f1 100644 > --- a/drivers/net/ethernet/renesas/ravb.h > +++ b/drivers/net/ethernet/renesas/ravb.h > @@ -1054,6 +1054,7 @@ struct ravb_hw_info { > u32 rx_max_desc_use; > u32 rx_desc_size; > unsigned aligned_tx: 1; > + unsigned needs_irq_coalesce:1; /* Needs software IRQ coalescing */ Perhaps something shorter, like coalesce_irqs? [...] MBR, Sergey