Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3653986imu; Mon, 28 Jan 2019 08:29:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN6FdfNopQQZMLH+6lVS+j+5Hn+Xm2JQNH8vc7FLT2kbyr0vUKaoHxc3aSQQ+vY2ah1ZH4ig X-Received: by 2002:a63:580a:: with SMTP id m10mr20102287pgb.332.1548692989359; Mon, 28 Jan 2019 08:29:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548692989; cv=none; d=google.com; s=arc-20160816; b=xVs1VSGRb+27WimqHgrwmuXQcTjAzcaFXLchWkjwKI0n8AzXfsllFpstIHnbpzDUG+ NA5+dyptpZqBBvYLGod6jGdlsdHigyfePMSPZsj8Yrzo0LapgzD0AMZ2OGmbs9zOIaBM Ej8QI+BdmQqUWzDXov6ztGVIjXRYLoDsAco4xjV+X6nLKRzYBisMgYN3kfbPasQXq2Rr jcN7UzagJKbxHkIrv63FKnac9gVlNrpILuoi6v8lVQobt2ZeHwUt4FVJHLwp1VU5PgQO bXvE8BBrKld1S8ix3FBy+olW88yF5ezYfeF7E8W/8UM0B7Qtud2dSz9675F5QVApvzmj Tn1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=j+8H9loR0eGaVhsFlffHo/M3oOIvcygakltP7+fNtm4=; b=g1A/0kFXQ8wPvc8yZ6Sh8BQKqp6i74JaAlkESYgL0ytIZ6enVemvI1p153z31Wg/qv oaE6jAGYOY4E9oNb5XlcWk710C3cB9raIecIEP37XWhjPGfjJXSFb1A2sAllfTXufXJg vnHGR896kzd7HbpoTsNNDu44UJpd83zgdyv05sOw7jsTf9b0RA2xYB+GWMe+tYg1Mn6x 1NzOn+gfwU8pGI7x9ecvnE5JXdQhxFP9ImVozZT6N7T/zhPCdlFkhCkcRpPQKkjwX1CS dgAMgclue0Tg71zmHt2jFfi/yXTY27CcJ8lCaJxBHRMCLiz6HtyiZLs/Ao3kU2qnck7I DD5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=NxxCMCTJ; 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 w24si20554028plp.304.2019.01.28.08.29.33; Mon, 28 Jan 2019 08:29:49 -0800 (PST) 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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=NxxCMCTJ; 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 S2389979AbfA1Q2l (ORCPT + 99 others); Mon, 28 Jan 2019 11:28:41 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39177 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728613AbfA1Q2c (ORCPT ); Mon, 28 Jan 2019 11:28:32 -0500 Received: by mail-pg1-f195.google.com with SMTP id w6so7417870pgl.6 for ; Mon, 28 Jan 2019 08:28:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=j+8H9loR0eGaVhsFlffHo/M3oOIvcygakltP7+fNtm4=; b=NxxCMCTJz7kj7nvzHz1uv4EZGlN2kxm+FFoSZC7ki/sxvsmHiPjmzf/ffTrJBu2QsM xzKJpbIK/ahpHwL8MmWXEwG9h6LBCeL9DvvFMsmclK6sfXPyKTdrrTYw5yfTFT8jiHpH 26UPukngqxKnELlkOd4yryVZ11xWmAlGkM3jTSA+XpTAyNh1kWhCZSRNOiyrjDU67h56 4AwVzEt8YElV9TD5QTCH/rzUXlQup0lkZJXv17MAZa7Xhz4AEgSUwsn9g4Uxtp0BZ+aZ DHBM4Wf1mScj1hNdhsJzW0m76ULh7xXAz0e+cj3vZPKGMH2LQFtRgMl7s14Xy3AcwG2g 8zvg== 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:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=j+8H9loR0eGaVhsFlffHo/M3oOIvcygakltP7+fNtm4=; b=oRMrNR1jDUdBxSyRJ28W2vqoyB2d2qOxbv6ROprb80Wl2dVFE1kDVfLBdafurTxSnV NjPxgLG5YkzBAH9Hyip33IIodC47lwB7nSzEEhBFteg7lK6dvHmKMcTt6HIURp8Apa/m 7Bf8SHg9wgwDkIh1C1TcFsujU+QPm2VKI8jgiMA1sVz60RUQFuXqRs1RR+ab1D4CjPNW tJhUqoGdnVX5nks+HvEIxHJrGraksNYP/b5tYdecOsy53umyk+RZxE5JFKjIe3YOlTJo hyUPmv1Y/q0HgzY8tmuQwF8hUxYPSqxSyU3HXQ11TIKZNH9gatCbEY7CHYLvJNAMRTtd Lo/Q== X-Gm-Message-State: AJcUukccIlLW9g1eDxhLGA1JSkhhjkEY+4PGOoPGA0S/9FbbZ4cA5vRA XrLPT5abuOVRQtG/vSc+8OfVlA== X-Received: by 2002:a62:29c3:: with SMTP id p186mr22918293pfp.117.1548692911945; Mon, 28 Jan 2019 08:28:31 -0800 (PST) Received: from cakuba.hsd1.ca.comcast.net ([2601:646:8e00:727e::2]) by smtp.gmail.com with ESMTPSA id p24sm50443786pfk.155.2019.01.28.08.28.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 08:28:31 -0800 (PST) Date: Mon, 28 Jan 2019 08:28:25 -0800 From: Jakub Kicinski To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "David S . Miller" , oss-drivers@netronome.com, netdev@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.19 094/258] nfp: add locking around representor changes Message-ID: <20190128082825.4c8394a6@cakuba.hsd1.ca.comcast.net> In-Reply-To: <20190128155924.51521-94-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> <20190128155924.51521-94-sashal@kernel.org> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Jan 2019 10:56:40 -0500, Sasha Levin wrote: > From: Jakub Kicinski > > [ Upstream commit 71844fac1ed459024dd2a448d63d5b28b8c87daa ] > > Up until now we never needed to keep a networking locks around > representors accesses, we only accessed them when device was > reconfigured (under nfp pf->lock) or on fast path (under RCU). > Now we want to be able to iterate over all representors during > notifications, so make sure representor assignment is done > under RTNL lock. > > Signed-off-by: Jakub Kicinski > Reviewed-by: John Hurley > Signed-off-by: David S. Miller > Signed-off-by: Sasha Levin Hi Sasha! There is no need for backporting this unless 51a6588e8c08 ("nfp: add offloads on representors") is also back ported (which is a feature).