Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1333532lqa; Mon, 29 Apr 2024 05:56:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3BgHas9mzbCFJeCElKtvneP1uhPWO1Ecfh4g2XKPxUG0LBvZKTpO3/2+BFVNIsMTQiXk2rFWbKoG78XYkCL1GXjzP7QSvZSJXt3hcFQ== X-Google-Smtp-Source: AGHT+IHVVLX9GQhJJ8OpVg7raIE405/0ztsIrbC0Fxz2P1M5Cqu+EWlxgrJ1mTp/gQJyLMsYv/uV X-Received: by 2002:ac2:5dce:0:b0:516:d3ba:5602 with SMTP id x14-20020ac25dce000000b00516d3ba5602mr5039193lfq.16.1714395415103; Mon, 29 Apr 2024 05:56:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714395415; cv=pass; d=google.com; s=arc-20160816; b=0EIgiNyqURFsxBqqSIPpj3B8Wp3vh62mj8/sOsCRB86hQTOx1uwPoNspAmgoSxntmv MMeLCofRqLAJVHOV2ybczoYmgu2SSNfNQh4TnKE+Rd78AG8+ptedLCAHEl0PTTlR4Lbb U9WGflBJ4Wlp2YmTN5w6YAL54qvjN9SFDy43D2kAeRaxExUNxcjDwq96A9ZATQlTZR5s DdqY4iGBkWdNicJC2eCdSBcBRcwgnvoqo+ROBLdptrQ+Cha+tLBPvnp0//QBdlEmjF6S GNuTgIE9e2faXQR++gdG6Jm+WUUxyXSPgJV+HsLS5u7tWeaJqpSQ/W2JcIjU7TLD3gu+ oh9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KWQYXuDuosAhIoS7yaKxvAY/333rDoKrL+wGRGUy7tE=; fh=8RWZCsFcFW7tfRyjnxchvkKLz+fqJXf4t60QAFPbaoQ=; b=09Mnpp4FGuESplcFHxJWCRpb6GkLDpZwYQU9A+t+i/2YXRoagmaZ7QKi3McY3MGEZW qns/uMa0Rfw+u6qO+lTeWhwMNY0m6so0KknfkE9zdjOc0v8oD3GAhtKGRLVhpoH6ewiO AsgwvDqSDd028ASqWGuzbdCsYP9ihzP4C/S03Z6sf+TdnreRjxI/JSERWdtav1vTnjb5 7U1ofr4+pMb/CgOpneoMR8cXQPB6CEq8ejnp2ZCGAFN/daYnk206eO6CF6bUKvM1tp9u W8NrYC+Ahb2xDYD5LXc8SBTuEHxI7ErPbB2E34x7rE1dZK6QSqH0Y9KPMufkvw4TzPpF K5PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="gaM/NZtx"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-162280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h9-20020aa7c609000000b005727c009f69si1926696edq.535.2024.04.29.05.56.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:56:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="gaM/NZtx"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-162280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D195D1F268FF for ; Mon, 29 Apr 2024 12:50:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 723CB54746; Mon, 29 Apr 2024 12:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="gaM/NZtx" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 1175210971; Mon, 29 Apr 2024 12:50:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714395012; cv=none; b=Pi1Dd9DHXxyPjTuTzyjF1R4+S20zQ38oSljcbtvEXpoOMNiLQHCauAK8GXv2U4ns8TUnt9dilnnWlVpoybmYt7DKbM1gKZyUo1TnnZDT4WdV0ZPOhFDvSS5sJTxF6ABMTgDepuAlMwCRYaUwr3Os4IPBup1tO/wyzqDtljw5Syg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714395012; c=relaxed/simple; bh=3bCfWRhZDG5RMBFy4B87guz7rihAVZVJAV0wmeZj5N4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GK2t/OrTfyUjfSytyZcpRCBqdJiYDAS2kXhhyERXGxZ3ovHD1DByDq3fKvemGruu89ya41kOe8P8X9JRaLya+DZRr/5vJ15jM3ALtLuZ1M2pJt00QeOBWIkQmN9aC7RQ0xln4L8pLTv3CU8AcL63oXOj4e17wu1KRThAIYzT+iI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=gaM/NZtx; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=KWQYXuDuosAhIoS7yaKxvAY/333rDoKrL+wGRGUy7tE=; b=gaM/NZtxcxE+rJFwU11gku/dTr LZ1qKm3fD6gW+U5HfTyktM1YdR8KwfbWY0Cc8HvD78fW/0gCK/c3NhXjNME5VumgoTQetM8ANuHXp dp7zp+uGoEjqlSVtJ2+EoLcuPF3UPga7TVS+P2aeuk7FUnFp7uV/uq2kMxOLNG8BCs14=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s1QSG-00EFdQ-UJ; Mon, 29 Apr 2024 14:50:00 +0200 Date: Mon, 29 Apr 2024 14:50:00 +0200 From: Andrew Lunn To: MD Danish Anwar Cc: Dan Carpenter , Heiner Kallweit , Jan Kiszka , Diogo Ivo , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com, Vignesh Raghavendra , r-gunasekaran@ti.com, Roger Quadros Subject: Re: [PATCH net-next v2] net: ti: icssg_prueth: Add SW TX / RX Coalescing based on hrtimers Message-ID: References: <20240429071501.547680-1-danishanwar@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240429071501.547680-1-danishanwar@ti.com> On Mon, Apr 29, 2024 at 12:45:01PM +0530, MD Danish Anwar wrote: > Add SW IRQ coalescing based on hrtimers for RX and TX data path for ICSSG > driver, which can be enabled by ethtool commands: > > - RX coalescing > ethtool -C eth1 rx-usecs 50 > > - TX coalescing can be enabled per TX queue > > - by default enables coalesing for TX0 > ethtool -C eth1 tx-usecs 50 > - configure TX0 > ethtool -Q eth0 queue_mask 1 --coalesce tx-usecs 100 > - configure TX1 > ethtool -Q eth0 queue_mask 2 --coalesce tx-usecs 100 > - configure TX0 and TX1 > ethtool -Q eth0 queue_mask 3 --coalesce tx-usecs 100 --coalesce > tx-usecs 100 > > Minimum value for both rx-usecs and tx-usecs is 20us. > > Compared to gro_flush_timeout and napi_defer_hard_irqs this patch allows > to enable IRQ coalescing for RX path separately. > > Benchmarking numbers: > =============================================================== > | Method | Tput_TX | CPU_TX | Tput_RX | CPU_RX | > | ============================================================== > | Default Driver 943 Mbps 31% 517 Mbps 38% | > | IRQ Coalescing (Patch) 943 Mbps 28% 518 Mbps 25% | > =============================================================== > > Signed-off-by: MD Danish Anwar Reviewed-by: Andrew Lunn Andrew