[Open-FCoE] Dump seen on target when initiater is enabled

Mikkel Hagen mhagen at iol.unh.edu
Fri Apr 25 15:34:47 UTC 2008


Fixed it:
--- a/openfctgt/openfc_target.c
+++ b/openfctgt/openfc_target.c
@@ -56,7 +56,7 @@
 /*
  * non linux dot h files
  */
-#include "scsi_tgt.h"
+#include "scst.h"
 #include "fc_types.h"
 #include "sa_assert.h"
 #include "fc_port.h"
@@ -395,8 +395,10 @@ openfct_process_scsi_cmd(struct openfchba_softc 
*openfcp,
        scst_cmd_set_tag(fsp->scst_cmd, fsp->exid);
        scst_cmd_set_tgt_priv(fsp->scst_cmd, fsp);
 
+/*
        scst_cmd_set_expected(fsp->scst_cmd,
                              fsp->data_direction, fsp->data_len);
+*/
        scst_cmd_init_done(fsp->scst_cmd, SCST_CONTEXT_DIRECT);

Thanks to Ethan Burns.

Mikkel Hagen
Project Assistant - Fibre Channel/SAS/SATA Consortiums
Research and Development Engineer - iWARP Consortium	
FC/SAS/SATA:1-603-862-0701  iWARP:1-603-862-5083  Fax:1-603-862-4181
UNH-IOL
121 Technology Drive, Suite 2
Durham, NH 03824



Mikkel Hagen wrote:
> I am seeing this same problem.
> dmesg from the target:
>  scst: scst_parse_cmd:532:***ERROR*** Expected data direction 0 for 
> opcode 0x12 (handler dev_disk, target openfct) doesn't match decoded value 2
> Failed CDB:
>  (h)___0__1__2__3__4__5__6__7__8__9__A__B__C__D__E__F
>    0: 12 00 00 00 24 00   ....$.
>
> wireshark view of the inquiry from the initiator:
> 0000   00 00 00 00 00 00 fc fc fc 01 01 01 89 06 00 00
> 0010   00 00 00 00 00 00 00 00 00 00 00 2e 06 01 01 02
> 0020   00 01 01 01 08 29 00 00 00 00 00 00 00 07 ff ff
> 0030   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02
> 0040   12 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00
> 0050   00 00 00 24 66 c0 48 6a 42 00 00 00
>
> wireshark view of the reponse from the target:
> 0000   00 30 48 30 62 a7 00 00 00 00 00 00 89 06 00 00
> 0010   00 00 00 00 00 00 00 00 00 00 00 2e 07 01 01 01
> 0020   00 01 01 02 08 98 00 00 00 00 00 00 00 07 02 73
> 0030   00 00 00 00 00 00 00 00 00 00 00 00 00 00 0a 02
> 0040   00 00 00 00 00 00 00 60 00 00 00 00 70 00 05 00
> 0050   00 00 00 0a 00 00 00 00 49 00 00 00 00 00 00 00
> 0060   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0070   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0080   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 0090   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00a0   76 53 2c da 42 00 00 00
>
>   



More information about the devel mailing list