[openib-general] [PATCH][SDP][1/33] Fix comment style in sdp_actv.c
Tom Duffy
Tom.Duffy at Sun.COM
Thu Feb 17 14:08:40 PST 2005
Signed-off-by: Tom Duffy <tduffy at sun.com>
--- drivers/infiniband/ulp/sdp-orig/sdp_actv.c 2005-02-15 16:33:46.230002000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_actv.c 2005-02-17 10:19:08.821002000 -0800
@@ -1,35 +1,46 @@
/*
- 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_post.c 649 2004-08-13 22:41:04Z 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"
-/* --------------------------------------------------------------------- */
-/* */
-/* Connection establishment functions */
-/* */
-/* --------------------------------------------------------------------- */
-/* ========================================================================= */
-/*.._sdp_actv_conn_establish-- process an accepted connection request. */
+/*
+ * Connection establishment functions
+ */
+
+/*
+ * _sdp_actv_conn_establish - process an accepted connection request.
+ */
static int _sdp_actv_conn_establish(struct sdp_opt *conn)
{
struct ib_qp_attr *qp_attr;
@@ -187,8 +198,9 @@ drop:
return result;
} /* _sdp_actv_conn_establish */
-/* ========================================================================= */
-/*.._sdp_cm_hello_ack_check -- validate the hello ack header */
+/*
+ * _sdp_cm_hello_ack_check - validate the hello ack header
+ */
static int _sdp_cm_hello_ack_check(struct msg_hello_ack *hello_ack)
{
/*
@@ -244,8 +256,9 @@ static int _sdp_cm_hello_ack_check(struc
return 0; /* success */
} /* _sdp_cm_hello_ack_check */
-/* ========================================================================= */
-/*..sdp_cm_rep_handler -- handler for active connection open completion */
+/*
+ * sdp_cm_rep_handler - handler for active connection open completion
+ */
int sdp_cm_rep_handler(struct ib_cm_id *cm_id,
struct ib_cm_event *event,
struct sdp_opt *conn)
@@ -355,8 +368,9 @@ done:
return error;
} /* sdp_cm_rep_handler */
-/* ========================================================================= */
-/*.._sdp_cm_path_complete -- path lookup complete, initiate SDP connection */
+/*
+ * _sdp_cm_path_complete - path lookup complete, initiate SDP connection
+ */
static void _sdp_cm_path_complete(u64 id,
int status,
u32 dst_addr,
@@ -562,8 +576,9 @@ done:
return;
} /* _sdp_cm_path_complete */
-/* ========================================================================= */
-/*..sdp_cm_connect -- initiate a SDP connection with a hello message. */
+/*
+ * sdp_cm_connect - initiate a SDP connection with a hello message.
+ */
int sdp_cm_connect(struct sdp_opt *conn)
{
int result = 0;
@@ -614,4 +629,3 @@ int sdp_cm_connect(struct sdp_opt *conn)
error:
return result;
} /* sdp_cm_connect */
-
More information about the general
mailing list