[Open-FCoE] p2p mode scsi vdisk error

charles zhuang charlesz at opengridcomputing.com
Tue Sep 16 21:37:58 UTC 2008


Hi all,
I am encountering a problem now with the latest code on a p2p mode with
back to back connection between initiator and sw target by using vdisk
on the target. The session went thru successfully with FLOGI, PLOGI,
PRLI, and to FCP. However, I got an error on the target "[17192]: scst:
scst_parse_cmd:536:***ERROR*** Expected data direction 0 for opcode 0x12
(handler vdisk, target openfct) doesn't match decoded value 2", after
that initiator will keep oops or hang. 
Does any one have any ideas what it is? 
Following is a section of log trace from the target, I have capture the
initiator log and packet trace as well, let me know if needed. 
 
Sep 16 17:02:51 vic17 kernel: fc_sess_recv_plogi_req: incoming PLOGI
from  10101 wwpn 20000002b3d90d26 state INIT - accept
Sep 16 17:02:51 vic17 kernel: fc_seq_start: exch   11 f_ctl 800000 seq
0 f_ctl      0
Sep 16 17:02:51 vic17 kernel: fcoe_xmit       010102 -> 010101 xids 0005
0011 ELS rep ELS LS_ACC
Sep 16 17:02:51 vic17 kernel: sess to  10101 event FC_EV_ACC state
SESS_ST_INIT -> SESS_ST_PLOGI_RECV
Sep 16 17:02:51 vic17 kernel: fcoe_rcv: skb_info: len:66 data_len:0
head:f4a86200 data:f4a86220 tail:f4a86262 end:f4a86280 sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fcoe_percpu_receive_thread: skb_info:
len:66 data_len:0 head:f4a86200 data:f4a86220 tail:f4a86262 end:f4a86280
sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fcs_local_port_prli_accept: PRLI callback.
remote  10101 local  10102
Sep 16 17:02:51 vic17 kernel: fcs_local_port_prli_accept: accept remote
fid  10101
Sep 16 17:02:51 vic17 kernel: fc_seq_start: exch    6 f_ctl 800000 seq
0 f_ctl      0
Sep 16 17:02:51 vic17 kernel: fcoe_xmit       010102 -> 010101 xids 0006
0006 ELS rep ELS LS_ACC
Sep 16 17:02:51 vic17 kernel: sess to  10101 event FC_EV_ACC state
SESS_ST_PLOGI_RECV -> SESS_ST_READY
Sep 16 17:02:51 vic17 kernel: [4370]: scst: scst_init_session:4931:Using
security group "Default" for initiator "20000002b3d90d26"
Sep 16 17:02:51 vic17 kernel: [4370]: scst_init_session:4934:Assigning
session dcb14170 to acg Default
Sep 16 17:02:51 vic17 kernel: [4370]: scst_alloc_add_tgt_dev:526:Virtual
device disk1 on SCST lun=0
Sep 16 17:02:51 vic17 kernel: [4370]: scst_alloc_set_UA:2720:Adding new
UA to tgt_dev e44c6000
Sep 16 17:02:51 vic17 kernel: fcoe_rcv: skb_info: len:50 data_len:0
head:f4b88e00 data:f4b88e20 tail:f4b88e52 end:f4b88e80 sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fcoe_percpu_receive_thread: skb_info:
len:50 data_len:0 head:f4b88e00 data:f4b88e20 tail:f4b88e52 end:f4b88e80
sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fc_seq_start: exch   13 f_ctl 800000 seq
0 f_ctl      0
Sep 16 17:02:51 vic17 kernel: fcoe_xmit       010102 -> 010101 xids 0007
0013 ELS rep ELS LS_RJT
Sep 16 17:02:51 vic17 kernel: fcoe_rcv: skb_info: len:78 data_len:0
head:f4b88e00 data:f4b88e20 tail:f4b88e6e end:f4b88e80 sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fcoe_percpu_receive_thread: skb_info:
len:78 data_len:0 head:f4b88e00 data:f4b88e20 tail:f4b88e6e end:f4b88e80
sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: [17192]: scst:
scst_parse_cmd:536:***ERROR*** Expected data direction 0 for opcode 0x12
(handler vdisk, target openfct) doesn't match decoded value 2
Sep 16 17:02:51 vic17 kernel: Failed CDB:
Sep 16 17:02:51 vic17 kernel:
(h)___0__1__2__3__4__5__6__7__8__9__A__B__C__D__E__F
Sep 16 17:02:51 vic17 kernel:    0: 12 00 00 00 24 00   ....$.
Sep 16 17:02:51 vic17 kernel: fc_seq_start: exch    8 f_ctl 800000 seq
0 f_ctl      0
Sep 16 17:02:51 vic17 kernel: fcoe_xmit       010102 -> 010101 xids 0008
0008 cmd status FCP 
Sep 16 17:02:51 vic17 kernel: fcoe_rcv: skb_info: len:58 data_len:0
head:d57b0000 data:d57b0020 tail:d57b005a end:d57b0080 sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fcoe_percpu_receive_thread: skb_info:
len:58 data_len:0 head:d57b0000 data:d57b0020 tail:d57b005a end:d57b0080
sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fc_seq_start: exch   15 f_ctl 800000 seq
0 f_ctl      0
Sep 16 17:02:51 vic17 kernel: fcoe_xmit       010102 -> 010101 xids 0009
0015 ELS rep ELS LS_RJT
Sep 16 17:02:51 vic17 kernel: fcoe_rcv: skb_info: len:46 data_len:0
head:d57b0200 data:d57b0220 tail:d57b024e end:d57b0280 sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fcoe_percpu_receive_thread: skb_info:
len:46 data_len:0 head:d57b0200 data:d57b0220 tail:d57b024e end:d57b0280
sum:0 dev:eth0
Sep 16 17:02:51 vic17 kernel: fc_exch_recv_req: exch/seq lookup failed:
reject c
Sep 16 17:02:52 vic17 kernel: fc_seq_start: exch    f f_ctl      0 seq
1 f_ctl      0
Sep 16 17:02:52 vic17 kernel: fc_local_port_error: event 2 FC_EV_RJT
retries 0 limit 0
 
Thanks very much for your help.
 
Charles



More information about the devel mailing list