[openib-general] [PATCH][SDP][30/33] Fix comment style in sdp_sent.c

Tom Duffy Tom.Duffy at Sun.COM
Thu Feb 17 14:13:37 PST 2005


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

--- drivers/infiniband/ulp/sdp-orig/sdp_sent.c	2005-02-15 16:33:46.247005000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_sent.c	2005-02-17 11:52:21.451002000 -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_sent.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. (SEND)                                */
-/*                                                                       */
-/* --------------------------------------------------------------------- */
-/* ========================================================================= */
-/*.._sdp_sent_disconnect --  */
+/*
+ * Specific MID handler functions. (SEND)
+ */
+
 static int _sdp_sent_disconnect(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result;
@@ -115,8 +123,6 @@ error:
 	return result;
 } /* _sdp_sent_disconnect */
 
-/* ========================================================================= */
-/*.._sdp_sent_abort --  */
 static int _sdp_sent_abort(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result;
@@ -139,8 +145,6 @@ static int _sdp_sent_abort(struct sdp_op
 	return result;
 } /* _sdp_sent_abort */
 
-/* ========================================================================= */
-/*.._sdp_sent_send_sm --  */
 static int _sdp_sent_send_sm(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	SDP_CHECK_NULL(conn, -EINVAL);
@@ -149,8 +153,6 @@ static int _sdp_sent_send_sm(struct sdp_
 	return 0;
 } /* _sdp_sent_send_sm */
 
-/* ========================================================================= */
-/*.._sdp_sent_rdma_wr --  */
 static int _sdp_sent_rdma_wr(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_rwch *rwch;
@@ -166,8 +168,6 @@ static int _sdp_sent_rdma_wr(struct sdp_
 	return 0;
 } /* _sdp_sent_rdma_wr */
 
-/* ========================================================================= */
-/*.._sdp_sent_rdma_rd --  */
 static int _sdp_sent_rdma_rd(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_rrch *rrch;
@@ -183,8 +183,6 @@ static int _sdp_sent_rdma_rd(struct sdp_
 	return 0;
 } /* _sdp_sent_rdma_rd */
 
-/* ========================================================================= */
-/*.._sdp_sent_mode_change --  */
 static int _sdp_sent_mode_change(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_mch *mch;
@@ -200,8 +198,6 @@ static int _sdp_sent_mode_change(struct 
 	return 0;
 } /* _sdp_sent_mode_change */
 
-/* ========================================================================= */
-/*.._sdp_sent_src_cancel --  */
 static int _sdp_sent_src_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	SDP_CHECK_NULL(conn, -EINVAL);
@@ -210,8 +206,6 @@ static int _sdp_sent_src_cancel(struct s
 	return 0;
 } /* _sdp_sent_src_cancel */
 
-/* ========================================================================= */
-/*.._sdp_sent_snk_cancel --  */
 static int _sdp_sent_snk_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	SDP_CHECK_NULL(conn, -EINVAL);
@@ -220,8 +214,6 @@ static int _sdp_sent_snk_cancel(struct s
 	return 0;
 } /* _sdp_sent_snk_cancel */
 
-/* ========================================================================= */
-/*.._sdp_sent_snk_cancel_ack --  */
 static int _sdp_sent_snk_cancel_ack(struct sdp_opt *conn,
 				    struct sdpc_buff *buff)
 {
@@ -231,8 +223,6 @@ static int _sdp_sent_snk_cancel_ack(stru
 	return 0;
 } /* _sdp_sent_snk_cancel_ack */
 
-/* ========================================================================= */
-/*.._sdp_sent_resize_buff_ack --  */
 static int _sdp_sent_resize_buff_ack(struct sdp_opt *conn,
 				     struct sdpc_buff *buff)
 {
@@ -249,8 +239,6 @@ static int _sdp_sent_resize_buff_ack(str
 	return 0;
 } /* _sdp_sent_resize_buff_ack */
 
-/* ========================================================================= */
-/*.._sdp_sent_suspend --  */
 static int _sdp_sent_suspend(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_sch *sch;
@@ -266,8 +254,6 @@ static int _sdp_sent_suspend(struct sdp_
 	return 0;
 } /* _sdp_sent_suspend */
 
-/* ========================================================================= */
-/*.._sdp_sent_suspend_ack --  */
 static int _sdp_sent_suspend_ack(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	SDP_CHECK_NULL(conn, -EINVAL);
@@ -276,8 +262,6 @@ static int _sdp_sent_suspend_ack(struct 
 	return 0;
 } /* _sdp_sent_suspend_ack */
 
-/* ========================================================================= */
-/*.._sdp_sent_snk_avail --  */
 static int _sdp_sent_snk_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_snkah *snkah;
@@ -293,8 +277,6 @@ static int _sdp_sent_snk_avail(struct sd
 	return 0;
 } /* _sdp_sent_snk_avail */
 
-/* ========================================================================= */
-/*.._sdp_sent_src_avail --  */
 static int _sdp_sent_src_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_srcah *srcah;
@@ -310,8 +292,9 @@ static int _sdp_sent_src_avail(struct sd
 	return 0;
 } /* _sdp_sent_src_avail */
 
-/* ========================================================================= */
-/*.._sdp_sent_data -- SDP data message event received */
+/*
+ * _sdp_sent_data - SDP data message event received
+ */
 static int _sdp_sent_data(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result = 0;
@@ -325,8 +308,9 @@ static int _sdp_sent_data(struct sdp_opt
 	return result;
 } /* _sdp_sent_data */
 
-/* ========================================================================= */
-/*.._sdp_sent_unsupported -- Valid messages we're not sending */
+/*
+ * _sdp_sent_unsupported - Valid messages we're not sending
+ */
 static int _sdp_sent_unsupported(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	SDP_CHECK_NULL(conn, -EINVAL);
@@ -388,8 +372,9 @@ static sdp_event_cb_func send_event_func
 	_sdp_sent_data             /* SDP_MID_DATA             0xFF */
 }; /* send_event_funcs */
 
-/* ========================================================================= */
-/*..sdp_event_send -- send event handler. */
+/*
+ * sdp_event_send - send event handler
+ */
 int sdp_event_send(struct sdp_opt *conn, struct ib_wc *comp)
 {
 	sdp_event_cb_func dispatch_func;




More information about the general mailing list