[openib-general] [PATCH][SDP][26/33] Fix comment style in sdp_rcvd.c

Tom Duffy Tom.Duffy at Sun.COM
Thu Feb 17 14:12:56 PST 2005


Signed-off-by: Tom Duffy <tduffy at sun.com>

--- drivers/infiniband/ulp/sdp-orig/sdp_rcvd.c	2005-02-15 16:33:46.210001000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_rcvd.c	2005-02-17 11:26:31.100001000 -0800
@@ -1,35 +1,43 @@
 /*
-  This software is available to you under a choice of one of two
-  licenses.  You may choose to be licensed under the terms of the GNU
-  General Public License (GPL) Version 2, available at
-  <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
-  license, available in the LICENSE.TXT file accompanying this
-  software.  These details are also available at
-  <http://openib.org/license.html>.
-
-  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-  SOFTWARE.
-
-  Copyright (c) 2005 Topspin Communications.  All rights reserved.
-
-  $Id: sdp_rcvd.c 836 2004-09-14 20:50:32Z roland $
-*/
+ * Copyright (c) 2005 Topspin Communications.  All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses.  You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
+ *
+ *      - Redistributions of source code must retain the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer.
+ *
+ *      - Redistributions in binary form must reproduce the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * $Id$
+ */
 
 #include "sdp_main.h"
 
-/* --------------------------------------------------------------------- */
-/*                                                                       */
-/* Specific MID handler functions. (RECV)                                */
-/*                                                                       */
-/* --------------------------------------------------------------------- */
-/* ========================================================================= */
-/*.._sdp_rcvd_disconnect --  */
+/*
+ * Specific MID handler functions. (RECV)
+ */
+
 static int _sdp_rcvd_disconnect(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result = 0;
@@ -119,8 +127,6 @@ error:
 	return result;
 } /* _sdp_rcvd_disconnect */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_abort --  */
 static int _sdp_rcvd_abort(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result = 0;
@@ -158,8 +164,6 @@ static int _sdp_rcvd_abort(struct sdp_op
 	return result;
 } /* _sdp_rcvd_abort */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_send_sm --  */
 static int _sdp_rcvd_send_sm(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct sdpc_iocb *iocb;
@@ -206,8 +210,6 @@ static int _sdp_rcvd_send_sm(struct sdp_
 	return 0;
 } /* _sdp_rcvd_send_sm */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_rdma_wr --  */
 static int _sdp_rcvd_rdma_wr(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_rwch *rwch;
@@ -275,8 +277,6 @@ error:
 	return result;
 } /* _sdp_rcvd_rdma_wr */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_rdma_rd --  */
 static int _sdp_rcvd_rdma_rd(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_rrch *rrch;
@@ -367,8 +367,6 @@ error:
 	return result;
 } /* _sdp_rcvd_rdma_rd */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_mode_change --  */
 static int _sdp_rcvd_mode_change(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_mch *mch;
@@ -484,8 +482,6 @@ error:
 	return result;
 } /* _sdp_rcvd_mode_change */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_src_cancel --  */
 static int _sdp_rcvd_src_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct sdpc_advt *advt;
@@ -590,8 +586,6 @@ done:
 	return result;
 } /* _sdp_rcvd_src_cancel */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_snk_cancel --  */
 static int _sdp_rcvd_snk_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct sdpc_advt *advt;
@@ -673,8 +667,9 @@ done:
 	return result;
 } /* _sdp_rcvd_snk_cancel */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_snk_cancel_ack -- sink cancel confirmantion */
+/*
+ * _sdp_rcvd_snk_cancel_ack - sink cancel confirmantion
+ */
 static int _sdp_rcvd_snk_cancel_ack(struct sdp_opt *conn, 
 				    struct sdpc_buff *buff)
 {
@@ -717,8 +712,9 @@ done:
 	return result;
 } /* _sdp_rcvd_snk_cancel_ack */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_resize_buff_ack --  buffer size change request */
+/*
+ * _sdp_rcvd_resize_buff_ack - buffer size change request
+ */
 static int _sdp_rcvd_resize_buff_ack(struct sdp_opt *conn,
 				     struct sdpc_buff *buff)
 {
@@ -753,8 +749,6 @@ error:
 	return result;
 } /* _sdp_rcvd_resize_buff_ack */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_suspend --  */
 static int _sdp_rcvd_suspend(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_sch *sch;
@@ -770,18 +764,14 @@ static int _sdp_rcvd_suspend(struct sdp_
 	return 0;
 } /* _sdp_rcvd_suspend */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_suspend_Ack --  */
-static int _sdp_rcvd_suspend_Ack(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int _sdp_rcvd_suspend_ack(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	SDP_CHECK_NULL(conn, -EINVAL);
 	SDP_CHECK_NULL(buff, -EINVAL);
 
 	return 0;
-} /* _sdp_rcvd_suspend_Ack */
+} /* _sdp_rcvd_suspend_ack */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_snk_avail --  */
 static int _sdp_rcvd_snk_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_snkah *snkah;
@@ -944,8 +934,6 @@ error:
 	return result;
 } /* _sdp_rcvd_snk_avail */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_src_avail --  */
 static int _sdp_rcvd_src_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_srcah *srcah;
@@ -1140,8 +1128,9 @@ done:
 	return result;
 } /* _sdp_rcvd_src_avail */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_data -- SDP data message event received */
+/*
+ * _sdp_rcvd_data - SDP data message event received
+ */
 static int _sdp_rcvd_data(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int ret_val;
@@ -1196,8 +1185,9 @@ static int _sdp_rcvd_data(struct sdp_opt
 	return ret_val;
 } /* _sdp_rcvd_sata */
 
-/* ========================================================================= */
-/*.._sdp_rcvd_unsupported -- Valid messages we're not expecting */
+/*
+ * _sdp_rcvd_unsupported - Valid messages we're not expecting
+ */
 static int _sdp_rcvd_unsupported(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	SDP_CHECK_NULL(conn, -EINVAL);
@@ -1241,7 +1231,7 @@ static sdp_event_cb_func recv_event_func
 	_sdp_rcvd_resize_buff_ack,  /* SDP_MID_CH_RECV_BUF      0x0B */
 	_sdp_rcvd_unsupported,      /* SDP_MID_CH_RECV_BUF_ACK  0x0C */
 	_sdp_rcvd_suspend,          /* SDP_MID_SUSPEND          0x0D */
-	_sdp_rcvd_suspend_Ack,      /* SDP_MID_SUSPEND_ACK      0x0E */
+	_sdp_rcvd_suspend_ack,      /* SDP_MID_SUSPEND_ACK      0x0E */
 	NULL,                       /* reserved                    0x0F */
 	NULL,                       /* reserved                    0xF0 */
 	NULL,                       /* reserved                    0xF1 */
@@ -1261,8 +1251,9 @@ static sdp_event_cb_func recv_event_func
 	_sdp_rcvd_data              /* SDP_MID_DATA             0xFF */
 }; /* recv_event_funcs */
 
-/* ========================================================================= */
-/*..sdp_event_recv -- recv event demultiplexing into sdp messages. */
+/*
+ * sdp_event_recv - recv event demultiplexing into sdp messages
+ */
 int sdp_event_recv(struct sdp_opt *conn, struct ib_wc *comp)
 {
 	sdp_event_cb_func dispatch_func;




More information about the general mailing list