Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp9098lqp; Thu, 4 Apr 2024 05:55:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+B1C29yXf4NTqvZlYzGI2RFy49eLYxyAaq3q74YLJfXnixK55qMSjXtMPRFbAO2N9JESwz8bcpk1zlyphPcazuyrF97ATPVmJzHpGUA== X-Google-Smtp-Source: AGHT+IGBTuMGn1/Uk+WqC2yXpZvMxIfWUg/osVEK7OyRIoyLLmiG8HAH3qJxjUCm6t5wN6/Pjhbp X-Received: by 2002:a25:854e:0:b0:dd0:97e8:74e6 with SMTP id f14-20020a25854e000000b00dd097e874e6mr2263900ybn.55.1712235337759; Thu, 04 Apr 2024 05:55:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712235337; cv=pass; d=google.com; s=arc-20160816; b=puzQpj0LZM1yN3vdeEd1Pfl2w1apWAX5oqk8oUMIK5MNi06/Yr/FeNKFamjE8ZV1Kg oG7uwIbf42rwSMpV3ro2gN4bA5Zksa+KEym7tM08XpfbTO1fSRZgEXsx1Cr2jrdqcR6r NKudmxCrcELIkum6T37lmfvpsH2ml5UM1dL+wR8RSSxubWFPCb9ms1i7b4awFI7HiPMM ExQps79IgI5uf9mLFSu2z9KjzIlg7pBF5Kn5FMlqW+mPlt6JnMUVx7tbafC3C5hMML5z o3ZG+Fc4y2UipcTlUEV+dydaZJ6pWUayikZISWYVn1GSlxd/b8BLNKkaY+pP89u+NBTl pUZw== 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 :date:subject:cc:to:from; bh=6O2JKeZvqaoJNzaclf36Ur4Gc3+emicV0GwUt8uQmao=; fh=Ih3Mog66e1xkqDrYXf7bec9m9lAyf8XBe6InQAZxi64=; b=UXtpqVwOd7gwHkYj23z4RRMsQ9fAS4eHLRwjk97IBhIfIw9Fx6f+KyqpvjUXE+JJw1 2E1BnAK2PQLxtJ3F2WrHc6s8Ui+xFla2qnO9/XHpofxJXtf40y2glBZydlnhKreFuLzq e1b5Fn1R/feFWj8w8u1U/Eqwbe9xNKLfmgZtVwQIa2G//92/fDGG+Cfq+heng4+DzMOY 1P+PnKmBqKN/R/NjifnU0yp+sui7aVfwLMyZhhxKZ5RAkliWVZy+TGlEf5Po/D8BPI7+ SCyJqKq6rvL/1ESifBZpMIP9dDZDFj6VoBFSqP0akTSKlZCrF2Mw/G0z332UDGsvMSZu 9Edg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131474-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y11-20020a0ceacb000000b00699334de813si1106900qvp.355.2024.04.04.05.55.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 05:55:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131474-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7407E1C21947 for ; Thu, 4 Apr 2024 12:55:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FA651272B4; Thu, 4 Apr 2024 12:55:17 +0000 (UTC) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 F27D959157; Thu, 4 Apr 2024 12:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712235316; cv=none; b=Qm4IJu+gVC2ySmcE0D+9SytLC75QLIqIlql6zraEGPsYh8NFFXwP/obXL2WA0B+IbjCe7CXg5H6ePKgedLZ518pWu2jSr0UcGmDi/t8dkDbVZ1VH1oMqqvK7WgN7LXDZvaWwCth7+NkcEGMhxjRGmCugOMnJIWwf91VAPm6UpYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712235316; c=relaxed/simple; bh=ostQ0XvbZ4Xswj3rkDxFH+u55Uw1YqBVGn08piL5Ih4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GagwH55Ha5JxWnq7So5Q2WMvQtTclCJazel1eTVAj9Bd3A7hB9AU+gd76n1eas++c7r2Ne/WQA+1m7G9eviOmPXsmPc/KRdJGiLHx2WFWdyfhQFo8GualHunbFdUVjFYQLd3n1MToIN3ptGX29p7UjPKTcQUOnfIemVLvlFUU4M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a4a387ff7acso120434066b.2; Thu, 04 Apr 2024 05:55:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712235313; x=1712840113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6O2JKeZvqaoJNzaclf36Ur4Gc3+emicV0GwUt8uQmao=; b=TTbSNeWQLH20YpGujWIEvKKex+Iy9AumzfM436MeuL1O/9Vg94oUmUMCG8OtFh8jMz 5UESFEzrtWlhHih27HH4fqA/605fWqKTGWUGIOQV5fFH1bx9+gCny5f+9DCy6f4bZjJ7 6gbdUlYbcR5UCzYLdrb+rC1JOLnw07T9JTvri1GTKr0pY5mp2dl7qD7L4UQg/LJ8HKve +Ko/VJ3fZ6t2RQTwPD+g4zoVSghG6lsYVCuI0s3AZ5sO0uWXZFSD09uLoDxthf2bXzUC kWxYUcr9HMJB3tNeJTyeGMLatxzXjcduUj18ia8UD6o0fPB0TCJfmDjI0q4Xxdy1YhAa Et2w== X-Forwarded-Encrypted: i=1; AJvYcCXWtLT4Tl7u4YKIa+xGEhmthaKbGLV4i6nOUGVVwe7QQEg1PvR+gnH5dyckhQ0e8vd2kImrxUXdAqdUuDanZpCm9eukguPA X-Gm-Message-State: AOJu0YzvZc19hxfVXo8tmGFX76lKMaJV1f0izfGsEd2YxkMAJsRKW1Ie VvlkNwYn0UC3AmhEyWjaTIm57U8uEwEdBXC8HsCQ0q5quV84r97d X-Received: by 2002:a17:906:1687:b0:a4f:b391:886b with SMTP id s7-20020a170906168700b00a4fb391886bmr1491841ejd.69.1712235313187; Thu, 04 Apr 2024 05:55:13 -0700 (PDT) Received: from localhost (fwdproxy-lla-003.fbsv.net. [2a03:2880:30ff:3::face:b00c]) by smtp.gmail.com with ESMTPSA id gy18-20020a170906f25200b00a4e4f129d3bsm6478237ejb.26.2024.04.04.05.55.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 05:55:12 -0700 (PDT) From: Breno Leitao To: kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, Steffen Klassert , Herbert Xu , David Ahern Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH net-next 2/2] ip6_vti: Remove generic .ndo_get_stats64 Date: Thu, 4 Apr 2024 05:52:52 -0700 Message-ID: <20240404125254.2978650-2-leitao@debian.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240404125254.2978650-1-leitao@debian.org> References: <20240404125254.2978650-1-leitao@debian.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- net/ipv6/ip6_vti.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index 71c749bb4b3e..4d68a0777b0c 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -887,7 +887,6 @@ static const struct net_device_ops vti6_netdev_ops = { .ndo_uninit = vti6_dev_uninit, .ndo_start_xmit = vti6_tnl_xmit, .ndo_siocdevprivate = vti6_siocdevprivate, - .ndo_get_stats64 = dev_get_tstats64, .ndo_get_iflink = ip6_tnl_get_iflink, }; -- 2.43.0