Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp445375lqs; Thu, 13 Jun 2024 15:12:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJlxmgulSGKkit2wPh5vBENwSMg61gCwhoUIawcODcOKSImzDeA5JmEyGpp4JhEOXVOCEqLAEIhJTRjf5g1o7vJ1wANJVshZsDiU37Ug== X-Google-Smtp-Source: AGHT+IHla5ukWpY2RIqnRHRUcFUdTZbbbiKdTDMOdw1NZ1lj6znEa+0OT67VtCusbpTsu7mFYixG X-Received: by 2002:a50:9308:0:b0:572:9962:7f0 with SMTP id 4fb4d7f45d1cf-57cbd8f293bmr622370a12.34.1718316740879; Thu, 13 Jun 2024 15:12:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718316740; cv=pass; d=google.com; s=arc-20160816; b=q5RW6jaSbTQYe4E7vrrwXuoM6b5IjYIlm/7Z7Fm22RlZpJr5sZop8bURekxaNYWUY5 iKsXc7pvd6wl/cgm5ZLS3D62kR4St23S6HebXUi5HWek9PA85DNHOhvu8OiGg2wLw9kT YHCwBlFp5OyJG9wlPHxJYGclU6o82b4tLcGa2ltT8vWX26gfwYXT2Wr9OXbF4B2IcYwO 0FWSsBBpg4VN1ehZ9qfzK3ypX0mczlyfBhy4OWsbdrwDSWFSBbyCv+qpgo9jjmQwUADC sBEQ8pIUm6ypN+et6281b0BMu7xY4uhH16+Tav6JEO3ucNp2uksTCGC5dvrblLVd4f4u jskQ== 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=T8aaukLJIwFlsN0imklBHYYukOSpHGK2753nAdx6l5c=; fh=ShaFoI4Kk7ryEoLM1HgeZFSgFIK/lToSgVlpdXvseZY=; b=B0VxUZ/Tn3WWQH7R06WhqLfZnfcU0sYYuwRKrShKMu2fJX0S7mC9rmI3LarGUfKJrg ZaafbX6+bFye8x8vz79CQwvozi18no2vT7veQLLW45aDnZwnGOjGNjAsW3HL0GzGGHaM jfakTS6XsTMN7idb/RYl0fgfoVavpeBjOKYNIpqLR80ZUriQpu8R0g4RIHBLTb4EXDFB PpSXZdifbVs+fixfZE6sR2Rh9XlFJOSQ/98PXy1uCkNhK9HHHMEbSAd7GWXivRGuze07 m7jTvJzHSvofuQ3zhjPfL6UeZeCZ0keByxQmtX8kc2Ko1sQ1r68WI3l9h1uatKKblJ/N 070w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=t1ItnqDt; 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-214051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb747925asi1080351a12.666.2024.06.13.15.12.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 15:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=t1ItnqDt; 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-214051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214051-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 951CB1F23A6D for ; Thu, 13 Jun 2024 22:12:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AE1C14BFBF; Thu, 13 Jun 2024 22:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="t1ItnqDt" Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) (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 EF256139597 for ; Thu, 13 Jun 2024 22:12:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718316726; cv=none; b=b8uZle87ouLmcE8Igw7Eqj4yAZ+lw60pNGDrH76YtZSiOfqgvxYUjFbmTYRWUcTpLlQrEEpXObzQhB6T7uwBPfuf/PTamFOwDIQyjNiXHBlbkM/cCLnLT6frJWe0NkkIWL+utS94A9uuL5yKpsRO9JBbPD1yPLhKcazcUoNaA9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718316726; c=relaxed/simple; bh=ZbeYYg9Yb+PWLgJcPoeqspm3fTvQiE0OL7WdGxjUaeM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QKciBr8i7I/AfAusG34QfJtgivmojJ9sqv2hFRpB07Ti3N7jaDx83ob1S5aGR1tSf8SSkTQ/bjU+eBGG37fLR6fAZyFo89IC8BYbLdeslw2QObD2Zd9TFf1/7ZMyPkO/MiMFXv3q92QO3SC18PKa4ZAQVvfj2U9LbsduJQJN9sY= 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=t1ItnqDt; arc=none smtp.client-ip=209.85.161.42 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-oo1-f42.google.com with SMTP id 006d021491bc7-5b970a97e8eso813829eaf.1 for ; Thu, 13 Jun 2024 15:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1718316724; x=1718921524; 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=T8aaukLJIwFlsN0imklBHYYukOSpHGK2753nAdx6l5c=; b=t1ItnqDtX3GKBE588Bh+j+YNqPMHtjKEkCJh9RHs118IRuc/5Co+Wse6+GylERj+4G BPkVUYX6C8MRFZoY6eRTjNgwecQYGzXJJ+OZKcI38yygOARQXLum+FEbRojDX1H2Be8z OPyOVFfKAx4jwcUyRn68hPvxhorqf9nmw/SuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718316724; x=1718921524; 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=T8aaukLJIwFlsN0imklBHYYukOSpHGK2753nAdx6l5c=; b=Riczh4GEJIQxRBP6vcB6m/eTI+x6a/J8v/3ZEvBXkoncEmjrtaQc5zNnyXJnfkLgKd ktSJVX6X9k2knI199UjD3SF2OOo/EFrYoIIcfvhgSldT3EqXHOXJAytu6eX8GkcDlxs8 O5hRureeKjrwU6Uhq8RNLeSV5knFLQNC/uDt93m6eAb2hkXee3IeDxCwbL3UZ//D0jQ2 Fsu2o+KasHbqz/P7ZusqvK4jZcLzYLZHeY/JLO5Thcn19k0OEzH/tiBvsztV2hY/Zyoe ZVAj/5DdGZ/Jb/oWjnE1WMn2TFgAaoqQ5PYRGlCK1MDJCOKIxsyjOQEiaWtfTf7pfDlu yJyg== X-Forwarded-Encrypted: i=1; AJvYcCWriHm10XlF3PsDN4bYnjru4AVGT2WXF2pFO0squY222gQTO7Ms1CwpMJG8OfA8y3Vbu8gFeuGYtsW1vASMhVWMwH8IJ5uPT0EUEVBg X-Gm-Message-State: AOJu0Yz4SI053eNcbJa9cyXUtHi9y/SEGKWxDAV6VGmGN3k5NxtEAe7U gdjpErLTLoBhVbxvwHbMSt1YU5SPRNzHS2opAG0VRFyZKWIEuELaSJwiZhKWOT4= X-Received: by 2002:a05:6358:5918:b0:19f:3ee1:d1c1 with SMTP id e5c5f4694b2df-19fc46e0187mr104458255d.31.1718316723942; Thu, 13 Jun 2024 15:12:03 -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 41be03b00d2f7-6fede16a598sm1562424a12.24.2024.06.13.15.12.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 15:12:03 -0700 (PDT) Date: Thu, 13 Jun 2024 15:12:00 -0700 From: Joe Damato To: Jakub Kicinski Cc: Tariq Toukan , 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: Mail-Followup-To: Joe Damato , Jakub Kicinski , Tariq Toukan , 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 References: <20240612200900.246492-1-jdamato@fastly.com> <20240612200900.246492-3-jdamato@fastly.com> <0a38f58a-2b1e-4d78-90e1-eb8539f65306@gmail.com> <20240613145817.32992753@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: <20240613145817.32992753@kernel.org> On Thu, Jun 13, 2024 at 02:58:17PM -0700, Jakub Kicinski wrote: > 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 don't mean to speak for Tariq (so my apologies Tariq), but I suspect it may not be clear in which cases IFF_UP is checked and in which cases get_base is called. I tried to clear it up in my longer response with examples from code. If you have a moment could you take a look and let me know if I've gotten it wrong in my explanation/walk through?