changeset 12880:76234fce8dc5

6963834 fcoet_send_sol_fcp_data_done assfail 6894489 fcoei is not lint clean
author Yu Renia Miao <Renia.Miao@Sun.COM>
date Tue, 20 Jul 2010 14:28:29 +0800
parents 3daafda5b49b
children fb36eaeb6ee0
files usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_eth.c usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
diffstat 4 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c	Mon Jul 19 23:01:42 2010 -0700
+++ b/usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c	Tue Jul 20 14:28:29 2010 +0800
@@ -228,7 +228,7 @@
 		xch->xch_left_data_size =
 		    XCH2TASK(xch)->task_expected_xfer_length;
 
-	if (dbuf->db_flags == DB_DIRECTION_FROM_RPORT) {
+	if (dbuf->db_flags & DB_DIRECTION_FROM_RPORT) {
 		/*
 		 * If it's write type command, we need send xfer_rdy now
 		 * We may need to consider bidirectional command later
--- a/usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c	Mon Jul 19 23:01:42 2010 -0700
+++ b/usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c	Tue Jul 20 14:28:29 2010 +0800
@@ -20,8 +20,7 @@
  */
 
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 #include <sys/conf.h>
@@ -896,6 +895,7 @@
  *	If it's solicited FLOGI, we need set SS_FLAG_FLOGI_FAILED
  *	If the link is down, we think it has timed out too.
  */
+/* ARGSUSED */
 static uint32_t
 fcoei_xch_check(mod_hash_key_t key, mod_hash_val_t *val, void *arg)
 {
--- a/usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_eth.c	Mon Jul 19 23:01:42 2010 -0700
+++ b/usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_eth.c	Tue Jul 20 14:28:29 2010 +0800
@@ -55,8 +55,7 @@
  */
 
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*
@@ -437,6 +436,7 @@
  * Comments:
  *	N/A
  */
+/* ARGSUSED */
 static uint32_t
 fcoei_search_abort_xch(mod_hash_key_t key, mod_hash_val_t *val, void *arg)
 {
--- a/usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c	Mon Jul 19 23:01:42 2010 -0700
+++ b/usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c	Tue Jul 20 14:28:29 2010 +0800
@@ -20,8 +20,7 @@
  */
 
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*
@@ -233,6 +232,7 @@
  * Comments:
  *	Link the exchange elements with proper objects
  */
+/* ARGSUSED */
 static int
 fcoei_init_pkt(void *fca_handle, fc_packet_t *fpkt, int sleep)
 {
@@ -260,6 +260,7 @@
  * Comments:
  *	Very simple, just return successfully
  */
+/* ARGSUSED */
 static int
 fcoei_un_init_pkt(void *fca_handle, fc_packet_t *fpkt)
 {
@@ -1556,6 +1557,7 @@
  * Comments:
  *	N/A
  */
+/* ARGSUSED */
 static void
 fcoei_fill_els_linit_cmd(fc_packet_t *fpkt, fcoe_frame_t *frm)
 {
@@ -1911,6 +1913,7 @@
  * Comments:
  *	N/A
  */
+/* ARGSUSED */
 static uint32_t
 fcoei_xch_abort(mod_hash_key_t key, mod_hash_val_t *val, void *arg)
 {