Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp974174ybe; Mon, 2 Sep 2019 12:09:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxF9alV6kEWGaDF5x/fV9fBcDecW0oMcIyDW8nsHp5EcrkyfP5N238ZRLDDPXpO7cJvSOID X-Received: by 2002:aa7:8a4e:: with SMTP id n14mr9862576pfa.170.1567451356129; Mon, 02 Sep 2019 12:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567451356; cv=none; d=google.com; s=arc-20160816; b=XnSU7IInHNbfUEfc3yAVGOtSBQ31XHvHmO/Pg+8lXUZiqI+ZzsMb0HmyetCuUXVRhA YJ94sPkN9TAB0T03oPylj3etCB+vWWxIHC3HgX7MmzkBl1m8YZn4nIDqxN4WgT7Xymaw PdVfXupVxpyBBx5zZz+U1CtyAwJogseXTsw+w9ig5vHuk9Y3ZbLPKA+nje/ioyM2TRsF 2GsTQtdJyz5i94qzy8kOwBFNvtoPVXxaJGn/8ksumsjRKTBC5xh4P7Fpi9fToK1vXk4F exLYDlMBFds91GE73R86EwVeWW1H9DEOGSAoKMhUqacyEv0V5/lxaMv1PRZEvLiO0+zU rwXA== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Q755xHUojl0ED1ljHVU8UBf/dIIO+O7MGagAxhCKdaY=; b=Hda5znl+GQsZLINP0Z33HBMC8uE2v34dhmTcUbQnt1JhAjLp8tS4EnR9X4OTe6CVXS /1efUA5+zu9I0VBvH4OXnoYwIN+B9QrXOJXRGlxxzswmiVExdE7n4e5laTmSHUdq0EUO vwFMYuBdlnVk25vxu4x2W+7mp3o1/EhBPojz7WXiAgZQrDaaA13S0C/QaGabty2KO8Cj DWjTHjaZwgKJat7FFJza50NyajBGsAOfpos1oT4H3YmDmvjnyyAQ0oM1O+5JFKbZ9Lxa 99XF8d+s++XWslNkoEJsp1Bv+RF9q0v4f1DGSH78mB8lCLJke2PE1cDPMxdgX/AzLB+q l7tQ== ARC-Authentication-Results: i=1; mx.google.com; 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 15si12485445pga.575.2019.09.02.12.09.00; Mon, 02 Sep 2019 12:09:16 -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; 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 S1727045AbfIBTIL (ORCPT + 99 others); Mon, 2 Sep 2019 15:08:11 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:35846 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbfIBTIL (ORCPT ); Mon, 2 Sep 2019 15:08:11 -0400 Received: from localhost (unknown [63.64.162.234]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 256A415404E44; Mon, 2 Sep 2019 12:08:10 -0700 (PDT) Date: Mon, 02 Sep 2019 12:08:09 -0700 (PDT) Message-Id: <20190902.120809.714564690159194501.davem@davemloft.net> To: mcroce@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, maxime.chevallier@bootlin.com, mw@semihalf.com, antoine.tenart@bootlin.com, stefanc@marvell.com, nadavh@marvell.com, lorenzo@kernel.org Subject: Re: [PATCH net-next 0/2] mvpp2: per-cpu buffers From: David Miller In-Reply-To: <20190902102137.841-1-mcroce@redhat.com> References: <20190902102137.841-1-mcroce@redhat.com> X-Mailer: Mew version 6.8 on Emacs 26.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 02 Sep 2019 12:08:10 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matteo Croce Date: Mon, 2 Sep 2019 12:21:35 +0200 > This patchset workarounds an PP2 HW limitation which prevents to use > per-cpu rx buffers. > The first patch is just a refactor to prepare for the second one. > The second one allocates percpu buffers if the following conditions are met: > - CPU number is less or equal 4 > - no port is using jumbo frames > > If the following conditions are not met at load time, of jumbo frame is enabled > later on, the shared allocation is reverted. Series applied to net-next.