Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3667560pxb; Mon, 24 Jan 2022 14:54:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUwL+y8MFQ5OOpqtGMUHFNKw9TTnEE47wvOEAI3rGI3L0HbtzT6nNu5NQtQRTshaiTKzw2 X-Received: by 2002:a63:2362:: with SMTP id u34mr13284153pgm.441.1643064845412; Mon, 24 Jan 2022 14:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064845; cv=none; d=google.com; s=arc-20160816; b=aS/9G39rievscHVy11DXyYVVmjVSk0YPzTBu8TkAAURJVWjN2ptrXMAnKdo1CfuiEC 7WxB37lttVY/MUerOe1wndQHgaXEe8D4FJNqMZfGOtaB6cUgIO4Yvyopkg1ko+QWieBL ryC5U7gDTfgMXdMX8UWPagoK6xEHsTMJMEId9q7y7GNuQKzjce2FAMXIjFF+GlTdwM9n /PYvsausoVoOZcdFPGMbxPAsctAXMPiRLvHJdHqq7+pP3zxVvEEXlTutY+hagxFLlrXO nKtfr11IzCMKwMTYGKAVCokiIpSRQ5V0sKayuv6qYF4E0fccVZqSrsDtoBWrSixtEkrb K1HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7mLJWsDBqVs64o4/z+4K97SGWpg4CXbKx35WpHPg5U8=; b=MDdDinGxoPZRT49keONJsiUXSVtZx/VE4EQN2O1lacjGtjQFK3wqbGA3VhUszlUT7F H42ttiluv9xxyT0L8bpeoKCOjTFGFo/SbDGVnDPT3NTMRbZ0fHrurqjDD5Pzx413UIak /oUCT/lvq6n05p7X3CLXML/FI8rcWI1cSIDyaquPnw3XOHNLfn4DhR+uOJQQ0kt8ElVV UVnBAoEb6R1u313eo855RQjOipJg2iKKBG+tXUGoXd0EV1zebo+MC7zjlvniVP+6ovMw WbCWQShYNW8Hqeykbnb3GAommKU8788l5sCnLZhOyY23LOfdvbGSfxd9gKvq6SjOdZjz kfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fHU4htTi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si13871307pls.500.2022.01.24.14.53.52; Mon, 24 Jan 2022 14:54:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fHU4htTi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1839248AbiAXWuN (ORCPT + 99 others); Mon, 24 Jan 2022 17:50:13 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52656 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572973AbiAXVmy (ORCPT ); Mon, 24 Jan 2022 16:42:54 -0500 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 CDED1B81142; Mon, 24 Jan 2022 21:42:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09DD3C340E4; Mon, 24 Jan 2022 21:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060571; bh=GQv7LOP06zbfKaH6OrGhewLZ8+JM8W6ZxwkO/Q4Zfm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fHU4htTiDmgIeuBeGBTeCJUnZEClcA7xJTWYzSL0nIMF06O4LWGk1KjoPi7c8dD1a vHKVconUHZPWUhJc8qmOvPU809TSArwunqwRu+MSw+Zn+HPpOzkbn38D+v+/WubXE+ dpSLg6By+2qcbuyv3eLF67+qch1dVc5ZoT4azasI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Hancock , "David S. Miller" Subject: [PATCH 5.16 0975/1039] net: axienet: increase default TX ring size to 128 Date: Mon, 24 Jan 2022 19:46:04 +0100 Message-Id: <20220124184158.065796695@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robert Hancock commit 2d19c3fd80178160dd505ccd7fed1643831227a5 upstream. With previous changes to make the driver handle the TX ring size more correctly, the default TX ring size of 64 appears to significantly bottleneck TX performance to around 600 Mbps on a 1 Gbps link on ZynqMP. Increasing this to 128 seems to bring performance up to near line rate and shouldn't cause excess bufferbloat (this driver doesn't yet support modern byte-based queue management). Fixes: 8a3b7a252dca9 ("drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver") Signed-off-by: Robert Hancock Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -41,7 +41,7 @@ #include "xilinx_axienet.h" /* Descriptors defines for Tx and Rx DMA */ -#define TX_BD_NUM_DEFAULT 64 +#define TX_BD_NUM_DEFAULT 128 #define RX_BD_NUM_DEFAULT 1024 #define TX_BD_NUM_MIN (MAX_SKB_FRAGS + 1) #define TX_BD_NUM_MAX 4096