From patchwork Mon Dec 7 10:22:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 65485 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB7AG4Rk025670 for ; Mon, 7 Dec 2009 10:16:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934964AbZLGKPt (ORCPT ); Mon, 7 Dec 2009 05:15:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934997AbZLGKPt (ORCPT ); Mon, 7 Dec 2009 05:15:49 -0500 Received: from mail.mellanox.co.il ([194.90.237.43]:46968 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934964AbZLGKPs (ORCPT ); Mon, 7 Dec 2009 05:15:48 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 7 Dec 2009 12:23:18 +0200 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 7 Dec 2009 12:14:30 +0200 Message-ID: <4B1CD77F.6050905@dev.mellanox.co.il> Date: Mon, 07 Dec 2009 12:22:55 +0200 From: Yevgeny Kliteynik Reply-To: kliteyn@dev.mellanox.co.il User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: [PATCH] opensm/osm_sa_mcmember_record.c: print mcast join/create failures in VERBOSE instead of DEBUG level X-OriginalArrivalTime: 07 Dec 2009 10:14:30.0397 (UTC) FILETIME=[10925AD0:01CA7726] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17054.006 X-TM-AS-Result: No--2.102700-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_sa_mcmember_record.c b/opensm/opensm/osm_sa_mcmember_record.c index 3839b67..a4d86e3 100644 --- a/opensm/opensm/osm_sa_mcmember_record.c +++ b/opensm/opensm/osm_sa_mcmember_record.c @@ -247,7 +247,7 @@ static boolean_t validate_more_comp_fields(osm_log_t * p_log, switch (mtu_sel) { case 0: /* Greater than MTU specified */ if (mtu_mgrp <= mtu_required) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested mcast group has MTU %x, " "which is not greater than %x\n", mtu_mgrp, mtu_required); @@ -256,7 +256,7 @@ static boolean_t validate_more_comp_fields(osm_log_t * p_log, break; case 1: /* Less than MTU specified */ if (mtu_mgrp >= mtu_required) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested mcast group has MTU %x, " "which is not less than %x\n", mtu_mgrp, mtu_required); @@ -265,7 +265,7 @@ static boolean_t validate_more_comp_fields(osm_log_t * p_log, break; case 2: /* Exactly MTU specified */ if (mtu_mgrp != mtu_required) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested mcast group has MTU %x, " "which is not equal to %x\n", mtu_mgrp, mtu_required); @@ -286,7 +286,7 @@ static boolean_t validate_more_comp_fields(osm_log_t * p_log, switch (rate_sel) { case 0: /* Greater than RATE specified */ if (rate_mgrp <= rate_required) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested mcast group has RATE %x, " "which is not greater than %x\n", rate_mgrp, rate_required); @@ -295,7 +295,7 @@ static boolean_t validate_more_comp_fields(osm_log_t * p_log, break; case 1: /* Less than RATE specified */ if (rate_mgrp >= rate_required) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested mcast group has RATE %x, " "which is not less than %x\n", rate_mgrp, rate_required); @@ -304,7 +304,7 @@ static boolean_t validate_more_comp_fields(osm_log_t * p_log, break; case 2: /* Exactly RATE specified */ if (rate_mgrp != rate_required) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested mcast group has RATE %x, " "which is not equal to %x\n", rate_mgrp, rate_required); @@ -335,7 +335,7 @@ static boolean_t validate_port_caps(osm_log_t * p_log, mtu_required = ib_port_info_get_mtu_cap(&p_physp->port_info); mtu_mgrp = (uint8_t) (p_mgrp->mcmember_rec.mtu & 0x3F); if (mtu_required < mtu_mgrp) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Port's MTU %x is less than %x\n", mtu_required, mtu_mgrp); return FALSE; @@ -344,7 +344,7 @@ static boolean_t validate_port_caps(osm_log_t * p_log, rate_required = ib_port_info_compute_rate(&p_physp->port_info); rate_mgrp = (uint8_t) (p_mgrp->mcmember_rec.rate & 0x3F); if (rate_required < rate_mgrp) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Port's RATE %x is less than %x\n", rate_required, rate_mgrp); return FALSE; @@ -666,7 +666,7 @@ static boolean_t mgrp_request_is_realizable(IN osm_sa_t * sa, switch (mtu_sel) { case 0: /* Greater than MTU specified */ if (port_mtu && mtu_required >= port_mtu) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested MTU %x >= the port\'s mtu:%x\n", mtu_required, port_mtu); return FALSE; @@ -694,7 +694,7 @@ static boolean_t mgrp_request_is_realizable(IN osm_sa_t * sa, } /* make sure it still be in the range */ if (mtu < IB_MIN_MTU || mtu > IB_MAX_MTU) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Calculated MTU %x is out of range\n", mtu); return FALSE; } @@ -713,7 +713,7 @@ static boolean_t mgrp_request_is_realizable(IN osm_sa_t * sa, switch (rate_sel) { case 0: /* Greater than RATE specified */ if (port_rate && rate_required >= port_rate) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Requested RATE %x >= the port\'s rate:%x\n", rate_required, port_rate); return FALSE; @@ -741,7 +741,7 @@ static boolean_t mgrp_request_is_realizable(IN osm_sa_t * sa, } /* make sure it still is in the range */ if (rate < IB_MIN_RATE || rate > IB_MAX_RATE) { - OSM_LOG(p_log, OSM_LOG_DEBUG, + OSM_LOG(p_log, OSM_LOG_VERBOSE, "Calculated RATE %x is out of range\n", rate); return FALSE; } @@ -1015,7 +1015,7 @@ static void mcmr_rcv_join_mgrp(IN osm_sa_t * sa, IN osm_madw_t * p_madw) if (!osm_physp_share_pkey(sa->p_log, p_physp, p_request_physp)) { CL_PLOCK_RELEASE(sa->p_lock); - OSM_LOG(sa->p_log, OSM_LOG_DEBUG, + OSM_LOG(sa->p_log, OSM_LOG_VERBOSE, "Port and requester don't share pkey\n"); osm_sa_send_error(sa, p_madw, IB_SA_MAD_STATUS_REQ_INVALID); goto Exit;