[openib-general] [PATCH][SDP][10/33] Fix comment style in sdp_event.c
Tom Duffy
Tom.Duffy at Sun.COM
Thu Feb 17 14:10:12 PST 2005
Signed-off-by: Tom Duffy <tduffy at sun.com>
--- drivers/infiniband/ulp/sdp-orig/sdp_event.c 2005-02-15 16:33:46.254005000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_event.c 2005-02-17 10:43:35.172004000 -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_event.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"
-/* --------------------------------------------------------------------- */
-/* */
-/* Primary QP Event Handler */
-/* */
-/* --------------------------------------------------------------------- */
-/* ========================================================================= */
-/*..sdp_cq_event_locked -- main per QP event handler */
+/*
+ * Primary QP Event Handler
+ */
+
+/*
+ * sdp_cq_event_locked - main per QP event handler
+ */
int sdp_cq_event_locked(struct ib_wc *comp, struct sdp_opt *conn)
{
int result = 0;
@@ -126,8 +137,9 @@ done:
return result;
} /* sdp_cq_event_locked */
-/* ========================================================================= */
-/*..sdp_cq_event_handler -- main per QP event handler, and demuxer */
+/*
+ * sdp_cq_event_handler - main per QP event handler, and demuxer
+ */
void sdp_cq_event_handler(struct ib_cq *cq, void *arg)
{
s32 hashent = (unsigned long)arg;
@@ -200,14 +212,13 @@ done:
return;
} /* sdp_cq_event_handler */
-/* --------------------------------------------------------------------- */
-/* */
-/* Connection establishment IB/CM callback functions */
-/* */
-/* --------------------------------------------------------------------- */
+/*
+ * Connection establishment IB/CM callback functions
+ */
-/* ========================================================================= */
-/*.._sdp_cm_idle -- handler for connection idle completion */
+/*
+ * _sdp_cm_idle - handler for connection idle completion
+ */
static int _sdp_cm_idle(struct ib_cm_id *cm_id,
struct ib_cm_event *event,
struct sdp_opt *conn)
@@ -310,8 +321,9 @@ error:
return result;
} /* _sdp_cm_idle */
-/* ========================================================================= */
-/*.._sdp_cm_established -- handler for connection established completion */
+/*
+ * _sdp_cm_established - handler for connection established completion
+ */
static int _sdp_cm_established(struct ib_cm_id *cm_id,
struct ib_cm_event *event,
struct sdp_opt *conn)
@@ -432,8 +444,9 @@ done:
return result;
} /* _sdp_cm_established */
-/* ========================================================================= */
-/*.._sdp_cm_timewait -- handler for connection Time Wait completion */
+/*
+ * _sdp_cm_timewait - handler for connection Time Wait completion
+ */
static int _sdp_cm_timewait(struct ib_cm_id *cm_id,
struct ib_cm_event *event,
struct sdp_opt *conn)
@@ -518,13 +531,13 @@ error:
return result;
} /* _sdp_cm_timewait */
-/* --------------------------------------------------------------------- */
-/* */
-/* Primary Connection Managment callback function */
-/* */
-/* --------------------------------------------------------------------- */
-/* ========================================================================= */
-/*..sdp_cm_event_handler -- handler for CM state transitions request */
+/*
+ * Primary Connection Managment callback function
+ */
+
+/*
+ * sdp_cm_event_handler - handler for CM state transitions request
+ */
int sdp_cm_event_handler(struct ib_cm_id *cm_id,
struct ib_cm_event *event)
{
More information about the general
mailing list