Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2480273yba; Mon, 15 Apr 2019 12:31:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXWFmVqrRrCotYfgtpezKmt6t+CRa04EuzVVv+t05WdN1bBGdDlEZAd+RMC7Cqy8hnSea2 X-Received: by 2002:a63:6b08:: with SMTP id g8mr63649964pgc.211.1555356708721; Mon, 15 Apr 2019 12:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555356708; cv=none; d=google.com; s=arc-20160816; b=NQOORve3vrNRGxmXq1f/NSuV3+xQu53OIluXXHhnL+iPJ3qMH5XSR02IMo5h0T/Rpo tGEkyCuU0xKYxf6qj6tPwaPRVnjCaXzHitSYsPw9e/l5FqZPNhZcY0lSiNO8kOdr7MNQ 4SksTX204V5WvH3W280gYIFfAWTEpzq02u7XXCtsXchUbvWHgeAy4NVDaXrSK9tzDb9W atlY84Y1rrU8w2WozqSuAgY/1AKFi//0De5+m8rQJWg2k/yIY1Tku1uYhCZahz94cLe4 4cTY7UsWKDGLnQ5Z8HjeMGs59IFB7H2zXJmMNVaC7eRMuFX790FyGpaW+rnnlmaqiL3f IEfA== 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=aSaLVYQbpacaV07C3nDucKgqJv56TODAHbe0SP8Ir8E=; b=ksypQPCX+ybmdrWEw8XlmcT03ECHdrbe3vaO2O2qB9bB0C8aRT9Pwpi4ax3tlBPFnE /3nbWMTYEzFnRdnsIbXmoG5kAOiNhACsN04Bsc9LA4HGVcXHKxOsU0XAr3dIBlf982wr 3QSAv9QPBhfguqh/8qhtZbeQNcSHhGgL0wEBgI3uiz3gnxEtaaTDvdxIqwiy3hAeEECC vO8/e3DTAl64EbYHRCUV7hUfhGfsn9tvttWbmW7rL+8I6KgbQnT5lGqmdw79EDmcrtz3 r+DXcK9snMKZmtK94QcLY6Iqm48zhu8UvEGdCs439wiC3+jGRzxKTMMif4QQLo9nzjAG Rm2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tuka1qc8; 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 b65si19941248pfg.120.2019.04.15.12.31.32; Mon, 15 Apr 2019 12:31:48 -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=Tuka1qc8; 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 S1728641AbfDOTCS (ORCPT + 99 others); Mon, 15 Apr 2019 15:02:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:32968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728620AbfDOTCP (ORCPT ); Mon, 15 Apr 2019 15:02:15 -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 A0BED2087C; Mon, 15 Apr 2019 19:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555354935; bh=3yWYOwreFO92pDVxkitrs5bZGuj50+jPlbUkRd0HWTs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tuka1qc8XEKMATX3P0OiO0v2Wso1Gs/xC6FGUC+Zo0naGhRw9odYQviYF5RWu+Ucy x5q4UGeSqpC0oD16twjMKudFhDWnR4iH8C8oT2XMf2ZqZfJdTKvanGdw9idalae0t+ WNyv4nG226Ko5b+YClkepCatW92e7qpuclFFNPWg= 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 Subject: [PATCH 4.14 20/69] net/mlx5: Decrease default mr cache size Date: Mon, 15 Apr 2019 20:58:38 +0200 Message-Id: <20190415183730.306217040@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183726.036654568@linuxfoundation.org> References: <20190415183726.036654568@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 From: Artemy Kovalyov [ 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: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 20 -------------------- 1 file changed, 20 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -155,26 +155,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 - }, }, };