Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1529442lqt; Sat, 8 Jun 2024 01:59:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxO1YBwGep5A/1QByJ4Li2EBwKTJSBbZ2evu+o38+6H+HYIzB4rpk/YHo0k8czKvLk5AQvXUdn5xGQx8aRvpVDf5JG2FUF6r4Us65TOg== X-Google-Smtp-Source: AGHT+IH9amuNOYRhDSN/0KCVts2nG2aZOkzz11zFCErBzIWJpWCSR/N+z9gR5zOVM5ER/0A+53N3 X-Received: by 2002:a05:6a00:1ac9:b0:6f4:3c65:d05a with SMTP id d2e1a72fcca58-7040c75998emr4840174b3a.30.1717837171951; Sat, 08 Jun 2024 01:59:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717837171; cv=pass; d=google.com; s=arc-20160816; b=ksKTXW+ZZAAD+cROW0xpQyWHrpEUrns4d+VXjgfhPhcfp8BTIiQXkf0FTHAPPBLWyH V+iO/TuddZqSDIlU3O5d2UjuVGoOVU3WubFIZYL0upPbvBXNYZOQYGUkjTOnX86TKYlu Z7fNCT12o1Y2Fwfco4/pu/Rcp3io/YdVM3c6WmMiglZXRb1M8u4mtqZ5Cnl+d8MloeoS ftLaEqBZEFJH3Jdbql0AzmoMIUaiiXCICA6HKGMV7Qx4Y4gDjzDKuZwyfrs9YOGlquPR xf9lV1VHLBBEaqr5DubJ05v0fDwgh7pepvgjz4+EldebhPp1X7K/yRr0d+1lQH4ZB5i+ +zuw== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=viHtjL+mbdc7bcVkG3+0brARupr+GZHLlOVXhuFZJY8=; fh=rZF79Zhfij1OkqlwpnIYoZrLf2a+4nd18gASfvPixfw=; b=T1876aAvKthUhQfDGyZrRasoQ6sUAS8v8XGMRGVdv/GsluMZ4G0nBBp782NPnPOyCS 4Ey4bopzUJv2/PH6L6d8nmZxFQRzDH/D8PntDG5eNNXs19Hxn12AysyW2Q8JNTnw+Ixl g8whDs3ohK9SGF5iOFrz+7w3MhXBMgLEgTd/AcJ4zykO83JlIzDH9k4xF0m+KETr2XrN wm9E/5aFsKnFqJd1PK01p3AnlCBizQdRi11xhvvF9BGNiVL3opw6KlBYkKx++EIQoCNi jaNi3/cWbF/jh20I8jFuCkAHPilfhdOl/7xOZoalYQHhjHdMWXAZf6UxK+AFlQu9ZEvK 3c8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MCTXXt2K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8719-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8719-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 41be03b00d2f7-6de275fe5easi3054171a12.438.2024.06.08.01.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 01:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8719-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=MCTXXt2K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8719-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8719-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 74EB2283C4C for ; Sat, 8 Jun 2024 08:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99BF9176FC0; Sat, 8 Jun 2024 08:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MCTXXt2K" X-Original-To: linux-wireless@vger.kernel.org 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 6E40D1804F; Sat, 8 Jun 2024 08:59:22 +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=1717837162; cv=none; b=F3E4aOmcj5IbtcEaj8hlxWUi14n3jqrCyYYvLESipwO4LSyF3rEsJFh5hQvl+DYjnONl/iMBsZE9K0xFhWOl2w3xGEuBCs1LqFv8Amj4suNTw/mP0qJG29TQTh0dyjMl2s0fOB4bVIpFkU2ksI8qBO30Ozn5Xuw8poYDIaFHSWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717837162; c=relaxed/simple; bh=XELDdMB5Zhru8n4nNoUVmPQIMRF5TRiEouXpDdPtwlM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U8gJjezTEbGec4YTg6NQJ5X5tUYQC3Qg2JPwfBfO9OKE5KQlB6eMawvb9smdg9HcQUZYh1aWJ2W3ix7zwGriaGFXnQIXr1UzfDM0b2bvnlGgYUoCBz3WM/jrRPMA1IVuNPQv9t1QEYRfglwhzfUazVEu1/+80rVWnOmkwGXAJ2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MCTXXt2K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6183C2BD11; Sat, 8 Jun 2024 08:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717837161; bh=XELDdMB5Zhru8n4nNoUVmPQIMRF5TRiEouXpDdPtwlM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MCTXXt2KJPWBhun2uazZj+/D2lsiwaV0LKLaEqC7NU65IGNvs/WhvT4XOD06S+83U YXavM7wW21AD46Uvtg077djVTeT01yurx3YB17U734exDQwkPlVackqk2TJw/lL1Qc remZP/lktzLc54Y6QMxXjziU+2fHJaGYIki53oUUeVMXijL/rR035suWkZfoQJp7wo YD/DZRee1oYrohzVpmHOhqi2zgAZOAmqH8HShN5DX9kWfLTZFU7IsBDv+XXS7Bd/re Uu/X8q4NMD57xT9gZUoD7bccb3mD0/d6qZ2ficeAmY3puCu9QK2jwgEVKyYwhMhfwM XvMTs7HgvxfnA== Date: Sat, 8 Jun 2024 09:59:17 +0100 From: Simon Horman To: Breno Leitao Cc: kvalo@kernel.org, linux-wireless@vger.kernel.org, Johannes Berg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , sbhatta@marvell.com, "open list:NETWORKING [GENERAL]" , open list Subject: Re: [PATCH wifi-next 2/2] wifi: mac80211: Remove generic .ndo_get_stats64 Message-ID: <20240608085917.GL27689@kernel.org> References: <20240607102045.235071-1-leitao@debian.org> <20240607102045.235071-2-leitao@debian.org> Precedence: bulk X-Mailing-List: linux-wireless@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: <20240607102045.235071-2-leitao@debian.org> On Fri, Jun 07, 2024 at 03:20:44AM -0700, Breno Leitao wrote: > Commit 3e2f544dd8a33 ("net: get stats64 if device if driver is > configured") moved the callback to dev_get_tstats64() to net core, so, > unless the driver is doing some custom stats collection, it does not > need to set .ndo_get_stats64. > > Since this driver is now relying in NETDEV_PCPU_STAT_TSTATS, then, it > doesn't need to set the dev_get_tstats64() generic .ndo_get_stats64 > function pointer. > > In this driver specifically, .ndo_get_stats64 basically points to > dev_fetch_sw_netstats(). Now it will point to dev_get_tstats64(), which > calls netdev_stats_to_stats64() and dev_fetch_sw_netstats(). > netdev_stats_to_stats64() seems irrelevant for this driver. > > Signed-off-by: Breno Leitao Reviewed-by: Simon Horman