Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1775647imm; Wed, 16 May 2018 02:55:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoNdQK9+c/Og5zHMFpMSiFueW/lYNigkpHJ18JK1793EjT3AKouGH03l/V9gs2utU3rxPSw X-Received: by 2002:a62:49d7:: with SMTP id r84-v6mr219482pfi.146.1526464527793; Wed, 16 May 2018 02:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526464527; cv=none; d=google.com; s=arc-20160816; b=NUE2nP57kBSnK3WnejKEtmv8fz5axwDlES02H1rk59SRovLFxESos2fCw354NqWryP XdmTdVaHvfPnQ+ysa/eP7ZZhMLx5xlnbVtYbhPlEuCgd6Is7hKYLJyFvTypJ/tktzwpD HJJIyCV/rLvk84jmxA7akGnrc1uav0n+Kj0GpE6sQBzlXh4LjzwLLIFbiywG24p60iJA q2Xz+kFqOukrkr7/mZCwUSsACn9U1ogM8Sh5WMeB2lH/f2Qthv3F1PQ/c7CG373bImaU cqOCgiVeLkPLungKiL4aLX5m6QTsqU5NeC9PtdM10YlsaVgrsqEyPXBt3Z/fIPw402IB hUhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=I+sLJr+O1Dlveb3XDDor+ZFstRY0veAH9T/7FSE75Pk=; b=CtbTNktudzX/TyaQRviSjC8Bk33PfgrEV28snH4o0Miim3/eTjtqLX3CC5Oy4a4U1A tAOmAA01bb7Vfw7H+YbAjtD0qGwQIk34oPojVK/cm3OBwsT7x1lEP/yQD+QnWC9T9hpM 4A72gg8N/xGYxT/+3921F8JWGcumU3vFqG3VQMD1OMlLpXmMD//vRHYiJL3TwA62JVk3 jfsxkKNreFkiscV+ZnhpRDsU6p7vZ9IXkXVUaMObLdFUV6QwCV9C5D1TjLcgoUqy6B2S RpbFMSShpPO/6aI4Wp5B+yo49/+1xPiibbouSsiNKCKwftvP0DAhxLmc3zEz7Ooq6coQ eIZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=lTt8S+o0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k26-v6si1753316pgf.522.2018.05.16.02.55.13; Wed, 16 May 2018 02:55:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=lTt8S+o0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753226AbeEPJyW (ORCPT + 99 others); Wed, 16 May 2018 05:54:22 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:34414 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752956AbeEPJyS (ORCPT ); Wed, 16 May 2018 05:54:18 -0400 Received: by mail-wr0-f195.google.com with SMTP id p18-v6so234311wrm.1 for ; Wed, 16 May 2018 02:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=I+sLJr+O1Dlveb3XDDor+ZFstRY0veAH9T/7FSE75Pk=; b=lTt8S+o0q+tx0qW2G57rs90ar1MB26jKQGLRoGqTG4HCZ9sXITAPCzLqqSvJo+uEIF hQkvfgAAgwNhDRK4AzYRwByM9eIaWWfXvWWpB3u/2+gwkfzOyFnCsiuPT+2o8RLj0mFa BVdhv1BXOFXHMEUGiT7X4TH+/Eulxwxaewm9p8QZ8OhwJrm2NND+0bNhDLmpJAMk9zKD 8y4eiK9Hln4NLa5Bb7WD/V/QIwfwjWjYcOIeF2OvN3Ryav0YtkyAUGRj5RzAQCBtZOCo s6s7SZB+hi51sMj4CC3rl5RNYUGRkoHvOFRXmVrJ+mQd8DgxuYoXXfbVakguAhrVr9lZ grSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=I+sLJr+O1Dlveb3XDDor+ZFstRY0veAH9T/7FSE75Pk=; b=Kuk1MraRuCnZR8f+rL/JRhcfWk3qphyEEE732ubEbzclfOE8GimZDUz0hgYJxBfKan 3RacC7I5gFpJwoZvN0X1bwehOSc329sr3HLzL+9zvgSPWPpyovk/Gio7xBF8iXzQvMri iN2T41q291lTp/8bzhm64/JP4y0Tk8UAfieiHF3B+JcrLut0PfgKTBGRM100zhC5nEOI HRbwHdlQ8kYhYY0ekLoefx5hl089UsMvxwq9WJiWPvNGt0Ae03/fF6RLur/bzEunkFt3 aNYxnzT5U3+o2hgsbx3UIbVIgT4wEqFp/qyAOKqcgiAqIdzPQPw59sXx/G0BL4AGnfO5 9pCQ== X-Gm-Message-State: ALKqPwdEQ/4j/xCKSRDzyPnrHL1VOwfMbX8p3GVfS1E3HCu+6K5QgY/1 PFBieiK9SQMyCiU5QLIYVzBmUQ== X-Received: by 2002:adf:b859:: with SMTP id u25-v6mr197486wrf.162.1526464457175; Wed, 16 May 2018 02:54:17 -0700 (PDT) Received: from localhost (ip-94-113-127-8.net.upcbroadband.cz. [94.113.127.8]) by smtp.gmail.com with ESMTPSA id j8-v6sm4800237wra.58.2018.05.16.02.54.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 02:54:16 -0700 (PDT) Date: Wed, 16 May 2018 11:54:16 +0200 From: Jiri Pirko To: Vlad Buslov Cc: netdev@vger.kernel.org, davem@davemloft.net, jhs@mojatatu.com, xiyou.wangcong@gmail.com, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, ast@kernel.org, daniel@iogearbox.net, edumazet@google.com, keescook@chromium.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, kliteyn@mellanox.com Subject: Re: [PATCH 11/14] net: core: add new/replace rate estimator lock parameter Message-ID: <20180516095416.GH1972@nanopsycho> References: <1526308035-12484-1-git-send-email-vladbu@mellanox.com> <1526308035-12484-12-git-send-email-vladbu@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526308035-12484-12-git-send-email-vladbu@mellanox.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, May 14, 2018 at 04:27:12PM CEST, vladbu@mellanox.com wrote: >Extend rate estimator new and replace APIs with additional spinlock >parameter used by lockless actions to protect rate_est pointer from >concurrent modification. > >Signed-off-by: Vlad Buslov [...] > /** > * gen_new_estimator - create a new rate estimator > * @bstats: basic statistics > * @cpu_bstats: bstats per cpu > * @rate_est: rate estimator statistics >+ * @rate_est_lock: rate_est lock (might be NULL) I cannot find a place you actually use this new arg in this patchset. Did I miss it? > * @stats_lock: statistics lock > * @running: qdisc running seqcount > * @opt: rate estimator configuration TLV [...]