From patchwork Mon Dec 8 17:45:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuval Shaia X-Patchwork-Id: 5460741 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A6A719F1CD for ; Tue, 9 Dec 2014 07:55:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC43E2015A for ; Tue, 9 Dec 2014 07:55:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C22A2010F for ; Tue, 9 Dec 2014 07:55:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752454AbaLIHz4 (ORCPT ); Tue, 9 Dec 2014 02:55:56 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:18220 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751466AbaLIHzz (ORCPT ); Tue, 9 Dec 2014 02:55:55 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sB97tsLA015420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Dec 2014 07:55:55 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sB97trpj019366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Dec 2014 07:55:53 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id sB97tqoQ010177 for ; Tue, 9 Dec 2014 07:55:53 GMT Received: from yuval-net-srv-ca.us.oracle.com (/10.211.3.111) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 08 Dec 2014 23:55:52 -0800 From: Yuval Shaia To: yuval.shaia@oracle.com, linux-rdma@vger.kernel.org Subject: [PATCH] mlx4_core: Modify default value of log_rdmarc_per_qp to be consistent with HW capability Date: Mon, 8 Dec 2014 09:45:58 -0800 Message-Id: <1418060758-22411-1-git-send-email-yuval.shaia@oracle.com> X-Mailer: git-send-email 1.7.1 X-Source-IP: acsinet21.oracle.com [141.146.126.237] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_12_24, RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This value is used to calculate max_qp_dest_rdma. Default value of 4 brings us to 16 while HW supports 128 (max_requester_per_qp). Although this value can be changed by module param it is best that default be optimized. Acked-by: Wengang Wang Signed-off-by: Yuval Shaia --- drivers/net/ethernet/mellanox/mlx4/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 90de6e1..f076689 100644 --- a/drivers/net/ethernet/mellanox/mlx4/main.c +++ b/drivers/net/ethernet/mellanox/mlx4/main.c @@ -114,7 +114,7 @@ static char mlx4_version[] = static struct mlx4_profile default_profile = { .num_qp = 1 << 18, .num_srq = 1 << 16, - .rdmarc_per_qp = 1 << 4, + .rdmarc_per_qp = 1 << 7, .num_cq = 1 << 16, .num_mcg = 1 << 13, .num_mpt = 1 << 19,