Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp101596lqh; Fri, 3 May 2024 14:58:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9xuvFKyAs34NXODwVTph2b6siJ9X9oT07eT9Wx8eecYAZ93FrT4bkRiRZTmdvjkmylYx5yP6neIkFO8sd1JZOlKumE+LaexAdRdvxQA== X-Google-Smtp-Source: AGHT+IFDdzheteXRz7XrrXVdQL00nwC5yehsCZfhPY2eohCA1WK+tXi6ys0N8lLNzFHAKHQX1j0d X-Received: by 2002:a05:6358:4323:b0:186:3fcb:8da9 with SMTP id r35-20020a056358432300b001863fcb8da9mr4467038rwc.21.1714773516693; Fri, 03 May 2024 14:58:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714773516; cv=pass; d=google.com; s=arc-20160816; b=ho0Jwc9HiC2YEX1Ym4PKB8A8KqK5wEg/DbOuRGsnHE67rmab/BaGaxj2Kg2REJ48Yd 2LuIOO1EGaHp6ICjcjUndFwJKQklBQrkPiYXKH0Adh6q7TL1lBznJM8sbOxpc/rHDZYg zewcLUMninvaj9l+E9ZpWtagoZb7tow+Ir4GVu58G3vOkuiuakwiRk64HNH6zGa5CLmH vHpMso8XWy/CehOZJYoQYgNPZqi5MD+o9HK/RvGZXLLfy6NDL8pcOO9TphIRXaA++GJF Q5hl4JQ3xG/DyxUEYgxFFvUeZIe77mpM4tr/PUdxOP5NPFPDkxVYb8DyOuOvCVK3l10Q 9M1w== 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=YMdftr8Oh35ehxgORsOcibMvzmvTWHoCYWTbgAUfJmU=; fh=8YueATATMxEW5JgZEQi+/kGF3X5aBpUyB7JVFc53WqM=; b=NSiDGGeqFB1p+kjizXNAHSLKt2/QRqy6nUqzO7Wi6GPOfS73xXY8qIsytdpmJSwhpR 8Tt62cviF0g2ZBoR32ssmenU86nDPJx38XyjUdHIMcjuypE2YkLBPGue7ItF2AN/jSM5 4/ed+Uj1+pm3OH6KK2HX1rzUTZ6pA3d1Z1Z/F1gut7JWBrT/cLGnZ2YGxDmQAWOAb9+P f232l2BJf3ulE94ZtMn6CzucdvN7cOHY5kSpUzrUqCjppDSwXAZfZ2Q7DNJ+QbeGSRWY +pqrPGmZ/kSNNL7PtHsTrXLjQbvhahLdbZpu9UeEZBs4Hncxof+sZm3BJ7oser/XU64b Bkjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lqcV8oJJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168326-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i3-20020a63cd03000000b005dc4ec48cbesi3654992pgg.827.2024.05.03.14.58.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168326-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lqcV8oJJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168326-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168326-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 198062804A3 for ; Fri, 3 May 2024 21:58:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D775A5915C; Fri, 3 May 2024 21:58:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lqcV8oJJ" 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 0243D57C8A; Fri, 3 May 2024 21:58:09 +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=1714773490; cv=none; b=aa+uWOWWvCm3sF0KseysJtB7a0y6Ugk+tkNRMVVbxohes1ZKR4uIQJQR6jV+3mh2Azne2d3PWAAKa4uMJ5XVphUSPZtRBOxbG/YHp3kiifdKCP7uixGZtdX+O62wTCTJ93undGJOv5bonaTBlBQI6SDVlTG0GqDWpTbVg3oiq0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714773490; c=relaxed/simple; bh=Pmgm0glX9FkwDL+qG+ZRYjmYLShv8WqXdvSZfLM8GdQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IsJpqlVrazYFIZXmFgsmEByi1IqIdZA6B9c98Qkgl953MFeIPXq93esWWo39lRgdDqOJU+ISU2Ao47EZeIi0ijPIk2c6yFff03v0ltXp/n2dmNLUPHicZErF33By0yqAHmMz26xLwtrWl2EttZbnBxCoGuX/1mB7dVLj1G46J1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lqcV8oJJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECA34C2BBFC; Fri, 3 May 2024 21:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714773489; bh=Pmgm0glX9FkwDL+qG+ZRYjmYLShv8WqXdvSZfLM8GdQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lqcV8oJJHiXbVU1Q6YInX13ctxFLeFOqEJm9imf6VFK5/YXvfMOFchud+cCllv2Qa edPBUw8Vt6CfW0eeQk4Xumswr28Kvl90K0hFbK37wRrcRYX0wszi77W6pPKDT4pSGi p9wvA/RSUajHXeGzJV3H2TEIZok61CQqKZAo+JoyfYKtQY7OhcanpXT1BM4UmDYQzj obRL4GZFIdxWJYpFr/l1K54HdlJzZA5MYnLw8USngBFF8b8/RNEi+lU/RCfrxJ7x9Y XnMQfOwm/QXJgINcjHT2cznYLaevmNJ93rO1j3NScuAdf7qTvmj0sCQ1S7kfcrdz4D 5rAB9FoC2DJWQ== Date: Fri, 3 May 2024 14:58:08 -0700 From: Jakub Kicinski To: Joe Damato Cc: Zhu Yanjun , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, tariqt@nvidia.com, saeedm@nvidia.com, gal@nvidia.com, nalramli@fastly.com, "David S. Miller" , Eric Dumazet , Leon Romanovsky , "open list:MELLANOX MLX5 core VPI driver" , Paolo Abeni Subject: Re: [PATCH net-next 0/1] mlx5: Add netdev-genl queue stats Message-ID: <20240503145808.4872fbb2@kernel.org> In-Reply-To: References: <20240503022549.49852-1-jdamato@fastly.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 Fri, 3 May 2024 11:43:27 -0700 Joe Damato wrote: > 1. it includes the PTP stats that I don't include in my qstats, and/or > 2. some other reason I don't understand Can you add the PTP stats to the "base" values? I.e. inside mlx5e_get_base_stats()? We should probably touch up the kdoc a little bit, but it sounds like the sort of thing which would fall into the realm of "misc delta" values: diff --git a/include/net/netdev_queues.h b/include/net/netdev_queues.h index c7ac4539eafc..f5d9f3ad5b66 100644 --- a/include/net/netdev_queues.h +++ b/include/net/netdev_queues.h @@ -59,6 +59,8 @@ struct netdev_queue_stats_tx { * statistics will not generally add up to the total number of events for * the device. The @get_base_stats callback allows filling in the delta * between events for currently live queues and overall device history. + * @get_base_stats can also be used to report any miscellaneous packets + * transferred outside of the main set of queues used by the networking stack. * When the statistics for the entire device are queried, first @get_base_stats * is issued to collect the delta, and then a series of per-queue callbacks. * Only statistics which are set in @get_base_stats will be reported SG?