Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2475838yba; Mon, 15 Apr 2019 12:25:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxm46CqtINMNVd1oe5kFeCZQrkVuzisRDF+b2Xvw+3OERBMLJtoQWEzHLjWH1fGskTZAOTw X-Received: by 2002:a63:dc50:: with SMTP id f16mr71615148pgj.396.1555356359844; Mon, 15 Apr 2019 12:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555356359; cv=none; d=google.com; s=arc-20160816; b=cc9nInb1wkZWAd8m5bvVph4sOeW8wx092178mzuVFk8tekj9TdfKTc5UCNcwG6znH1 rpOMyzv0zngO43cKJLV11MhrCzq8O3LqqLCYWb1fETGyUmznaUzxDxl/IYAX6/gVr+oV x4vJ1uDcF1oDYcQvKMIrqWCraIMkEpvdYf8ndWFdlsIBfh3OcftP7p+I6p/E6HQZN4rk NGxTTgx+OW3z49l/9iK+iCtpp6VJiedAfSeb/zWFDyl87ht7nezFDETRv2FBnVTqS+LO ZrWVUP2HxZVGe2xkLhxARPY0RWBHNoKCe7+N0N+tpoRjKwMx9l6QPZCH9JE4CnDMd9gP OHtQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xHohTfEC3lAXTliebEYF8H5JZm2DtPNntXzIsz8WENg=; b=a3lGyE85uA5szLbnPjefbB0bwRWmjT9KY9PzQoSe/yLHpj3vfcd7gbxNQM3zB2j32V bIqFS8v1BkU9ocmw4J/XjepHboesri2ap+Bb3CwgdJZvtaTruCZwjTLqPojEFKdpRqvF 2SHCB7+STVE4rl8pRCIU9g0b+yKa7x2gBHvAhDw+rvo7BgoIDDdwn3Mfl4L297QVcVan cPm3Odr3FMSRwfsOQ4+q8+bWyE9kQMOhf+WPA4K5Kr794MSgoqc+WioeLyNM0iqnn855 fBXIrD/eWoHzJmYZj11tlOBszl6hkKmpd+S5+e12j7tGHG3Drkf0wf8NmGffQac0wuDi BKSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tMkgkKzV; 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 b3si7048174plc.236.2019.04.15.12.25.43; Mon, 15 Apr 2019 12:25:59 -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=@kernel.org header.s=default header.b=tMkgkKzV; 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 S1729870AbfDOTGO (ORCPT + 99 others); Mon, 15 Apr 2019 15:06:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:40426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729421AbfDOTGK (ORCPT ); Mon, 15 Apr 2019 15:06:10 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 16CB9218A1; Mon, 15 Apr 2019 19:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355169; bh=6Stq7zh5KcZncVK4wLYTrk+yqjKLYG5z3PTPnfeGVOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tMkgkKzVdGugg2dsjY52j1fBGH2qSCg54gW2fviMyWXdeCXUpj9dwPz1KoUWSPw1b zP0o8k/9llwv21Y2Cty7GxDpzDyx554TPUxPXbWpBxPJzM+QkbJAjCKdMUuLui+45y wvgSbtlIU/07Q0jZO3fcy8B48ziKB9X5+hIh98YQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Artemy Kovalyov , Moni Shoua , Leon Romanovsky , Shalom Toledo , Or Gerlitz , Saeed Mahameed , Sasha Levin Subject: [PATCH 4.19 012/101] net/mlx5: Decrease default mr cache size Date: Mon, 15 Apr 2019 20:58:10 +0200 Message-Id: <20190415183741.017244743@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183740.341577907@linuxfoundation.org> References: <20190415183740.341577907@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit e8b26b2135dedc0284490bfeac06dfc4418d0105 ] Delete initialization of high order entries in mr cache to decrease initial memory footprint. When required, the administrator can populate the entries with memory keys via the /sys interface. This approach is very helpful to significantly reduce the per HW function memory footprint in virtualization environments such as SRIOV. Fixes: 9603b61de1ee ("mlx5: Move pci device handling from mlx5_ib to mlx5_core") Signed-off-by: Artemy Kovalyov Signed-off-by: Moni Shoua Signed-off-by: Leon Romanovsky Reported-by: Shalom Toledo Acked-by: Or Gerlitz Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- .../net/ethernet/mellanox/mlx5/core/main.c | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 563ce3fedab4..0e820cf92f8a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -162,26 +162,6 @@ static struct mlx5_profile profile[] = { .size = 8, .limit = 4 }, - .mr_cache[16] = { - .size = 8, - .limit = 4 - }, - .mr_cache[17] = { - .size = 8, - .limit = 4 - }, - .mr_cache[18] = { - .size = 8, - .limit = 4 - }, - .mr_cache[19] = { - .size = 4, - .limit = 2 - }, - .mr_cache[20] = { - .size = 4, - .limit = 2 - }, }, }; -- 2.19.1