From mboxrd@z Thu Jan 1 00:00:00 1970 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 290912110E; Tue, 27 May 2025 17:05:38 +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=1748365538; cv=none; b=YNs98Es7sWzMnKdeQsLGGmmAsgcGMXKa3/Jt44+RhSoa8gHyFLrtG+7zQK5zrL6aN8Qvp6gGxw2OYcUI1vudyBWEfw27hCrc0DmVoBaz8mO1bTIVCXfAgLUPDLe5bKSEdMTy8FYiZmK3SX53uFA9eLkF+4/PoVShdXJKHXJBuBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748365538; c=relaxed/simple; bh=/dRZgXPrxqtKNiDrq8ACVPpI4vd04MC3sHqAVtvowZw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UU94cgcl/jxZWhSzjh5/NJAMxvHM7ZKc/aHmFDoj3fZkrUiHQTULTEMlweBI9+yuQwxI1si9Cj6JTASO984wc4WXC4riPid0pEnpvujgOduutfK/V5pXcf9uf3dxtgkIgkozOPz1THSBKF/Vumo5U5D3RotprEDpe0/2m0CUCdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tr0vG6pD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Tr0vG6pD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F64C4CEE9; Tue, 27 May 2025 17:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748365538; bh=/dRZgXPrxqtKNiDrq8ACVPpI4vd04MC3sHqAVtvowZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tr0vG6pDVhncCvlLV6hP+rGG2Yr02DUMhE4IlzPnUeVDlfvfFRuQ1k5rTvnXgLaSS u0Xz5H+3SP9HIc4iikCCwC95MwdbSGXpC7AxlcZCjGHQoKhGmlUDm1O1OGzWz6Sbq3 33se9LIG84sllYRJ5srmc5tTzzZsLqn1PsqSZZXs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, William Tu , Daniel Jurgens , Tariq Toukan , Michal Swiatkowski , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 407/626] net/mlx5e: set the tx_queue_len for pfifo_fast Date: Tue, 27 May 2025 18:25:00 +0200 Message-ID: <20250527162501.550805865@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162445.028718347@linuxfoundation.org> References: <20250527162445.028718347@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: William Tu [ Upstream commit a38cc5706fb9f7dc4ee3a443f61de13ce1e410ed ] By default, the mq netdev creates a pfifo_fast qdisc. On a system with 16 core, the pfifo_fast with 3 bands consumes 16 * 3 * 8 (size of pointer) * 1024 (default tx queue len) = 393KB. The patch sets the tx qlen to representor default value, 128 (1< Reviewed-by: Daniel Jurgens Signed-off-by: Tariq Toukan Reviewed-by: Michal Swiatkowski Link: https://patch.msgid.link/20250209101716.112774-9-tariqt@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 0657d10765357..fd1f460b7be65 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -885,6 +885,8 @@ static void mlx5e_build_rep_netdev(struct net_device *netdev, netdev->ethtool_ops = &mlx5e_rep_ethtool_ops; netdev->watchdog_timeo = 15 * HZ; + if (mlx5_core_is_ecpf(mdev)) + netdev->tx_queue_len = 1 << MLX5E_REP_PARAMS_DEF_LOG_SQ_SIZE; #if IS_ENABLED(CONFIG_MLX5_CLS_ACT) netdev->hw_features |= NETIF_F_HW_TC; -- 2.39.5