Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp459315lqc; Fri, 8 Mar 2024 02:35:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWVnw3IPldjlbnOFdrHbo4pJUk76Q7wWgLJ8sQPxwENWQtLYYro05jzbhBnAscO+NiRuxNIzd8Ps3rwgKRis295sUDiGOZmECZrasSeIg== X-Google-Smtp-Source: AGHT+IEjIkurYStBj8U9UbxGwHL5THHxfnbVIMpzlPqln5Mf431gknyTApsumaWV0JscmCQS0Kas X-Received: by 2002:a17:906:d0d6:b0:a45:ad59:cbc6 with SMTP id bq22-20020a170906d0d600b00a45ad59cbc6mr6895361ejb.26.1709894104361; Fri, 08 Mar 2024 02:35:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709894104; cv=pass; d=google.com; s=arc-20160816; b=hHMbbtZud5FM2GKR5vwtOWt7B1sjLLvBi2OGnQExX+BjyxjRrPVVl+61hfjl+eMsUZ KCWv2GwKcYf4a6MZFl9HlrNnfHZsYDEndQgVzuQqntw4UyuAbvt1aq8HdN9wA6r9v9Ju 7ZWWujtqITjQOtwe+Jg8iNTO420PuSfmPj6Q136Lx/PBxdrAHhy5hBrxOogiEj12H8CR 9fn6Zxb6wqW1YVHb3b6mhxZKVrL+19dJH2cenQwLLi8/mEnT7e9ew6U4JHlhIWYkaXjc K9ZKJhbyxZva3nAtdeFytgZQuhgUsC1FfhKJhUu5gG/SjHRYFE8BBLPIg6JxOUc4dWbP XG3g== 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=XagB2LkBSV5q8D6u6Fwx7UufMS0bw8vTRFIb2KLQwug=; fh=7cbACLGS7at8NjY2Og8PyCbWQhr/2CjOogW699PjVI4=; b=PO8ZqgK26A6F2QF39Rcj8VJQ3wl5DvB8zeVHiU+hebrKDRclf35lWzZiFwIKHahSby VHnu3mx/Hd2ZGOmKp3xd3Y0ua5XMmvYgTejPfymubkM99igXh+/FV1vFMmc5H3z/y87b wU6VMKu5Gfj6dgiK9DGJ5vzq5kq516BBGq0vFNpRGKbGF0EYwHYCjZN2te0BA3HNBFQ0 q4yofRynA90lbMicaZ1m5vxnCl4SwjVaiNmToKZIQszVmiZQeZIHbeD58tV9qY1jSaaJ 9hxrqL8+q8TsOzvZSO7binnLjGMyx7nCLSvnVmAhUPWHHsqMQn7fnPg7fs/TcqvQAlXG 7eBg==; 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-96840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96840-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x24-20020a1709060a5800b00a3e45782780si7720785ejf.740.2024.03.08.02.35.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 02:35:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96840-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 01F381F235FE for ; Fri, 8 Mar 2024 10:35:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D5A055C3F; Fri, 8 Mar 2024 10:34:36 +0000 (UTC) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 4DAEE55763; Fri, 8 Mar 2024 10:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709894075; cv=none; b=GotWKK4JFqwE6AIHQT5G7t7UBZMzBdwJlTt+fhOhlCNuMBMUJTHsqw0Fi3PFHkwdxvthkBCyl4//XkIdw7pInCkdjYfMnXy5JAMcD4GAsx8GuPHvbCZbZn1ek3l+a3KzjjT+yHSadP0a9Jwf1BW+0MNK865Rce0+LjWeET+d6E4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709894075; c=relaxed/simple; bh=L8Si9CnBE7auR3o9dfsZriAtTIYD0Jv4aUOcF2/X0Lg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ROfMMrtmSUl3aMoQ873eZY/LuX/X78PWgRTuy72YPZSNtuTysHvZRPm2mAvQJIMyeSGyT+ISYcZSt6OAsKqDZSdwpFF73BG3mtaBqkaJrjMidkxFIZujIYyePAhDoDsXWoL0aIfcJMnh/aqOrfxOi+AZYjE8VuhYqlmSDJ2I+KU= 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.208.54 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-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5683247fd0fso327288a12.3; Fri, 08 Mar 2024 02:34:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709894072; x=1710498872; 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=XagB2LkBSV5q8D6u6Fwx7UufMS0bw8vTRFIb2KLQwug=; b=YtsfScbC4yDafWCM51YUAcrcGuP8YB0AyHCo4+Q3R0U5dWfXoQdUL1SG5Y0byulks7 uGypgjakUZoLh7wlH7519KVhmaVuU5dbIeYSYcTRJmt9SJq39BaGlzZGC7P/daH/dc92 ERCsyh062DfVno8zff5yeh/1caOX+Qlx7VU/FDQJloaBeqb+kkvPPSbtEdOAcS+pO8CI XwUwRJZBLxaD7eJ8EIySn/hFxyjeotrJVuNMfN52gxsc8ykMWQaQ4nd+/QYN2o54DPoS 16rIgAtP+H/zkiwJIfXduAsb1KqvJnhKE/iAuUerAG+GaraJKR+qMHi8hpMYDphP41oS nLlg== X-Forwarded-Encrypted: i=1; AJvYcCVK9I7enObfkytyccw3oot6ZZpOCKfs5dLIzb7YuZdno5kVjKZOZ9adI8BhX8nZHOcdNCeDcJOJat14PGRuyikt+mYdmio4Yjy0Eytj X-Gm-Message-State: AOJu0Yx+wa4z1mqQFKB50l0QThbCf7A5E9hsEl0ehXtf7lwkopE6z0m6 KIFr70AIVKn2UCjsqDcf+hDB3MBcQ+2OECeDQTO8sB/W+KoJXTmW X-Received: by 2002:a17:906:c7c3:b0:a3e:34e8:626f with SMTP id dc3-20020a170906c7c300b00a3e34e8626fmr14919878ejb.66.1709894072325; Fri, 08 Mar 2024 02:34:32 -0800 (PST) Received: from localhost (fwdproxy-lla-120.fbsv.net. [2a03:2880:30ff:78::face:b00c]) by smtp.gmail.com with ESMTPSA id p16-20020a170906229000b00a442979e5e5sm9133311eja.220.2024.03.08.02.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 02:34:32 -0800 (PST) From: Breno Leitao To: "Jason A. Donenfeld" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org, dsahern@kernel.org, wireguard@lists.zx2c4.com (open list:WIREGUARD SECURE NETWORK TUNNEL) Subject: [PATCH net-next 2/2] wireguard: Remove generic .ndo_get_stats64 Date: Fri, 8 Mar 2024 02:34:18 -0800 Message-ID: <20240308103419.1771177-2-leitao@debian.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240308103419.1771177-1-leitao@debian.org> References: <20240308103419.1771177-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 --- drivers/net/wireguard/device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireguard/device.c b/drivers/net/wireguard/device.c index cb025ba8f60d..0f7ed274fdf7 100644 --- a/drivers/net/wireguard/device.c +++ b/drivers/net/wireguard/device.c @@ -237,7 +237,6 @@ static const struct net_device_ops netdev_ops = { .ndo_open = wg_open, .ndo_stop = wg_stop, .ndo_start_xmit = wg_xmit, - .ndo_get_stats64 = dev_get_tstats64 }; static void wg_destruct(struct net_device *dev) -- 2.43.0