Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2185672pxb; Sat, 14 Nov 2020 17:11:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbvPCl7B/76SyGq4BsIAdCrMzgT+T/nqrkSQHD+tg830gEnd94iTFsKblQzr6aZ5I4x7/a X-Received: by 2002:a17:906:748b:: with SMTP id e11mr8573236ejl.513.1605402684105; Sat, 14 Nov 2020 17:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605402684; cv=none; d=google.com; s=arc-20160816; b=a5YZiERS1CHrSfnKComq+3gX981dr/VS/fAIuro0YqyAsdmy8LomC3mJut1lFmRtws MJ56UqFNE5Bn2OIQyCZpu924m4ljzlQd+WSahiqUzJV3D+K5XUGKg+FJ4Vr2bEZOZAYR fUxjINetcmjBys5SSajhTBhSbgOZM5gudRgqH4t3B4OeW8UItSR5wrva3NI3P8yjyEm9 jAMmWPBaWkP91/dUIBfq9WljZpu8cCHN5cYkhuk9PC8bi3sOZXdJ0ERx3CpPq+LVh8dW KaJF5Dgj6RNRv3v/Nux5CoTMp8UXQTxQIaY/jtD8PaVAq+mA0kYzuKllOzvncD/bEUzV jueA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=N8WpPTWLAJ+6eDLtBbJ7hrfRFFHUruAXS+OAdglcg4Y=; b=F5ynrrkCyZaQWhcPO1aGB6N2dhhk8S6rwWjpFjD71oOtW7t6m3Jkx3YvFuOHlDj0fM LY00rGpE1CeJrXwr2Lg5LtRdvFZSWNpeAIG/iwzgSqp6I50djLhOlfyoRIgRWbRov15A iTcLm3uMUBNXNTl20The2bjMW6R+lZ4P9bW+ilRjLrErVqQHQzl8lCG8a+HgfZnLMp2O fZtOFJuGLj9xpkU02XmBACxtSXLu9upznW1t5+oI7lhudpufEXBkbqtJe6WlC4Ldz4Ld Tf91UwLvPmcOmCYnbmNSMFsekBdA1U+AX4ISJmP4t5hx7NUaP5m6SYaMGoby91HSkq+z sEFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Cv1/90Bq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si9434132edn.31.2020.11.14.17.10.59; Sat, 14 Nov 2020 17:11:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Cv1/90Bq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726456AbgKOBDM (ORCPT + 99 others); Sat, 14 Nov 2020 20:03:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:42978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbgKOBDM (ORCPT ); Sat, 14 Nov 2020 20:03:12 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (c-67-180-217-166.hsd1.ca.comcast.net [67.180.217.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 546B524137; Sun, 15 Nov 2020 01:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605402191; bh=FU5CmdD0GZEvL9KLF89pYyDzIii67JkKi/p0LI6XAvg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Cv1/90BqGD0n1mIGO4YQbq5wCzO6xjJHHqza1rKt025/nEOe0txjhDK+4CD4ql+Q/ BFPIQUFA7FFWFDU+vOcgAQw3ENc/zhoLoUEzhblUsVpXfb6pM81i5iCQRsQNiJ1cz6 uzSPzBHji+XJcPTRQs/xp7OzF7A80ACJF9RiXnzA= Date: Sat, 14 Nov 2020 17:03:10 -0800 From: Jakub Kicinski To: Lev Stipakov Cc: Steffen Klassert , Herbert Xu , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Heiner Kallweit , Lev Stipakov Subject: Re: [PATCH v3] net: xfrm: use core API for updating/providing stats Message-ID: <20201114170310.39e47f8b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201113215939.147007-1-lev@openvpn.net> References: <20201113215939.147007-1-lev@openvpn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Nov 2020 23:59:40 +0200 Lev Stipakov wrote: > Commit d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") has added > function "dev_sw_netstats_tx_add()" to update net device per-cpu TX > stats. > > Use this function instead of own code. > > While on it, remove xfrmi_get_stats64() and replace it with > dev_get_tstats64(). > > Signed-off-by: Lev Stipakov > Reviewed-by: Heiner Kallweit Since this is a follow up to Heiner's work I'll apply directly as well. Thanks!