[openib-general] [PATCH][SDP][32/33] Fix comment style in sdp_wall.c
Tom Duffy
Tom.Duffy at Sun.COM
Thu Feb 17 14:13:58 PST 2005
Signed-off-by: Tom Duffy <tduffy at sun.com>
--- drivers/infiniband/ulp/sdp-orig/sdp_wall.c 2005-02-10 18:42:56.553008000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_wall.c 2005-02-17 11:56:59.912002000 -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_wall.c 488 2004-07-16 23:40:31Z 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"
-/* --------------------------------------------------------------------- */
-/* */
-/* SDP protocol (public functions) */
-/* */
-/* --------------------------------------------------------------------- */
-/* ========================================================================= */
-/*..sdp_wall_send_reject -- callback to reject an active open */
+/*
+ * SDP protocol (public functions)
+ */
+
+/*
+ * sdp_wall_send_reject - callback to reject an active open
+ */
int sdp_wall_send_reject(struct sdp_opt *conn)
{
int result;
@@ -51,8 +62,9 @@ int sdp_wall_send_reject(struct sdp_opt
return 0;
} /* sdp_wall_send_reject */
-/* ========================================================================= */
-/*..sdp_wall_send_close -- callback to accept an active close */
+/*
+ * sdp_wall_send_close - callback to accept an active close
+ */
int sdp_wall_send_close(struct sdp_opt *conn)
{
struct sdpc_buff *buff;
@@ -134,8 +146,9 @@ error:
return result;
} /* sdp_wall_send_close */
-/* ========================================================================= */
-/*..sdp_wall_send_closing -- callback to confirm a passive close */
+/*
+ * sdp_wall_send_closing - callback to confirm a passive close
+ */
int sdp_wall_send_closing(struct sdp_opt *conn)
{
int result;
@@ -191,8 +204,9 @@ error:
return result;
} /* sdp_wall_send_closing */
-/* ========================================================================= */
-/*..sdp_wall_send_abort -- callback to accept an active abort */
+/*
+ * sdp_wall_send_abort - callback to accept an active abort
+ */
int sdp_wall_send_abort(struct sdp_opt *conn)
{
int result = 0;
@@ -305,14 +319,13 @@ error:
return 0;
} /* sdp_wall_send_abort */
-/* --------------------------------------------------------------------- */
-/* */
-/* SDP INET (public functions) */
-/* */
-/* --------------------------------------------------------------------- */
+/*
+ * SDP INET (public functions)
+ */
-/* ========================================================================= */
-/*..sdp_wall_recv_reject -- callback to reject an active open */
+/*
+ * sdp_wall_recv_reject - callback to reject an active open
+ */
int sdp_wall_recv_reject(struct sdp_opt *conn, int error)
{
int result;
@@ -345,8 +358,9 @@ int sdp_wall_recv_reject(struct sdp_opt
return 0;
} /* sdp_wall_recv_reject */
-/* ========================================================================= */
-/*..sdp_wall_recv_confirm -- callback to confirm accepeted passive open */
+/*
+ * sdp_wall_recv_confirm - callback to confirm accepeted passive open
+ */
int sdp_wall_recv_confirm(struct sdp_opt *conn)
{
struct ib_qp_attr *qp_attr;
@@ -417,8 +431,9 @@ error:
return result;
} /* sdp_wall_recv_confirm */
-/* ========================================================================= */
-/*..sdp_wall_recv_failed - callback to notify accepted open of a failure */
+/*
+ * sdp_wall_recv_failed - callback to notify accepted open of a failure
+ */
int sdp_wall_recv_failed(struct sdp_opt *conn, int error)
{
SDP_CHECK_NULL(conn, -EINVAL);
@@ -453,8 +468,9 @@ int sdp_wall_recv_failed(struct sdp_opt
return 0;
} /* sdp_wall_recv_failed */
-/* ========================================================================= */
-/*..sdp_wall_recv_close -- callback to accept an active close */
+/*
+ * sdp_wall_recv_close - callback to accept an active close
+ */
int sdp_wall_recv_close(struct sdp_opt *conn)
{
int result;
@@ -504,8 +520,9 @@ int sdp_wall_recv_close(struct sdp_opt *
return 0;
} /* sdp_wall_recv_close */
-/* ========================================================================= */
-/*..sdp_wall_recv_closing -- callback for a close confirmation */
+/*
+ * sdp_wall_recv_closing - callback for a close confirmation
+ */
int sdp_wall_recv_closing(struct sdp_opt *conn)
{
int result;
@@ -543,8 +560,9 @@ int sdp_wall_recv_closing(struct sdp_opt
return 0;
} /* sdp_wall_recv_closing */
-/* ========================================================================= */
-/*..sdp_wall_recv_abort -- abortive close notification */
+/*
+ * sdp_wall_recv_abort - abortive close notification
+ */
int sdp_wall_recv_abort(struct sdp_opt *conn)
{
int result;
@@ -591,8 +609,9 @@ int sdp_wall_recv_abort(struct sdp_opt *
return 0;
} /* sdp_wall_recv_abort */
-/* ========================================================================= */
-/*..sdp_wall_recv_drop -- drop SDP protocol reference to socket */
+/*
+ * sdp_wall_recv_drop - drop SDP protocol reference to socket
+ */
int sdp_wall_recv_drop(struct sdp_opt *conn)
{
int result;
@@ -661,14 +680,13 @@ int sdp_wall_recv_drop(struct sdp_opt *c
return 0;
} /* sdp_wall_recv_drop */
-/* --------------------------------------------------------------------- */
-/* */
-/* SDP common (public functions) */
-/* */
-/* --------------------------------------------------------------------- */
+/*
+ * SDP common (public functions)
+ */
-/* ========================================================================= */
-/*..sdp_wall_abort -- intiate socket dropping. */
+/*
+ * sdp_wall_abort - intiate socket dropping
+ */
int sdp_wall_abort(struct sdp_opt *conn)
{
int result;
More information about the general
mailing list