Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1046963pxb; Fri, 13 Nov 2020 02:49:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF9DS63P/hisVnmDNCXUTJBPrewG6t+fiBBTYBp+1TzipgIA2MUK6x6eHR8s9I9RRd1ruI X-Received: by 2002:a50:d757:: with SMTP id i23mr1821590edj.358.1605264566360; Fri, 13 Nov 2020 02:49:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605264566; cv=none; d=google.com; s=arc-20160816; b=zM3NBjzIgwS8UzTmvLb7M6kKhJ3QWpi8aocBV6dxLKXy9RZndzMxH0b0D26eqkA0PN P21z7IhHLJsGGIFr9W78CfD8lBmkt2sScdrPQT268PZPpyNdR/ndQNnIEv2Q6/4JPaPV Sif/gPT/rvDmiaDe1fu0C8kxJSnYcmf/leZ2BqoL2ZXORyfP9Yomse52tOr8Bk7d8NSB fcgOWRh+Pj9J/+mVE10DcEyX5KP35t+Ge8qGHxdn5fOvceQL8CpRZHa1MYx2NJbQyNIE n5gR4iDqRNg6PaCigCS6psh/E4PGKJFh6chQtAXNN/QithYXcbuDTn9ZQQCZlCc+6E28 /wYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=4t6Go8s2wuljbP+CKsMvEmJeK2UV1YCceUwBdC4gPWQ=; b=cIy5uBw4gs/Qu8uUJntGPjlMMkWqiQ8Zo9s0PvZoT7QnNUeWvPlu6CTkgNF3vrxlNM xN8zW6TxidKEYubZgAIB+JkuVVAd2nKsnh9Zzzicl4B3m4UKSlBLpdga6KxvdmPUTyqr 9DtEuMahkso4H6yjEfM1NdLiGzmvYGO3XKhSzzyEbdmtVgrEwmB0OqcKHm/llI8VPVP6 g4kyodFfR2z3Sq6LOFtI8SMxwMzDgjJPobUR4pHvT1Al1FLdppZmoB7ZLX0fy06Xh95U bMxTY35g1711W16j0TmehxMtjpMcAGwD8Z8zlusgxD0Z9r2A1RBoOfrEtDyPHesmZG8D AQSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PrlqCL+y; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z34si6645432ede.351.2020.11.13.02.49.04; Fri, 13 Nov 2020 02:49:26 -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=@gmail.com header.s=20161025 header.b=PrlqCL+y; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726432AbgKMKrX (ORCPT + 99 others); Fri, 13 Nov 2020 05:47:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726184AbgKMKrP (ORCPT ); Fri, 13 Nov 2020 05:47:15 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1603C0613D6; Fri, 13 Nov 2020 02:47:14 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id j7so9275115wrp.3; Fri, 13 Nov 2020 02:47:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=4t6Go8s2wuljbP+CKsMvEmJeK2UV1YCceUwBdC4gPWQ=; b=PrlqCL+y+Nimhok7ieyk2TVyXiDQx4yB0yRW8G1lamoNMJe8cSroQcFYXraf2MYCm2 Jc80fjDkgy7ZEBYmLK5rOpHb3s2w17ZeIKQtRTsqiDeQgplrNOxN40keYNIpXInzzoou Kc0LUE78hrq3PV2Y/yB40Ly45utldM7GHf5JCOO9JmYWlh3ZTJ3XUYJYHluOiOMnmZnJ tXAGDyvNjcCPSWAcQMVcqL71G7ajlOA2wucAkaCTfnQRGzSn7NVOK1U1KtIueR8P2X0K 13/KS6twTNx0u5M3v7Mn0GQbAN5fmSGgC+Xgh0KocPXISixJMvh1JgmqJTZ6Mqo8tv6A KtaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=4t6Go8s2wuljbP+CKsMvEmJeK2UV1YCceUwBdC4gPWQ=; b=Wfq0oU2dPVkRZOKLsMoqFg2cmQhUw94rHw/mY0Q25uShfsyQFaQ33mNuhuckCMpPFU 8CHLN5km2qB/8oqjtQhyBXzmZA2tPA8MOHd4QPAHgjrIgK7ZNKVEuB6VoNpa/Fsraai2 a/kgxmCWUN1lk7YZHYKDX2M+Jl2hOm9BsHTub3CHcCfWjKIhZ9yceD2MVjYSxiraNFSd jUSOtseGqdhpym0ZRF4wqO9LCRIIHPGq0lTbM786kNpiwP1dp7nwzc0U9LlxvWesQFj5 xH6FyNiqMaqCAMCFhkq6PG0Znjg88sszzeVRU+7Q6NWe2lRDcZ26dNRiN5G6Fb/A5HJV +upg== X-Gm-Message-State: AOAM532rrerlgtO9Uwg7Lm3YE+PFNT1JH6Lu5uvPAs2bdtGSNXmcMjNj AKCTXHxTRL9jBw4XBP6t116b3zBvQxkZrw== X-Received: by 2002:adf:9104:: with SMTP id j4mr2871481wrj.198.1605264433404; Fri, 13 Nov 2020 02:47:13 -0800 (PST) Received: from ?IPv6:2003:ea:8f23:2800:e113:5d8d:7b96:ca98? (p200300ea8f232800e1135d8d7b96ca98.dip0.t-ipconnect.de. [2003:ea:8f23:2800:e113:5d8d:7b96:ca98]) by smtp.googlemail.com with ESMTPSA id i5sm11296099wrw.45.2020.11.13.02.47.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Nov 2020 02:47:12 -0800 (PST) Subject: Re: [PATCH v2 2/3] net: openvswitch: use core API to update/provide stats To: Lev Stipakov , Pravin B Shelar , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, dev@openvswitch.org, linux-kernel@vger.kernel.org Cc: Lev Stipakov References: <598c779c-fb0b-a9a6-43be-3a7cd5b38946@gmail.com> <20201113090240.116518-1-lev@openvpn.net> From: Heiner Kallweit Message-ID: Date: Fri, 13 Nov 2020 11:46:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <20201113090240.116518-1-lev@openvpn.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 13.11.2020 um 10:02 schrieb Lev Stipakov: > 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 internal_get_stats() and replace it > with dev_get_tstats64(). > > Signed-off-by: Lev Stipakov > --- > > v2: > - do not delete len variable and add comment why > - replace internal_get_stats() vs dev_get_tstats64() > Reviewed-by: Heiner Kallweit