From patchwork Tue Aug 14 21:38:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 1323721 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id C0D6BDF266 for ; Tue, 14 Aug 2012 21:40:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292Ab2HNVk5 (ORCPT ); Tue, 14 Aug 2012 17:40:57 -0400 Received: from eu1sys200aog108.obsmtp.com ([207.126.144.125]:35008 "HELO eu1sys200aog108.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752122Ab2HNVk5 (ORCPT ); Tue, 14 Aug 2012 17:40:57 -0400 Received: from MTLCAS02.mtl.com ([193.47.165.155]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKUCrF5wBbUzzdp44syEYbw/ALOO+GpUsq@postini.com; Tue, 14 Aug 2012 21:40:56 UTC Received: from [10.7.17.62] (10.0.13.1) by MTLCAS02.mtl.com (10.0.8.72) with Microsoft SMTP Server id 14.2.247.3; Wed, 15 Aug 2012 00:38:52 +0300 Message-ID: <502AC56C.3060906@mellanox.co.il> Date: Wed, 15 Aug 2012 00:38:52 +0300 From: Yevgeny Kliteynik Reply-To: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Linux RDMA , , "Yevgeny Kliteynik" Subject: [PATCH 5/8] opensm/libvendor/osm_vendor_ibumad.c: rename "mad" to "p_mad" to indicate pointer X-Originating-IP: [10.0.13.1] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Yevgeny Kliteynik --- libvendor/osm_vendor_ibumad.c | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/libvendor/osm_vendor_ibumad.c b/libvendor/osm_vendor_ibumad.c index d9ed13a..4d33758 100644 --- a/libvendor/osm_vendor_ibumad.c +++ b/libvendor/osm_vendor_ibumad.c @@ -285,7 +285,7 @@ static void *umad_receiver(void *p_ptr) osm_umad_bind_info_t *p_bind; osm_mad_addr_t osm_addr; osm_madw_t *p_madw, *p_req_madw; - ib_mad_t *mad; + ib_mad_t *p_mad; void *umad = 0; int mad_agent, length; @@ -337,11 +337,11 @@ static void *umad_receiver(void *p_ptr) continue; } - mad = (ib_mad_t *) umad_get_mad(umad); + p_mad = (ib_mad_t *) umad_get_mad(umad); ib_mad_addr_conv(umad, &osm_addr, - mad->mgmt_class == IB_MCLASS_SUBN_LID || - mad->mgmt_class == IB_MCLASS_SUBN_DIR); + p_mad->mgmt_class == IB_MCLASS_SUBN_LID || + p_mad->mgmt_class == IB_MCLASS_SUBN_DIR); if (!(p_madw = osm_mad_pool_get(p_bind->p_mad_pool, (osm_bind_handle_t) p_bind, @@ -364,15 +364,15 @@ static void *umad_receiver(void *p_ptr) /* if status != 0 then we are handling recv timeout on send */ if (umad_status(p_madw->vend_wrap.umad)) { - if (!(p_req_madw = get_madw(p_vend, &mad->trans_id, - mad->mgmt_class))) { + if (!(p_req_madw = get_madw(p_vend, &p_mad->trans_id, + p_mad->mgmt_class))) { OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5412: " "Failed to obtain request madw for timed out MAD" " (class=0x%X method=0x%X attr=0x%X tid=0x%"PRIx64") -- dropping\n", - mad->mgmt_class, mad->method, - cl_ntoh16(mad->attr_id), - cl_ntoh64(mad->trans_id)); + p_mad->mgmt_class, p_mad->method, + cl_ntoh16(p_mad->attr_id), + cl_ntoh64(p_mad->trans_id)); } else { p_req_madw->status = IB_TIMEOUT; log_send_error(p_vend, p_req_madw); @@ -391,30 +391,30 @@ static void *umad_receiver(void *p_ptr) } p_req_madw = 0; - if (ib_mad_is_response(mad) && - !(p_req_madw = get_madw(p_vend, &mad->trans_id, - mad->mgmt_class))) { + if (ib_mad_is_response(p_mad) && + !(p_req_madw = get_madw(p_vend, &p_mad->trans_id, + p_mad->mgmt_class))) { OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5413: " "Failed to obtain request madw for received MAD" " (class=0x%X method=0x%X attr=0x%X tid=0x%"PRIx64") -- dropping\n", - mad->mgmt_class, mad->method, - cl_ntoh16((mad)->attr_id), - cl_ntoh64(mad->trans_id)); + p_mad->mgmt_class, p_mad->method, + cl_ntoh16(p_mad->attr_id), + cl_ntoh64(p_mad->trans_id)); osm_mad_pool_put(p_bind->p_mad_pool, p_madw); continue; } #ifndef VENDOR_RMPP_SUPPORT - if ((mad->mgmt_class != IB_MCLASS_SUBN_DIR) && - (mad->mgmt_class != IB_MCLASS_SUBN_LID) && - (ib_rmpp_is_flag_set((ib_rmpp_mad_t *) mad, + if ((p_mad->mgmt_class != IB_MCLASS_SUBN_DIR) && + (p_mad->mgmt_class != IB_MCLASS_SUBN_LID) && + (ib_rmpp_is_flag_set((ib_rmpp_mad_t *) p_mad, IB_RMPP_FLAG_ACTIVE))) { OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5414: " "class 0x%x method 0x%x RMPP version %d type " "%d flags 0x%x received -- dropping\n", - mad->mgmt_class, mad->method, - ((ib_rmpp_mad_t *) mad)->rmpp_version, - ((ib_rmpp_mad_t *) mad)->rmpp_type, - ((ib_rmpp_mad_t *) mad)->rmpp_flags); + p_mad->mgmt_class, p_mad->method, + ((ib_rmpp_mad_t *) p_mad)->rmpp_version, + ((ib_rmpp_mad_t *) p_mad)->rmpp_type, + ((ib_rmpp_mad_t *) p_mad)->rmpp_flags); osm_mad_pool_put(p_bind->p_mad_pool, p_madw); continue; }