From patchwork Sun Jun 20 09:31:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Eli Dorfman (Voltaire)" X-Patchwork-Id: 107037 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5K9ENjV012990 for ; Sun, 20 Jun 2010 09:14:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756238Ab0FTJOW (ORCPT ); Sun, 20 Jun 2010 05:14:22 -0400 Received: from fwil.voltaire.com ([193.47.165.2]:39341 "EHLO exil.voltaire.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756231Ab0FTJOW (ORCPT ); Sun, 20 Jun 2010 05:14:22 -0400 Received: from [172.25.1.69] ([172.25.1.69]) by exil.voltaire.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 20 Jun 2010 12:14:19 +0300 Message-ID: <4C1DE00B.3030202@gmail.com> Date: Sun, 20 Jun 2010 12:31:55 +0300 From: "Eli Dorfman (Voltaire)" User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: Sasha Khapyorsky CC: linux-rdma , Yossi Etigin Subject: [PATCH] opensm: Fix wrong messages in MC delete flow X-OriginalArrivalTime: 20 Jun 2010 09:14:19.0875 (UTC) FILETIME=[F715AB30:01CB1058] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 20 Jun 2010 09:14:24 +0000 (UTC) diff --git a/opensm/opensm/osm_sa_mcmember_record.c b/opensm/opensm/osm_sa_mcmember_record.c index 07aeb6c..eda2fdd 100644 --- a/opensm/opensm/osm_sa_mcmember_record.c +++ b/opensm/opensm/osm_sa_mcmember_record.c @@ -405,8 +405,7 @@ static boolean_t validate_modify(IN osm_sa_t * sa, IN osm_mgrp_t * p_mgrp, "0x%016" PRIx64 " request:0x%016" PRIx64 "\n", cl_ntoh64((*pp_mcm_port)->port_gid.unicast. interface_id), - cl_ntoh64(p_mad_addr->addr_type.gsi.grh_info. - src_gid.unicast.interface_id)); + cl_ntoh64(request_gid.unicast.interface_id)); return FALSE; } } else { @@ -422,11 +421,9 @@ static boolean_t validate_modify(IN osm_sa_t * sa, IN osm_mgrp_t * p_mgrp, p_request_physp)) { /* the request port is not part of the partition for this mgrp */ OSM_LOG(sa->p_log, OSM_LOG_DEBUG, - "ProxyJoin but port not in partition. stored:" - "0x%016" PRIx64 " request:0x%016" PRIx64 "\n", - cl_ntoh64((*pp_mcm_port)->port->guid), - cl_ntoh64(p_mad_addr->addr_type.gsi.grh_info. - src_gid.unicast.interface_id)); + "Requesting port 0x%016" PRIx64 " has no P_Key 0x%04x\n", + cl_ntoh64(p_request_physp->port_guid), + cl_ntoh16(p_mgrp->mcmember_rec.pkey)); return FALSE; } }