Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp280077lqs; Tue, 5 Mar 2024 01:36:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWHlT18bCsUMq8EkeHsOk+w7za/Hw9rBnFAEXd3QHfdMNyjG1E6KkuJtJMLXQwFvF5ix+EL3a4oB5x3ujZs4/twIN1y1fQwRcHGhTu/qw== X-Google-Smtp-Source: AGHT+IEtl0DpI4JBfMBjl+NLgfippdZkIstVtHCkQi7vM51r6VClSh/ZGNbk60BeeUCugTm2lWX7 X-Received: by 2002:aca:1717:0:b0:3c1:c36e:9ec9 with SMTP id j23-20020aca1717000000b003c1c36e9ec9mr1276412oii.17.1709631371541; Tue, 05 Mar 2024 01:36:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709631371; cv=pass; d=google.com; s=arc-20160816; b=xZDhjCfquZbE0TYJ3OIJg/XPRnAYb7ULVvaYNCpfL26OiJjZVMLgd67nMugNyYXcHa Emjzuy1M6OfsKZCU36faJZz8hmqnVv1qWF0XwFXWo+16dK5/2HSJcuHmNee4Yi0Uopba GldQwJEA9XEwzhkBXcLWtu7XIyUzgaB19uy+fqtkcSDhmbYJS9MRBBhOfxZbuMHm7PKB /xyjSuPvMC4eAIMH905oCjmPHcAHDeeQSy1BgfE6wsXKe1CUfigHuVdEU5ax7NcGv26J F3RQXFTPJcIk4NctL81P1YWguEXD8B/H8dNkTNzTTFH45pjNkSgrn2ZJ3G33731ly70a 7tDQ== 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:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=4pbGkC04Cy/pZ1QahcplTQZ7GagiY8lcshK/ADkXRWs=; fh=uuxXi7sHlxbXuYY8XvVt0+lye4a7MEIzM2SxprW6Gsk=; b=z9fhV+6S/2d5KeXuGu++OTdI1tStNrQZtLkz9UaiW51flWa/YTZrTZ+hDBEt7GdavU hxd7Z64YyMBbh5Urinj/IPsApgwdSDmBDtl6CqkqGsEfBTw3a7726YmXBNk8wJQnYBp1 DxSXc4YiAG6g68ONxBR7Adprd4Jn1vCCNP/s7ljjJ1qfxVur2G8t6nDDrMV2BOscfDel RFdUQso0QkEr9p3eTmyqjE+w2Yf6dj5Lbf/xFNTmboQE+9Lf547RySDE3kgKmmwaEEKC nBRQ6c2z5ARYF19u4CzoSIJmJhXdHwwg9MJb6VUPjFy4PhLnkvQhMEKfIoZ0DJKP2+lB MN7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="a0G/oWfX"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-91991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j13-20020a63230d000000b005ceb5338d74si9644632pgj.510.2024.03.05.01.36.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:36:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="a0G/oWfX"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-91991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CA0FEB2312E for ; Tue, 5 Mar 2024 09:21:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1E7552F6A; Tue, 5 Mar 2024 09:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a0G/oWfX" Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (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 9D05E5025C; Tue, 5 Mar 2024 09:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709630473; cv=none; b=gYzYLlZzbz/KsI2UHRW/7jEUlToiXoCsruI0GSg1rImIwNE840mBPSdLWQFYNXKhnuBWxIBVFOf//ptf95s4OLbPA22F4QjceGKlA4IlJuvOUyG5eR5pGOb3HCIdcLWtJDBC/VkTgXVQYkxQ/IA3JgSyUZdKKjTGrzeUkE//v9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709630473; c=relaxed/simple; bh=vakpoISFn9p2eRy7RGby03JyTimOX9GLREz0fTQD318=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=GvZMOurE5dJN2A3ntngjflfVO95NzTStXZl9ClPHMC+H0hiBI3Qoy2d98EqgFwVmpEcfaIhnOp+AOkiR48ZPU8oVjGSXQGLxanfUDL4jftUQ2XkledHxmjKjNqi7GegnDlL0iIJnNj2T8w3xZ3fUacTMqrV6PFcPQzLefjB2jFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a0G/oWfX; arc=none smtp.client-ip=209.85.222.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-7db26980225so1108355241.0; Tue, 05 Mar 2024 01:21:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709630470; x=1710235270; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=4pbGkC04Cy/pZ1QahcplTQZ7GagiY8lcshK/ADkXRWs=; b=a0G/oWfXZ8fPNxKWOlU65i00LdAqoQz38FUQq/Bq0PJHGmy86dUAjr15CZMzX1FO7p doBIfBSjB0lCOC/ShpMyEfP4Inu02K2UcLWKAYp3kBF+/q5I2yMqpgua3FQrv6uKxsaO J3czoNeYgT5mvah9Mxo7xA0nZn1xgowdWI8sOV9IvJe6jiu8jE4lHBGnKUrAtr1DNj5I XuGq2rxn0E0sSwJOiForT0XwTRu0GYyiqmtmfY7j9ZnOXjIfwBVDrigHaI7SKewbMN70 3VSLhUOjXYMH1kyFSudd043AWNJIdeJ2QNGW335JzOwmW3LRNsIs140sR/KQB49EzIzA xq5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709630470; x=1710235270; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=4pbGkC04Cy/pZ1QahcplTQZ7GagiY8lcshK/ADkXRWs=; b=F5zQ45POet6lVb0w9DeimDn/WnHtaq0s0k/Z2o+msVhsgwW0kLEGBMYAWgZf2/vsU3 cEhP7avipXbkdf3V70yWGk/RgC+ymORnoDQUNX4IwtRj/rUj3k2+pqBaFw0qx3jhSjAS /2szOiQe95osiBrCkTVD/nm0WyoICLMySUI4i4QS6Y0MdG9xbmayCpSHAWOXI8qQLjdI hcMs4mJ5ipVCFyoNf2b1o+dLtfF94zfEXyQt5gZSnw01OiZ4AmNZ9uQmkv8stHg5v1rp g/6UKb+CuutdAM1m9YT4QmQc19vZeOUos6ncUH4veuYokN3ZxCp2y+5at2zBg2EwT9JP zUcQ== X-Forwarded-Encrypted: i=1; AJvYcCWedvbxZ46X5g64S6pSvOKmf/5xSOud1TydXad+Nu3V9uN0noF3sPkpV8LEOgCHAFsM579YamBtDTR5SyFVBQNbWXH6eJsH2JDDZX02 X-Gm-Message-State: AOJu0YwH0rnOOEeklgkPEYa6Gussn0g0du82z9eXcUc2rVRk5Xvz2bKS hgHQYlPt9qXCJMglYfpAnF34Lrw3sUBc0fVRb5TJ2tSXgzQcuV6Y X-Received: by 2002:a05:6102:510f:b0:472:7619:1a67 with SMTP id bm15-20020a056102510f00b0047276191a67mr1551988vsb.3.1709630470621; Tue, 05 Mar 2024 01:21:10 -0800 (PST) Received: from localhost (55.87.194.35.bc.googleusercontent.com. [35.194.87.55]) by smtp.gmail.com with ESMTPSA id dn1-20020a05622a470100b0042e5c83cf22sm144043qtb.69.2024.03.05.01.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:21:10 -0800 (PST) Date: Tue, 05 Mar 2024 04:21:10 -0500 From: Willem de Bruijn To: Breno Leitao , kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, Willem de Bruijn , Jason Wang Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org, dsahern@kernel.org Message-ID: <65e6e40618790_3cfad29492@willemb.c.googlers.com.notmuch> In-Reply-To: <20240304183810.1474883-2-leitao@debian.org> References: <20240304183810.1474883-1-leitao@debian.org> <20240304183810.1474883-2-leitao@debian.org> Subject: Re: [PATCH net-next 2/2] net: tap: Remove generic .ndo_get_stats64 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=utf-8 Content-Transfer-Encoding: 7bit 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. > > Signed-off-by: Breno Leitao Reviewed-by: Willem de Bruijn