Message ID | 20231113110708.137379-3-rogerq@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1127345vqg; Mon, 13 Nov 2023 03:07:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9Xq76tM+yzFRjwkjuQpM4fcEedMVmAEShZlappHzDjqJjdG01FjcXepE0Dh9R6P6ZZVMi X-Received: by 2002:a05:6a20:7faa:b0:184:26d8:cf5c with SMTP id d42-20020a056a207faa00b0018426d8cf5cmr5000833pzj.0.1699873675319; Mon, 13 Nov 2023 03:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699873675; cv=none; d=google.com; s=arc-20160816; b=k3L5MOVQzst+agmlNrjaNlmAUy9Fd/enDZFw1ILiVcB1Pdtvnv5Y8Sn8EZl/0c5tVP gCdatOSyE3CVspEgfLaXm6Kzzg5E+qwpe1BLLzrRriJ8q27kO78L24+Mqh1pvfyaquFK KAFOB5/NJeK8YTRO+a7DseH0FKjUgDERA/M7IqlSlhcudgjvSyY4cWF/wyv51Y05hTcU FQOOuA+E7bMJxGkfuFRAQJuqM6NGqjirQ/PQYqXYnREYjbPGx1VA2c2C6Fyaa1q2N1Hk EN5/vKG1DAek4sw1WaWGdD9ATy0oDJAr9KRXRk2Ax8Rgb5wMBOQWUX5+UXDZrlgjB02Y OH9w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3Ps+P2CUDkWffXDCpOeVdozOdSSYnGoThTFLBBxUZzo=; fh=5XVN7hYDrjkwKFw4bFXRK8oy6VkSo1QEqyD70rM4SXo=; b=zpnE5QC8M1NQfwzAKL9+wg1roGai4Nyh1jB2GHHsFFg1WnVImZqDx6bE9VTbLX0wdB zhSjij3wM6dU1+Vt6n+h9yMt9X2JJGmkAh2EIUVQNioRehR/BA3RwfFWY4xxkYGXA4t/ K4+i8b7T7YbIKzjiUA32uh45P95eREC8PZExq9T+wwUQhRo4UYLr/OS695qVt5VVW8Yw 7mrhVWtJsyD8d4xYJmUMCNGnj1m+uJXCGi4Vl1aS3Me20/iG52Dj9cziF/gWrxT8Q6Pt CnP+UcWufmuGAobs+FO1nrv2MWNDZf1k+5flldj+126Mm+/t7TfDf5bw8cNuDQdYVDJ2 Bp3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UcVyKSso; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bi6-20020a056a02024600b0056ad01ddc36si5532082pgb.509.2023.11.13.03.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:07:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UcVyKSso; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 117DB806381B; Mon, 13 Nov 2023 03:07:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbjKMLH2 (ORCPT <rfc822;heyuhang3455@gmail.com> + 29 others); Mon, 13 Nov 2023 06:07:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbjKMLH0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Nov 2023 06:07:26 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C0F010D7 for <linux-kernel@vger.kernel.org>; Mon, 13 Nov 2023 03:07:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58709C433C8; Mon, 13 Nov 2023 11:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699873643; bh=sHCRpYWlwN1++CWChUaVlOJq1vUhjh4oC5rKbeN65HU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UcVyKSsoOi4EGz1SVIaJoOdWkdYgJk+eGaUMj+OhwJibXvmBRYctyYYSwGm1ecXWS VeRffEN7ClWQZBmD1mfCZHzqS2wEHQGjHUh4FzGxxi9ebmRXRBVum/KCcwfjPb5AXe b7FyTWeVQXayqLvsOxk1e0p47dNGOIhislNZw8zZ8aeHULkHNw8U2BIhlFI4OLk/Wd wYAvUQ7x9YVvW59RgRmWdXhS2JwDBNRBvpPe8rKTcDxF60bDu+lUnVhaTKXt/JF1g7 iZICMGQcBk4OPfJFHborcOpAb0FG9cxWf85cDpI2HHS7S3TtNdF0AFPPaiArgG/s6b gEEb7QXjhK5xA== From: Roger Quadros <rogerq@kernel.org> To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: vladimir.oltean@nxp.com, s-vadapalli@ti.com, r-gunasekaran@ti.com, srk@ti.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros <rogerq@kernel.org> Subject: [PATCH net-next 2/3] net: ethernet: am65-cpsw: Set default TX channels to maximum Date: Mon, 13 Nov 2023 13:07:07 +0200 Message-Id: <20231113110708.137379-3-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231113110708.137379-1-rogerq@kernel.org> References: <20231113110708.137379-1-rogerq@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 13 Nov 2023 03:07:53 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782446739344632717 X-GMAIL-MSGID: 1782446739344632717 |
Series |
net: ethernet: am65-cpsw: Add ethtool standard MAC stats
|
|
Commit Message
Roger Quadros
Nov. 13, 2023, 11:07 a.m. UTC
am65-cpsw supports 8 TX hardware queues. Set this as default.
Signed-off-by: Roger Quadros <rogerq@kernel.org>
---
drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On Mon, Nov 13, 2023 at 01:07:07PM +0200, Roger Quadros wrote: > am65-cpsw supports 8 TX hardware queues. Set this as default. > > Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
On Mon, Nov 13, 2023 at 01:07:07PM +0200, Roger Quadros wrote:
> am65-cpsw supports 8 TX hardware queues. Set this as default.
Motivation? Drawbacks / reasons why this was not done from the beginning?
On 14/11/2023 14:13, Vladimir Oltean wrote: > On Mon, Nov 13, 2023 at 01:07:07PM +0200, Roger Quadros wrote: >> am65-cpsw supports 8 TX hardware queues. Set this as default. > > Motivation? Drawbacks / reasons why this was not done from the beginning? Motivation was to get the "kselftest -t net/forwarding:ethtool_mm.sh" test to work without requiring additional manual step of increasing the TX channels. Another issue is that all network interfaces (can be up to 4 on some devices) have to be brought down if TX channel count needs to change. I am not aware why this was not done from the beginning.
diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index ece9f8df98ae..7c440899c93c 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -136,6 +136,8 @@ NETIF_MSG_IFUP | NETIF_MSG_PROBE | NETIF_MSG_IFDOWN | \ NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR) +#define AM65_CPSW_DEFAULT_TX_CHNS 8 + static void am65_cpsw_port_set_sl_mac(struct am65_cpsw_port *slave, const u8 *dev_addr) { @@ -2897,7 +2899,7 @@ static int am65_cpsw_nuss_probe(struct platform_device *pdev) common->rx_flow_id_base = -1; init_completion(&common->tdown_complete); - common->tx_ch_num = 1; + common->tx_ch_num = AM65_CPSW_DEFAULT_TX_CHNS; common->pf_p0_rx_ptype_rrobin = false; common->default_vlan = 1;