Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp557625rdb; Thu, 15 Feb 2024 08:12:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5VpOUIuCMHgigRtfDR9lIT8n1cMHSRrNihOm+QMJxn3sh7XW6vpY0YzJAQM9hl/gFMM4OPQ//BVvbxcJRLrTBTRisH/OjYrtUh8vwFg== X-Google-Smtp-Source: AGHT+IG6NerX72YBaSxVsyO9AMLC/tf41v3y/Z5x4oxODMqZYA51VnBqc4pYE6AXL/ihwig5XlIL X-Received: by 2002:a17:906:3b9b:b0:a3b:e8b8:1640 with SMTP id u27-20020a1709063b9b00b00a3be8b81640mr2006270ejf.66.1708013540396; Thu, 15 Feb 2024 08:12:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708013540; cv=pass; d=google.com; s=arc-20160816; b=RGGrzG8EhX8s9/3qLCnhgYclxJFOYZzcP5QJYdYIA2Y/VPvaSl2uJqKq1cb+9eqdEH 4yjaiOzfDA8S/qHptld1yUdsjlnEvSn1PLS9fEZzzOve/iKBEkspZTougb0DwXBJpwlo 8VfRdu/PPWZrSID6LODU89gZ+D7jg4U/xiiauJpT64eQwpyhpEIrxmbtGHqvT7WFUUtG HEvqMV/PWBsKaHG3g2UHcvJzFgj+LBZ+DCdPmyntxyx8muag9VinDQt/T2j4bdjiMEgu wTLG0qNEDQcoyIKcUXzOaSbSQMwpZgXGdY772fTr6IEx2eFgfWyWo9l02xGAFjm1+Agp dL7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=79NMCjGVQ8o/aukHv1MK2+ZjeVYKoQY4lIw9oAyTvMg=; fh=5H/u7nqcMO91aHXlOlGQqDF9VAdrDggBUlpJkzo5iXg=; b=d/7tGhu25CruQvX3Q0ztb0wlE05nreailzro8Wb6nnWoJ4R0Gx0iTB48EBgGjVRzVP Hj0QE8+vQmTLjr4+PUQ91yUREFdjWrsCTJfz3tieqXkrH+TlB0uETzaoFZt/KDb5eJTf f7j6Sf++dGyJKA5OHoi2Gogf3Ekfu0Ke+Oj3PyobRC1emI74v/PVCzRNoHU1eL5D4P+n 8+BVR4C29fdqhieZkeL1NnON5eLxXTgrTVKwAhaRd42zMPHWcukmUDwrXBnHfmI8PrT7 /y7DDscR3jK/65yaNenPJJ3ooPjeNymTHVKSVIQYG2x/2EBXjD2diHFvywo+4TYwobeD oWiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZKH5RhUQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r14-20020a170906364e00b00a3815923896si758914ejb.1027.2024.02.15.08.12.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:12:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZKH5RhUQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0CF7F1F2788F for ; Thu, 15 Feb 2024 16:04:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB53A13540A; Thu, 15 Feb 2024 16:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZKH5RhUQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D4A6D13540C; Thu, 15 Feb 2024 16:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708012989; cv=none; b=CqsnVpJHq+o08GHB+0CxFBfnC9UOt0bO3N4dJdlt/bxYRHxr+MVtTEgkyRjvStnU8jBqdu/Ij1k5kvmjFmXEkqFXuIl3Ir6EXXFvRJE5JOBaICcOWifCnGyNYXiyyF3WfGgYhNl8vLPYtYyz+GplTyK0jSo+h+HZ3vTkHXiLPcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708012989; c=relaxed/simple; bh=79NMCjGVQ8o/aukHv1MK2+ZjeVYKoQY4lIw9oAyTvMg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=phNrjlxUgFBEbRgZ6gs7QQbgBxuc5Y0kFduU58y7poNyuiP646Mb9g0b6wB7MP462gg+q1mN+swvHGvE4FZb4KzVxR9t876c4nPDJ86Y36RyQ+B+z0ZqRInMJ3dhXMRGPIpyYoT75GviA1Qv5yEhG+FGqtBUZNQlrd8S1RUzdqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZKH5RhUQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6816C433C7; Thu, 15 Feb 2024 16:03:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708012989; bh=79NMCjGVQ8o/aukHv1MK2+ZjeVYKoQY4lIw9oAyTvMg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZKH5RhUQF/Q6d9WZLTMiHfEC0TacKXYO7iX8CZBuwk2qpOCoxBSot0uZnzwRwf99M +YyF8y++prYvKdAan2n7lZOlBS9wtujOzDetCH+hUZJ+BOiJEquk9ZAEVnw4YFT9bc 6InmAbrad8Y5jEEr1domAQ7XhuP6bS6nKcAZXiDLC6dbW4KU58U+5nFxtf+oX5kkhM gqnm6juP57GFgF+r3yRr5iFkd5NqgCHQtJe+6DvHn33bfCXmol9OTzOO1IFiHjwdSF X/gs//RiYORqbWudA50WcBDv6p/cmlKpeYSAb2z1HE3wK0jEDnUzOc51HzeuDkKxge NygetD2Jg0Agg== Date: Thu, 15 Feb 2024 08:03:07 -0800 From: Jakub Kicinski To: Paul Barker Cc: Sergey Shtylyov , "David S . Miller" , Eric Dumazet , Paolo Abeni , Yoshihiro Shimoda , Wolfram Sang , Nikita Yushchenko , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Claudiu Beznea , Lad Prabhakar , Biju Das , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v3] net: ravb: Count packets instead of descriptors in GbEth RX path Message-ID: <20240215080307.226732cf@kernel.org> In-Reply-To: <20240214151204.2976-1-paul.barker.ct@bp.renesas.com> References: <20240214151204.2976-1-paul.barker.ct@bp.renesas.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-Transfer-Encoding: 7bit On Wed, 14 Feb 2024 15:12:04 +0000 Paul Barker wrote: > The units of "work done" in the RX path should be packets instead of > descriptors, as large packets can be spread over multiple descriptors. FWIW one of y'all may also want to look into processing Tx completions before Rx. Tx completions can free memory which Rx can then consume. More efficient. Not to mention netconsole being able to reap Tx with budget of 0.