Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3268585imm; Fri, 10 Aug 2018 06:38:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwgOof0EEVNvKfZ/yXNipiCBwwpbgDonWw75pXcN2gS4H6ffMelVuU2BFXkUL9eFtYV4U0a X-Received: by 2002:a65:4888:: with SMTP id n8-v6mr6615309pgs.149.1533908282836; Fri, 10 Aug 2018 06:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533908282; cv=none; d=google.com; s=arc-20160816; b=uyKYKwkXktd/eEkZfzaZDrIT18KlRUNY9Rc8y8153SEGHcCFoZbvjtDj4pPLa/rV0l VDDXvFtUUjGsx28kbKTOTYSgkYVdmIOOmC7PVT+Fk0hHtprFhZWgpl1Lp+uGT+C6FpbS Z+vFa/5yhwk8S9Fwg7tT/PZFPzk/fbdWiFN9UbHXeWdGq2PrA9bcfArS/Uy2B9X1M6sD eIcXbvg1YMrvU/B/IgruSXINP92Wuy+7LJMPwShc58NatO2ctIAEkGQ8yQ6Ww6Bz0uqM yj0MzByR+PeP//7wl+1XOS5oEL/IWQV/Pi86LHJxiRauLczCV+7M+gNtBL3mDM/xpy19 7+PA== 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=BCEE/5CVfdoojEUAQozl0oARt8CCxX6AVEL/4iKUJes=; b=yAZKjp3ljeYucKXI5swfvhJd8ZAbKGNhNfbA08aElLpe+Ilz3TOjy/EWJAZ5GxSwUX nIB+NgNy4vTIgNYAWCKcXL9jt82xOSXFOoVuzxtQ77l9WJldSDbqgloRH0gZhAWh8idj C0I4pu9Q+TSbWt/XrLp2acLxH9iYI0W5AndZEIVOK/4MSZXNdpLSof6var1fxQKckh5o u27iJ+RcpgdKvpuc66azzxLY1csYHZDA0atRH5uZ+uhxqk0dx5iV419JQ+BX44Y1unSO S5dOGyeeIPBDYggK6YPiG6F4pXg5C8EyiMJPMSFZROHxK2wtf/aVLjjFJBsMfJJgmta/ 01hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RUS0Fb3L; 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 w5-v6si7532028ply.343.2018.08.10.06.37.47; Fri, 10 Aug 2018 06:38:02 -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=@lunn.ch header.s=20171124 header.b=RUS0Fb3L; 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 S1728353AbeHJQGe (ORCPT + 99 others); Fri, 10 Aug 2018 12:06:34 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:32802 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727534AbeHJQGe (ORCPT ); Fri, 10 Aug 2018 12:06:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=BCEE/5CVfdoojEUAQozl0oARt8CCxX6AVEL/4iKUJes=; b=RUS0Fb3LBp8cC/2nZPrxKzWn51dKIGmMbNLD+ANj7WcJk6qIc27fQiqRc162agBOrLpVDp2JAxjU1EdkO3uDG2RGPD8MCsirtzDbbb6OfaQaxYPo7orP5rPZ4nWfK/LDwjQ3NX1uXMLOn6y3FaJb2cbHZIcoJgQz+9mvQ9fKeVo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fo7ah-00033W-5C; Fri, 10 Aug 2018 15:36:31 +0200 Date: Fri, 10 Aug 2018 15:36:31 +0200 From: Andrew Lunn To: Jisheng Zhang Cc: Thomas Petazzoni , "David S. Miller" , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: mvneta: fix mvneta_config_rss on armada 3700 Message-ID: <20180810133631.GA11350@lunn.ch> References: <20180810113627.5dec5d40@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180810113627.5dec5d40@xhacker.debian> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 10, 2018 at 11:36:27AM +0800, Jisheng Zhang wrote: > The mvneta Ethernet driver is used on a few different Marvell SoCs. > Some SoCs have per cpu interrupts for Ethernet events, the driver uses > a per CPU napi structure for this case. Some SoCs such as armada 3700 > have a single interrupt for Ethernet events, the driver uses a global > napi structure for this case. > > Current mvneta_config_rss() always operates the per cpu napi structure. > Fix it by operating a global napi for "single interrupt" case, and per > cpu napi structure for remaining cases. > > Signed-off-by: Jisheng Zhang > Fixes: 2636ac3cc2b4 ("net: mvneta: Add network support for Armada 3700 SoC") Looks reasonable. Reviewed-by: Andrew Lunn Andrew