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 7D8D3C433F5 for ; Thu, 5 May 2022 02:20:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238493AbiEECYM (ORCPT ); Wed, 4 May 2022 22:24:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238455AbiEECYL (ORCPT ); Wed, 4 May 2022 22:24:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C8AF49C8B for ; Wed, 4 May 2022 19:20:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EB4B5B82A9E for ; Thu, 5 May 2022 02:20:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 240E2C385A5; Thu, 5 May 2022 02:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651717230; bh=4JuRqwNQ9hwhUqTttT0gUicftS+I9uLmhezFx58s+fo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kB5vwBUbJlggf+csLOoIg92Angr/zA4Hb3vNbjMioqtV2/uR879da47d+Y38esAW/ J2kheQFTNgQivKUXK5NOZLhoXhGhegDwzAMYan/e3AuD1XDwPnUYKuOeIhGbMIJDiq pNuuNuRuOMBbPjbixs8f2Hw5oqOEsral2Jgq2UNgMeBOkypxbHwS2WIVEr3qMwoLc5 YnG8p7ADHMxGUVFaiCB7MO7A41BNfTfpZb3wrIfF3pUvl3T0kKxkiE7tiWnmCLtmGg TCykz182vzT96MPv0CosQYBR5gMSM16Q3LdY+lGr9E9y7thhRQ6QCYtJmKWm1W0keO 3WWttwF7xND9Q== Date: Wed, 4 May 2022 19:20:28 -0700 From: Jakub Kicinski To: Radhey Shyam Pandey , Robert Hancock Cc: "netdev@vger.kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , Michal Simek , "linux-arm-kernel@lists.infradead.org" , Harini Katakam Subject: Re: [PATCH net-next] net: axienet: Use NAPI for TX completion path Message-ID: <20220504192028.2f7d10fb@kernel.org> In-Reply-To: References: <20220429222835.3641895-1-robert.hancock@calian.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 2 May 2022 19:30:51 +0000 Radhey Shyam Pandey wrote: > > This driver was using the TX IRQ handler to perform all TX completion > > tasks. Under heavy TX network load, this can cause significant irqs-off > > latencies (found to be in the hundreds of microseconds using ftrace). > > This can cause other issues, such as overrunning serial UART FIFOs when > > using high baud rates with limited UART FIFO sizes. > > > > Switch to using the NAPI poll handler to perform the TX completion work > > to get this out of hard IRQ context and avoid the IRQ latency impact. > > Thanks for the patch. I assume for simulating heavy network load we > are using netperf/iperf. Do we have some details on the benchmark > before and after adding TX NAPI? I want to see the impact on > throughput. Seems like a reasonable ask, let's get the patch reposted with the numbers in the commit message.