Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1189050rbb; Mon, 26 Feb 2024 01:16:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqyfscsvbwoOIXB+XbqKAMtV/1KhGabKvuCuynjuMGV0CL8OUtwdC0fBLCraJIIuUTYGiCJhhGocFGboI3Mf+4hFHXERZZFuRV2LbreQ== X-Google-Smtp-Source: AGHT+IE37kzpf5zTorVzcIqXmOKkZVRYw+TarvCEPBpWK5wokZoRrFCTqvZHhEEbetmd1qYhZbDr X-Received: by 2002:a05:6358:b395:b0:17a:d84e:c106 with SMTP id pa21-20020a056358b39500b0017ad84ec106mr8683276rwc.5.1708938984875; Mon, 26 Feb 2024 01:16:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708938984; cv=pass; d=google.com; s=arc-20160816; b=J//QE+XJUNO5FF5ordKhiZiE/bpWm0YGu6Uy1cwknzOtVhCR9Q2VdHiPHnXsU8HsNj jxZA0A2CfyTYe65AIVeozE0Bs+Yaa3X/bCzPS8oykkPqY1XRhBcZ5IYegnMp8ZxyhPc7 JYvK4ECOb08aUFDRgp4uGLv6tbZixGh8XpJuorv2qFz0mAIh9nTMPDE4D9lfetrAq4rt rSimmObynEW8dSYorjxem/xGif1c7EMV4nRlsulHIFfPnWeiZMbZUrarmRSXgwHWO52z B4BFFYSEO5sKPFQkO6J6vPn6/gXM0LIFM2gajz7zmzlsoeOcW1MlE3Dj4xzzE8oWdzF8 B3HA== 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=TfCEbsiS180Pzdnz3BmbeixICS+mxWP3WbokAEMsGb4=; fh=PyZe3CgonuQtkzxzZmdKc1wqkU0FKjoWXoZhvmfxghE=; b=EfCQrSHSKi5jnHMzexeOenaAz9frPYt8tLAMTD9w3R8lbTECMRs77ykx6J0IUIBdXg BCkvKEVsr9KLUBm5A7Yob/aR5NNXQzH6gcYHvJWtY5jCeskeoRwNwwgD30jNzWcy28cM YvjGchn6z7fR0yEFoOQ93aW5mVuP87MAQLUHH7pt2+CT9V59Z1Lo3gTc54sS/e0AFr5g MGIwsfJHSqPqEmqVfkSz11fVM89pvJItaVPIRjt31s1hzUnS0FhJ61kDxcpKJRTrag7F JyYn424sO6Mu6bi+ooyuYF1gt7ehWk/Ls/pnD4/T4zbtHv9BRpFg+NWr4MEMaIkf+BuX Vw2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YOGtk9ps; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-80910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ay10-20020a056a00300a00b006e5343da718si826956pfb.102.2024.02.26.01.16.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:16:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80910-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=@redhat.com header.s=mimecast20190719 header.b=YOGtk9ps; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-80910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 857FF285C0C for ; Mon, 26 Feb 2024 09:16:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 625AD3A8E4; Mon, 26 Feb 2024 08:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YOGtk9ps" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 1E2151E516 for ; Mon, 26 Feb 2024 08:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708936281; cv=none; b=Iv/x+jlZPwVxTiJJX1cmMh0WEcLjlSdWw8MSZtFdjgFnil960jNyWlPTgldomTg7K0MTvjv0Kc94OcMTNPLGa1yTVjmsGgob3d65Np9OrR2vUnwtSYPkr2pIh4PvG/NRgvTSRkdAzzrHlmQMhPO7I2H7LZDi4QoFRGoo6sEXTcc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708936281; c=relaxed/simple; bh=Dygiyz1OnjTfaz+BngVouI977noQ0Hft298bDIocTX4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qsswAsSMa5znKONs8953bHRcWMDG9lkGmlmU4nzhDgdw5/P5gNZHH1he8GF+z4rpmyv2+apN7OHZJuVQmxbGs/13WS7gRYcgTbS1yytS+jDN7VX1hFx57n8S0WQzNRATUkvGcu+Dzieg6Cg2+dN6VMFrAQCsFisn0DTwD7yWIMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=YOGtk9ps; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708936278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TfCEbsiS180Pzdnz3BmbeixICS+mxWP3WbokAEMsGb4=; b=YOGtk9psPqfjwRTvtstQ8Jvw8KUYvgopM9O01PygNulUc8MvJMtDg82YwaUdLRzte9L4HD eEi9D5WzQk+abMUf8rpKaxTsS3l4ftq86fh9gwunA3tbFaZCrQXxsdx+4rcfH38e1Diy5C 0BXHnSXaRNYJ18ZvY0Kz+6EkfqcyMgM= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-213-vc6YpDizM5692yWiS9WCpA-1; Mon, 26 Feb 2024 03:31:15 -0500 X-MC-Unique: vc6YpDizM5692yWiS9WCpA-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a3ec1d8b1e2so139416666b.3 for ; Mon, 26 Feb 2024 00:31:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708936274; x=1709541074; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TfCEbsiS180Pzdnz3BmbeixICS+mxWP3WbokAEMsGb4=; b=vkb5AzNZV58X542Q9+maR6QwyCyJp1bEeg4XgORJmRi/LC420i0LHETRkMiwn9xjFa QYdC0ukQ6fbpyfB3doG8kfGdGpXIL8ZTqG7nKAM11o/db7Sr6C9qwsywP0G40f/HDPFQ 0jRhTvVL1FdNcju+vU1xJ1v3fv+6GzAChWQw1MAjw5706TL0sy9aluQ+yH54+eOiLoeg cwEFL95bZ56oDR+dQ/0whcGLs+YdR0pX6SHax62KVHyM6sQdXUR2stTxmg4EhnuADzM3 4bxzfdL6zkrGo6gvaTH4hOdbwcFc7Ih1zIUg6xnmO2V93DN2rtaPtSwjm8ls5UtJVK+M /Orw== X-Forwarded-Encrypted: i=1; AJvYcCX8LxoQbw5WKUx+sddN2+lXeyZk8B/jgaLN0/Gw5yxn21Je4nePKkWHjZUSrwEALLkeqlDDCY+QKrve5P5mJBQeHxZTg8RC0WaxnfgA X-Gm-Message-State: AOJu0Yz/O/KgB/5H6SQtdB4ndLE6RV8AIcZmk31QqcSpiCO0n3ik4cpO ueQ2xE6IOmobl8ySc+u3SLoG1lL8IpB5d3AgnohS1/H64VfnpVuMS0iE3MSA3y1ctkO26NVrX25 M3Ad7Z7te+D9rvS3hL0TEIkiWJexAQ+2ZcnA9U190DqSP1rQFm7jByMjpTlG1Hw== X-Received: by 2002:a17:906:a44d:b0:a3d:9a28:52e6 with SMTP id cb13-20020a170906a44d00b00a3d9a2852e6mr4010968ejb.50.1708936274467; Mon, 26 Feb 2024 00:31:14 -0800 (PST) X-Received: by 2002:a17:906:a44d:b0:a3d:9a28:52e6 with SMTP id cb13-20020a170906a44d00b00a3d9a2852e6mr4010953ejb.50.1708936274154; Mon, 26 Feb 2024 00:31:14 -0800 (PST) Received: from sgarzare-redhat (host-87-11-6-148.retail.telecomitalia.it. [87.11.6.148]) by smtp.gmail.com with ESMTPSA id vk3-20020a170907cbc300b00a42fe08081fsm1874734ejc.47.2024.02.26.00.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 00:31:13 -0800 (PST) Date: Mon, 26 Feb 2024 09:31:11 +0100 From: Stefano Garzarella To: Breno Leitao Cc: kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org, "open list:VM SOCKETS (AF_VSOCK)" Subject: Re: [PATCH net-next 2/2] net/vsockmon: Do not set zeroed statistics Message-ID: References: <20240223115839.3572852-1-leitao@debian.org> <20240223115839.3572852-2-leitao@debian.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; format=flowed Content-Disposition: inline In-Reply-To: <20240223115839.3572852-2-leitao@debian.org> On Fri, Feb 23, 2024 at 03:58:38AM -0800, Breno Leitao wrote: >Do not set rtnl_link_stats64 fields to zero, since they are zeroed >before ops->ndo_get_stats64 is called in core dev_get_stats() function. > >Signed-off-by: Breno Leitao >--- > drivers/net/vsockmon.c | 3 --- > 1 file changed, 3 deletions(-) Reviewed-by: Stefano Garzarella > >diff --git a/drivers/net/vsockmon.c b/drivers/net/vsockmon.c >index a0b4dca36baf..a1ba5169ed5d 100644 >--- a/drivers/net/vsockmon.c >+++ b/drivers/net/vsockmon.c >@@ -46,9 +46,6 @@ static void > vsockmon_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats) > { > dev_lstats_read(dev, &stats->rx_packets, &stats->rx_bytes); >- >- stats->tx_packets = 0; >- stats->tx_bytes = 0; > } > > static int vsockmon_is_valid_mtu(int new_mtu) >-- >2.39.3 >