Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1851002lqg; Mon, 4 Mar 2024 06:00:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRe3aSyP5qkaudvGKwxHMnX9DBrj+Po9TrpqPpk6TaSU7bVOCF+B/PCyFWSjtvQqChdQTnvR9rgSFfLtebUJmPGBYotf16siLAUXbOFA== X-Google-Smtp-Source: AGHT+IFwLdsBt2y4yvFg8HE5kgL3uUgTXlX2XDrYwdOB3625te7Utt7iHvXjN3PgFX7ic60XfBbN X-Received: by 2002:a17:902:d2c9:b0:1dc:df24:e321 with SMTP id n9-20020a170902d2c900b001dcdf24e321mr11172722plc.6.1709560825461; Mon, 04 Mar 2024 06:00:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709560825; cv=pass; d=google.com; s=arc-20160816; b=Z92PYyawVBFDpMA9dIcofWdTcCog452dH2sXFD0N9YitKLWA7fOopaMtGoSgjOlNRg Q7sP97Bs3qAm265u+ydkKAwR2dqz7LXeMf62uIANKu/FvaE0WsIP+VYfhtY3NqNI6VSa C3Tii7I9fYss1pGDH/Ztxv0zqtezbwG7b8DDQdrcSetFW+CUNgnQcDsp/iZD+VPtaroK r0RM7e0HIDADbDhUuNNG+LdkvXrLHuvaBmywnTtT4hEuCKnxbTIVbcmPASzW0WpQbLR9 WrLAaZf7cMlpvnSEputWtnX4Bfo2JnHQYSkGHhWh/PjVG2m7umQG0wlTqsld7jmr9Zjo fDPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=/9y+afRjJ9gLFaGiuSXGFB7Y07dNe/W9ADUFEmL+ed8=; fh=rw8SKIxIMwaFCjnHvRZZHxxRqI784jcsNVRkbjQg1T0=; b=SwXdlAq8c0vFB3e4o4kGyNE5yWJyt4US8MG6lc7ZMqEadhL/gpF6cPZGGbbLsRtfwj SY1mJEjlFU0Uc6abWyxXMjbsbWLdXkIDV6XISL3ezAaCcWJBRnfd0MpwXcrXcxd6n47H 8K2Fup7QpaMm0w1CscgtpiKerPAolBcQ+b5GJ3HBfyvkhV2egYkOud9AF8kHvWGIXQkp b+9UAI1n4yqFki7mZkP/ysaLQQuo7ZdFhPMAUQT+BlTb6BO0oQKu6gps2uDBJdp+5GXj mS0hXqTkg0GGwXx0XVFWbDXmtdVLDofYrWap5avBiWRaHCpoQoE5i04oZFuHbvUA4yfh 6F9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=bCWJcTC+; arc=pass (i=1 spf=pass spfdomain=iogearbox.net dkim=pass dkdomain=iogearbox.net dmarc=pass fromdomain=iogearbox.net); spf=pass (google.com: domain of linux-kernel+bounces-90693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j13-20020a170903028d00b001dccb09f2e3si8604687plr.591.2024.03.04.06.00.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 06:00:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90693-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=@iogearbox.net header.s=default2302 header.b=bCWJcTC+; arc=pass (i=1 spf=pass spfdomain=iogearbox.net dkim=pass dkdomain=iogearbox.net dmarc=pass fromdomain=iogearbox.net); spf=pass (google.com: domain of linux-kernel+bounces-90693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net 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 17AF2285D79 for ; Mon, 4 Mar 2024 13:57:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 842C13F8F4; Mon, 4 Mar 2024 13:57:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iogearbox.net header.i=@iogearbox.net header.b="bCWJcTC+" Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) (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 792A93BB3A; Mon, 4 Mar 2024 13:57:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.133.104.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709560645; cv=none; b=ht/41+m9KZoBbHnXzVDspeOMOh+PrwM9GE3eafu0utGoQgzN65lNtQupQCrkU8jjdQk1fIJe9yLe/db90micw8kgbHq5A4UNZmt1fcKo417eGkSSwjqhKfktTUcgaUluhjYzoG84W2bv/PtNkNen/C9npst1SmJRYcHFqOAcJXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709560645; c=relaxed/simple; bh=t4HFn7eIQvSgZ5wRMktcT8dDyGdFxF5R14Sx2I7vfPA=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=HInLCEsyXSXX4Dyr4DkWnRPjzNIxJ5vj5HrnJeSg6H6ff2jVac6yfYYA5x41whZsd8pEuqS2VCwzyxlntD5SDOUO+zpkerkBtVrJ5DXcD3B/qFfQQKi0nmozk1AbuzuIXXDTJ0UEzFbCvwvTXPcKYtWiN6XPy5y0tYtvpIWK4Xg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=iogearbox.net; spf=pass smtp.mailfrom=iogearbox.net; dkim=pass (2048-bit key) header.d=iogearbox.net header.i=@iogearbox.net header.b=bCWJcTC+; arc=none smtp.client-ip=213.133.104.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=iogearbox.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iogearbox.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/9y+afRjJ9gLFaGiuSXGFB7Y07dNe/W9ADUFEmL+ed8=; b=bCWJcTC+qhzGEcw0AlIPOLXZMv kB99hkpaGpzUUsbTOkEnCLqlnPQxfI8zpFRheZLYeATnoe6WspE6EORRspXR0jKLkhwR7qR8asYEu /NYxVOPmYlHXxaP952ZNhI5wV+7As+uLHXPPF45xksU4HyQE0+GAmr/Lzj7/KRfcKJMAn8pilpnaz a5m8Y37DS84apb0+4Z2WwTJ5sFQUcfpYfpS0hSSwgF4ZrRb5Q9hhYCGaT6IskNyM6cEwy9cweuuv2 xuEtvH+KqwwfDn7x0ry5aoQFBY14fRKLmlBi/bYSf31Z6+0bN3EXH1TeIkWMytBVJAwLyNZchluvL b932B+SQ==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rh8od-0005eq-A2; Mon, 04 Mar 2024 14:57:15 +0100 Received: from [178.197.248.27] (helo=linux.home) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rh8oc-0003y7-Jh; Mon, 04 Mar 2024 14:57:14 +0100 Subject: Re: [PATCH net-next v2] net/nlmon: Cancel setting the fields of statistics to zero. To: Jason Xing , yuanli fu Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, fuyuanli@didiglobal.com References: <20240303114139.GA11018@didi-ThinkCentre-M920t-N000> From: Daniel Borkmann Message-ID: Date: Mon, 4 Mar 2024 14:57:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.10/27204/Mon Mar 4 10:25:09 2024) On 3/4/24 2:25 PM, Jason Xing wrote: > On Mon, Mar 4, 2024 at 7:14 PM yuanli fu wrote: >> Jason Xing 于2024年3月4日周一 15:05写道: >>> On Sun, Mar 3, 2024 at 7:43 PM fuyuanli wrote: >>>> >>>> Since fields of rtnl_link_stats64 have been set to zero in the previous >>>> dev_get_stats function, there is no need to set them again in the >>>> ndo_get_stats64 function. >>>> >>>> Signed-off-by: fuyuanli >>>> Link: https://lore.kernel.org/netdev/20240302105224.GA7223@didi-ThinkCentre-M920t-N000/ >>> >>> Suggested-by: Jason Xing >>> See https://lore.kernel.org/all/CAL+tcoA=FVBJi2eJgAELhWG_f+N-kwmrHc+XRfKXhYk2RJcPKg@mail.gmail.com/ >> OK, I will submit a v3 patch which updating commit message, thanks. > > I don't think you need to send a new version of the patch unless > someone points out other changes that should be made. I think this patch is not needed anymore, see net-next : 4f41ce81a919 ("net: nlmon: Remove init and uninit functions") 26b5df99bf60 ("net: nlmon: Simplify nlmon_get_stats64") Thanks, Daniel