Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp535650lql; Mon, 11 Mar 2024 09:42:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZw9gqcsXGoU1Iv2YeIFvlx4l+QIakj7T1AusGFmTynHDrrNspxyDt+E+w2wadlvmONDHVBqDkixERF/Ek+0JqRNxPDJofWy3YbfOitg== X-Google-Smtp-Source: AGHT+IFHGcA9NBJvNORTvlnNeI74GkTzgXZthpuHu8+d9SwyESgqh+luNXmRExVXPB0LX3Oc1gLo X-Received: by 2002:a17:902:7608:b0:1dc:90c0:1e9a with SMTP id k8-20020a170902760800b001dc90c01e9amr7240490pll.64.1710175320209; Mon, 11 Mar 2024 09:42:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710175320; cv=pass; d=google.com; s=arc-20160816; b=A5T21wjV4wKoybCPRfsEKVQI/18ECK0zX3inSVml5NbmS4Qzb9cDeLEvEoGe3yBC/c RCJgvEJZu43TlgFKRludmNiBBgJuv6O9/FgfCOHQTmuUQAQspI7dZO83Q69t0fs2MjkO k9HuObq7VQZXDa/WjAbdA4ln7tutclmx5VEOOwi6nnUsy8200QFssARlLIZcesBAtUAU hlQWcOypODddTwOnmAWYNswI6Pqlf91JIAdL4qi5wTBQ0Hu6OnvGTCoeEY8LMM8lpTrK 5kjenCfxL5yszLnlplhinrjgkUH8LTzjcN3QbKFlydCyb7r90ofpWVfbcq2DCZRVUqQR vi9A== 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=hO2WE/Q4Nu2PhvR94l66ZCUZTIcYIt0ltfnKbOAvEA0=; fh=agBL2x8yaMLkcHugumxxHiChzqL9tAT0ZX5u4yFWuWU=; b=uSD/vu2KvJhcMa6UztDetZbco1CXhiXQLPgSPFYGVmRhZTmLbX5BoccC6x91E3J8QA ltSle9EjhEyQxzC5/USJl+cZ1iZIxs97myaKgWgghuanUk+x6mgVOghkBaJMJ2ffNCt0 htgEJyBaUi/MOdQ85Vdd1oKGmdQ3uVAEaYgWN56k8HFy80JI5Xa2FVqp24+Vz7VDH0md chpLTwzho/jtRuZNvFLoFZ9+RS5D8aMn2/wQH3fDP3LkE4cTKd3RKZsa9vPVALMSs09i jF1SI85yZBkw6LS32CeUDrh38MIw8AvSzAiH0yuYFACbDWLwgQZ839CxMtEF+NAi2y8L A2yg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b="laCtl/UH"; arc=pass (i=1 spf=pass spfdomain=networkplumber.org dkim=pass dkdomain=networkplumber-org.20230601.gappssmtp.com dmarc=pass fromdomain=networkplumber.org); spf=pass (google.com: domain of linux-kernel+bounces-99253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n8-20020a170902d2c800b001dd0803a2fcsi5346194plc.58.2024.03.11.09.41.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 09:42:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b="laCtl/UH"; arc=pass (i=1 spf=pass spfdomain=networkplumber.org dkim=pass dkdomain=networkplumber-org.20230601.gappssmtp.com dmarc=pass fromdomain=networkplumber.org); spf=pass (google.com: domain of linux-kernel+bounces-99253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.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 DEF152814C4 for ; Mon, 11 Mar 2024 16:41:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31F3B482E6; Mon, 11 Mar 2024 16:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20230601.gappssmtp.com header.i=@networkplumber-org.20230601.gappssmtp.com header.b="laCtl/UH" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 0644C42073 for ; Mon, 11 Mar 2024 16:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710175307; cv=none; b=gl/ecqOYpMk0Eap2Blx3z44bcdsPHXxZY6lD/Kid7H65+17Z5aRtpgOB1K9IxiusaWctt7kn76nyho+D/Lb+5hMWaeJRoSEEJnh7YdnIRaBlG2WVb+bVrKU0JbR2XV9Hb3gol4NiS/EeOGFSvpQGSDY40B9XMpY9jZyamxvGKq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710175307; c=relaxed/simple; bh=tsIonJwynOjYCCdrRNvMtpqlyXRynwccuNLo8Hy5ngg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WhqXgWs5yfBScHiyeai4pnLEnRStc78flbI7tlUCSMkJk0muR31DmfpGMjYvJdBDgSstwgBTcTtW+cKOfmIZC1m17i8lDN+vaNQI3kPrFy9rnwll4V2K4Js3GcnMQ/4DsJS3u82jKFeWdY6xh1I+OLtwfjEFuV9HXXwCFRIGisY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=networkplumber.org; spf=pass smtp.mailfrom=networkplumber.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20230601.gappssmtp.com header.i=@networkplumber-org.20230601.gappssmtp.com header.b=laCtl/UH; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=networkplumber.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=networkplumber.org Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6e5b1c6daa3so2892489b3a.1 for ; Mon, 11 Mar 2024 09:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1710175305; x=1710780105; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=hO2WE/Q4Nu2PhvR94l66ZCUZTIcYIt0ltfnKbOAvEA0=; b=laCtl/UHcRYiltlF1HOuvsQVyqRCgeoFUv08Eadw/qwwVJ6oOXQtDW7Xe7lslOJ55H qe8z48cEwolugBUbYGO/JXqGkDT/N5IrK9RllcOLWzdYrbzl7KQsLRqH4/W9HONf35fI IHFT1qfBfrr/mC4lc90wsYtMPV3jStw7olf1erDN/e/EhEQ52re9sqguVBtnf0YGwcAX Jw42CZO1EC/CcMe2cM14v0csvnJXvUe35CBuXT6RNjOkXyKFzbIGGBnLxBGJQXI8+ZEY xBlIqf6ZVZ1bJdbOeGw+uHhxADhph7Qv/UPItP/p6sBmcDeaVvZnYiRfmNrurDQXeSdY 3KxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710175305; x=1710780105; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hO2WE/Q4Nu2PhvR94l66ZCUZTIcYIt0ltfnKbOAvEA0=; b=CzgAou/bU0AZBv7G4a9AJBBagWLOh1vFxb8LqrKBttr8W76EGOMHPyKA30WExSoW4c c1mbxrmccME/8mNbLcVURe2q0k2iKBOrEqm1NRuYO6HbtdHagFXR0/wBfhMOyd6xrPYX Rh6bBPCTsV1UldVOcXz0572tEnBgB74wFntpYgYQDkeCI7vQDb6w/M6TNw3T9NkU934v Fo2lFxGTW5Ii3drd5UOnLVBM48aYAPD/Za8ZD9qRbbkNSRRCXS0PeHeLPt2G5zf0iIyP G6utp6hz/edMnxvQss2i1gr1GZK+6PztE0WQyj7l2TxCyn/TkHJAgb79Rg8E9rvFazzk 1IeQ== X-Forwarded-Encrypted: i=1; AJvYcCWrMhg436sXqXWr1nZFSSmYbhu0WbeQfbeE9I3ThJlYXfESq6QMwEBQ2gR2vAlHxrfVj/yLUV1P18tFVxjGqDHaWMPxrXFFK0kdQO2w X-Gm-Message-State: AOJu0YzJmWTaXHdwH/9OYunmYNt062Xl6o0mWOrGcmrEO3/Vc0bUGcF7 GD2Y3yCrG/7CxiCOJPoBp1+Boqpqo3/YZ9fhvQwO6aXdG6z+B6IVqk0v/AaAOcY= X-Received: by 2002:a05:6a00:a15:b0:6e5:9a0a:8b8d with SMTP id p21-20020a056a000a1500b006e59a0a8b8dmr10813456pfh.18.1710175305232; Mon, 11 Mar 2024 09:41:45 -0700 (PDT) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id k12-20020aa7998c000000b006e632025bcdsm4542433pfh.138.2024.03.11.09.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 09:41:45 -0700 (PDT) Date: Mon, 11 Mar 2024 09:41:42 -0700 From: Stephen Hemminger To: Jakub Kicinski Cc: Shradha Gupta , Haiyang Zhang , Shradha Gupta , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "netdev@vger.kernel.org" , Eric Dumazet , Paolo Abeni , Ajay Sharma , Leon Romanovsky , Thomas Gleixner , Sebastian Andrzej Siewior , KY Srinivasan , Wei Liu , Dexuan Cui , Long Li , Michael Kelley Subject: Re: [PATCH] net :mana : Add per-cpu stats for MANA device Message-ID: <20240311094142.3bbe7d7b@hermes.local> In-Reply-To: <20240311085126.648f42e0@kernel.org> References: <1709823132-22411-1-git-send-email-shradhagupta@linux.microsoft.com> <20240307072923.6cc8a2ba@kernel.org> <20240307090145.2fc7aa2e@kernel.org> <20240308112244.391b3779@kernel.org> <20240311041950.GA19647@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <20240311085126.648f42e0@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-Transfer-Encoding: 7bit On Mon, 11 Mar 2024 08:51:26 -0700 Jakub Kicinski wrote: > On Sun, 10 Mar 2024 21:19:50 -0700 Shradha Gupta wrote: > > > Seems unlikely, but if it does work we should enable it for all > > > devices, no driver by driver. > > You mean, if the usecase seems valid we should try to extend the framework > > mentioned by Rahul (https://lore.kernel.org/lkml/20240307072923.6cc8a2ba@kernel.org/) > > to include these stats as well? > > "framework" is a big word, but yes, add a netlink command to get > pcpu stats. Let's focus on the usefulness before investing time > in a rewrite, tho. Couldn't userspace do the same thing by looking at /proc/interrupts and PCI info?