Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp438869lqs; Thu, 13 Jun 2024 14:58:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEDI6XN0PW28k5V+MHnoqUJNCzYooK5fur0ZJzi0bmCCzYHWmT057acgvofwbs9GN0tk3yKhImR0roMiVueqFG1EkUT5seGJO8cVMOwA== X-Google-Smtp-Source: AGHT+IEerx9c66whwFO0VE4OJ/nq56Kq5a/mBNSBbLT/i0VJQBeTQuaxCu/Ts79e97lViX1DQSjH X-Received: by 2002:a05:620a:3951:b0:795:4948:328f with SMTP id af79cd13be357-798d26a8830mr74232485a.70.1718315924816; Thu, 13 Jun 2024 14:58:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718315924; cv=pass; d=google.com; s=arc-20160816; b=BEJ3qORDvh74/D72ESlyNMTl2g83399GPt7rQwaKdiDWLslqhT4BYQZiPX6ZEwEqh3 lU02yCr9TYshkoF90GVoFhtDRFT/hGpmkLyRJ6Ds6VFMaq0RllpWUpDDXLZvFRElFLwL o6QfOf1cayvz1jvwzM/0OTJvApK3f+Kt2YgQakv6YxOScJIQnQ08BWS/Q74XlwCSqvXs 1P3igdCbbdvFc91MvUxZt0/fsDyph/M4hrdh5f+wGod8hsjfZmiHnw6JBGpXTODgb1yw WWiM7NqGyqqUqHCGrJ/oC91YjgcjNpPWzqbIEUkh9nMFlgRgpCJfByN1SDHOBirkZ65W DA0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=AZWGT6RpOpo7Y9uMWgcrIx2Lte/eojMWUYsytA507Uk=; fh=/rpZXDindIwHeFJeLr+G4FTrMYxVvnSgWF19Jy0M4Ss=; b=AVbilWMSyWSoVoStc950JB169jpGRDanR6IXxfemotiSl0ZsJaWWSaHA/X9hn3ewj7 1qSFaxcaJwVQHJLHIb4VIfhHBQf0honLHxB3qky600WWzHhiXKikijOIbT6Ey8YH4Irf vgBDPl1wB3PzFactA7StQZpzl9q1ildArA3nWBeGCpIC48ygyy7fUC5Yv7Il2NCbiowB /SpzgF59ATUUuXuVyqnyQ43VMZdBfraCYpZ+lAcEM4XR6+MpnM0P3LxTRpdALC2/Lm+8 xcuqofVpXC1kwRu/8ZWdruzWijBoH4pwCgd5z1HPeKuMJrFPZoAgnw/k0fxN6Jl5qI3z ykhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gihTkSdK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798abd1d1e2si258220185a.395.2024.06.13.14.58.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 14:58:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214044-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=@kernel.org header.s=k20201202 header.b=gihTkSdK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 EB7B11C22126 for ; Thu, 13 Jun 2024 21:58:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5162C14B950; Thu, 13 Jun 2024 21:58:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gihTkSdK" 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 6DE781474B6; Thu, 13 Jun 2024 21:58:19 +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=1718315899; cv=none; b=GZSV78+vNw9tu+lB0jL2RS44ELwHwG1va5Jq9ocsFhFjO+TTdmHGyYT1fi3yAAidH0/ISVxFzUCKM9l0EOfs6B8g8hGBLP2jKAkQzZM/DGs3OD464ZtJEP3nAuhL97mnAs5JNT5BXyOG/j35q2G99cuESPIaBTPbY2G/7J7/tEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718315899; c=relaxed/simple; bh=gX3Qzc7qT51hYwbuXBEZnmR3vbNuIwDFQYQsZnxs00k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=H5iSnkSzMr3Zr/KR1YV10SVD6CGGytWATqfyVV5/NcLbaWMqC/z1vGyPjOcmiLdB4PgZhT9nV9aqKpRV/ixz8eYW4gm/qNv0lG/BKz0zatBPiHhpVW2WFbeRrYdhfTvyeQ/aX+0zYcVP0ljPJBecoVk8Shn3J4/fXngOHpomkNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gihTkSdK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F619C2BBFC; Thu, 13 Jun 2024 21:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718315898; bh=gX3Qzc7qT51hYwbuXBEZnmR3vbNuIwDFQYQsZnxs00k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gihTkSdKbRHOhA7iJjrx1hoE3uB/rL+9upVLH4QeT8DbgRHvv39cK7FCq7T+RnoLR QmkiWFC37RE4qFjAFwoxWArxEuqWdVjPCfqMnUsL9M7Uq/ebrSaHduXHzhFxX9n6J8 WemTAW4/UXJ9vo7IGRpJKyCUb4JR+331WIjOqYWHIUHAAR5Zja8yE7dJI0Uo+FwW8c sHBKoxrrkJVtauzKa7hZXtLxsVQwspMyVWSroeNjjEy51yh/oB1mMYedJDHXLJu9K/ 8tlmWPe4oR4caiX6cghPmCPAnZ2t4i3E8LVBaPTW9jDEz95CxbmQKr9S4iTVjMEXf2 q+mXL9crwqEfg== Date: Thu, 13 Jun 2024 14:58:17 -0700 From: Jakub Kicinski To: Tariq Toukan Cc: Joe Damato , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, nalramli@fastly.com, Saeed Mahameed , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Paolo Abeni , Richard Cochran , "open list:MELLANOX MLX5 core VPI driver" , Tariq Toukan Subject: Re: [net-next v5 2/2] net/mlx5e: Add per queue netdev-genl stats Message-ID: <20240613145817.32992753@kernel.org> In-Reply-To: <0a38f58a-2b1e-4d78-90e1-eb8539f65306@gmail.com> References: <20240612200900.246492-1-jdamato@fastly.com> <20240612200900.246492-3-jdamato@fastly.com> <0a38f58a-2b1e-4d78-90e1-eb8539f65306@gmail.com> 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-Transfer-Encoding: 7bit On Thu, 13 Jun 2024 23:25:12 +0300 Tariq Toukan wrote: > > + for (i = priv->channels.params.num_channels; i < priv->stats_nch; i++) { > > IIUC, per the current kernel implementation, the lower parts won't be > completed in a loop over [0..real_num_rx_queues-1], as that loop is > conditional, happening only if the queues are active. Could you rephrase this? Is priv->channels.params.num_channels non-zero also when device is closed? I'm just guessing from the code, TBH, I can't parse your reply :( > I would like the kernel to drop that condition, and stop forcing the > device driver to conditionally include this part in the base. > > Otherwise, the lower parts need to be added here. You'd need a stronger (and clearly explained) argument to change the core. If you're saying that the kernel should be able to dump queue stats for disabled queues - that seems rather questionable.