Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp136071lqh; Thu, 30 May 2024 17:15:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVi6NvKPMYb3TMkWIs51x/Mfwq7kb7zg6kF2kDKgQFMQ4lsldZFKly67Y0KX0Cc/DAGiRIhvJ3+pSJVNOgWKK5BkhxPk8x4vW2qPHWYew== X-Google-Smtp-Source: AGHT+IEp2npmDZ/85KR9U5ZIm4pfv3K38nTnCcwNDdnrqzoMAidAJcejFOfVmTzQ6D8l4EuRRNl0 X-Received: by 2002:ac8:5749:0:b0:43f:e7c7:a4d9 with SMTP id d75a77b69052e-43ff54dae7fmr3284951cf.53.1717114541311; Thu, 30 May 2024 17:15:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717114541; cv=pass; d=google.com; s=arc-20160816; b=k7tx4xpWgofcxFPgR1ZH1R46Qie/4GnmUHJKS4DGyz0DDn64QDcuLpui6N4Fbf6eHf HIy1WwayiMUHS4GNoR9oP/+180TLSviexaOiKJObwW5Mt3B35y0uNQwXNxN9JVmn16Vf JqwEFt8g1KSgCLqFDG+GKdXLXVbhcOnJVCc4uR53AaB7aQs7SkZvUAH7orllwh1dHH4z czziKPiBrnhcQW2V5MT4zMC+AGVOgGEysyW37IOPxAAgTtkuvOy8IZKNSMBFXIc1TJvm SfVD9d9a7mLKAGeta34eZ57+i9J+pL/C4vpLjS+kuzuAgDraypFPQhWBtyLwvah6apWE JvLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=ly6Hg6fq3SFJdw/SABaUUxx1i9TM3ssbdYm2uvWA8wY=; fh=3s3xix+xQNQDVLWAyrni3x0mOpc638hKMZTL1UM7pbA=; b=ezPK7RINJkTaaWqhlzbPodvBIZcU8JYEMlkApjGu+YJWjkeHJZA3OAR/RRQLLdB+NB 8wkt4pwymZz8xqfHOnuKP1LgX1OVTW5+f+At9b+Y2ATRH0fQYPqjAAWO6Rw23Uw0pdjV mq1BpTkwzuxd6KpIgih7a/t7Ytux1dWMmrKjXpKxVPf9vVXRQWN63AQSpTphwwXzLMIs pWJE5rL1bO9EUEJgtENWreJVdAmAcmVBCK6UiK0zpu8XCvr5rM7I4/qfma+LMi5A1ozV YU/fM71eIMYkefcGrNBfSlJbQ6ddyL+EDtmjjx2ihP8y3t36RljkCn+CEzUlWYZTIWkA 0LAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=V9sq7c6a; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-196067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff23ac0b1si8564541cf.87.2024.05.30.17.15.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 17:15:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=V9sq7c6a; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-196067-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0C1471C23BC5 for ; Fri, 31 May 2024 00:15:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25B744C79; Fri, 31 May 2024 00:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="V9sq7c6a" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04B78A2D for ; Fri, 31 May 2024 00:15:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717114530; cv=none; b=twGlQ6xxTSJcpz6+vtMIHSIH68YQDBmXQy0wuqDjxl7gkDpoVYOmxE4Onrbn4bdVrpq6z6sM+MuqHMZ2dE/bEFTX0fODR8GrUC7DGa5FPwySL8mlvNtGCLVkQBmVFfVgLqJNyFJGSDatMNmxNqqSa36XdcLEHSzD476FhV6odBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717114530; c=relaxed/simple; bh=7nKP05IzWghTs+/Gw47J0KfC5h+/qykfWVcjDmjOfu8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NlHXMGy2JaLlBi4TQe77XO0xTC2FrHFXv0qfNNXBbWGgbDLZ3SW6Z8+RBGGZBBcaPlULzO0LAeqnILM1SsYgg3Za1mhLdEK/8vojkfUDPkDD5XnZB3AVeg8g3SXigMLRv9E+IUhMSYiIZe0h3PvqHUnlAlyxLtH6h3DITdgnxjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com; spf=pass smtp.mailfrom=fastly.com; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b=V9sq7c6a; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastly.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-702342c60dfso743842b3a.2 for ; Thu, 30 May 2024 17:15:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1717114528; x=1717719328; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=ly6Hg6fq3SFJdw/SABaUUxx1i9TM3ssbdYm2uvWA8wY=; b=V9sq7c6aAJFu0FRUa9ZGFMt/wWFYjH4y19K+ZzI9Megkm+kTIt2rpje98pCQSkgHIt ZwnAxDJVpkUPyAIYxANwgtj2az6hcokddH8XJwEZya0SbdYUJsnnEc2Qg24SciAysxBe 9o+dY0jV5IWXg427KI3l5I54hvi9HpPTIGmPI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717114528; x=1717719328; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ly6Hg6fq3SFJdw/SABaUUxx1i9TM3ssbdYm2uvWA8wY=; b=isUg3FJ1Hf3hArIZYX8AmRYFoy+lm/FVW7wL8mCLwUua7lfNrrwcDh32Ekch2pT7/y zOGQCwnlY2ghId+0kZG6x9XwBJStagf4SN10RkbhEjKdsUw88OhfhCsaK9ZXQ6rLLA0s GK250FYWQZRVd3S5Qq0udcL8wC33gJAz9vFH2V+cJBbxwLkZa9G4VeVEAnf8l9Lct4BI 91Dp1+uXXAtjA8jTEee3xnmEI2S2TeujTddpVz8H3+grjw6xpBjJG9wUJFX5hKLA5GV+ MXDI/QxL0ohNcZ6/qcbnK9CnnJwnpWCgjvAK4SLnpeaHyr3P/fs4PAFPiKJ1kNtyMRm4 tzzA== X-Gm-Message-State: AOJu0Ywos9fh1mtG7W1mISDdZIM2r1GyfF7zA6pTwSJtJMyawz/AtBDx OM2ZlvU4JPYPcW8k9cwlwXPcYT9EApcqGhqVnmsV+nII2Psf0xB9qwIEI5t6QvU= X-Received: by 2002:a05:6a20:748a:b0:1b0:2826:9e2 with SMTP id adf61e73a8af0-1b26f16e5a1mr699040637.31.1717114528237; Thu, 30 May 2024 17:15:28 -0700 (PDT) Received: from LQ3V64L9R2 (c-24-6-151-244.hsd1.ca.comcast.net. [24.6.151.244]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70242b0554csm308321b3a.170.2024.05.30.17.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 17:15:27 -0700 (PDT) Date: Thu, 30 May 2024 17:15:25 -0700 From: Joe Damato To: Jakub Kicinski Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, nalramli@fastly.com, "David S. Miller" , Eric Dumazet , Leon Romanovsky , "open list:MELLANOX MLX5 core VPI driver" , Paolo Abeni , Richard Cochran , Saeed Mahameed , Tariq Toukan Subject: Re: [RFC net-next v3 0/2] mlx5: Add netdev-genl queue stats Message-ID: Mail-Followup-To: Joe Damato , Jakub Kicinski , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, nalramli@fastly.com, "David S. Miller" , Eric Dumazet , Leon Romanovsky , "open list:MELLANOX MLX5 core VPI driver" , Paolo Abeni , Richard Cochran , Saeed Mahameed , Tariq Toukan References: <20240529031628.324117-1-jdamato@fastly.com> <20240530171128.35bd0ee2@kernel.org> 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-Disposition: inline In-Reply-To: <20240530171128.35bd0ee2@kernel.org> On Thu, May 30, 2024 at 05:11:28PM -0700, Jakub Kicinski wrote: > On Wed, 29 May 2024 03:16:25 +0000 Joe Damato wrote: > > Worth noting that Tariq suggested I also export HTB/QOS stats in > > mlx5e_get_base_stats. > > Why to base, and not report them as queue stats? > > Judging by mlx5e_update_tx_netdev_queues() calls sprinkled in > ../mlx5/core/en/htb.c it seems that the driver will update the > real_num_tx_queues accordingly. And from mlx5e_qid_from_qos() > it seems like the inverse calculation is: > > i - (chs->params.num_channels + is_ptp)*mlx5e_get_dcb_num_tc(&chs->params) > > But really, isn't it enough to use priv->txq2sq[i] for the active > queues, and not active ones you've already covered? This is what I proposed in the thread for the v2, but Tariq suggested a different approach he liked more, please see this message for more details: https://lore.kernel.org/netdev/68225941-f3c3-4335-8f3d-edee43f59033@gmail.com/ I attempted to implement option 1 as he described in his message. > > I am open to doing this, but I think if I were to do that, HTB/QOS queue > > stats should also be exported by rtnl so that the script above will > > continue to show that the output is correct. > > > > I'd like to propose: adding HTB/QOS to both rtnl *and* the netdev-genl > > code together at the same time, but a later time, separate from this > > change. > > Hm, are HTB queues really not counted in rtnl? That'd be pretty wrong. As far as I can tell (and I could be wrong) I didn't see them included in the rtnl stats, but I'll take another look now.