diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2010-12-13 19:17:42 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:37:16 -0500 |
commit | b704495c6707013806d1b66507a967896e2b4a7c (patch) | |
tree | 4ef277e362f33d1803bbacf0e24053e9a6506bb5 /drivers/scsi/bfa/bfi_ms.h | |
parent | f1d584d70f31f54e0a559049906f42db89e2746d (diff) |
[SCSI] bfa: direct attach mode fix.
- Direct attach is not working due to the check of PID in fcxp_send request.
- Added logic to set the lps->lp_pid with the PID assigned for n2n mode.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfi_ms.h')
-rw-r--r-- | drivers/scsi/bfa/bfi_ms.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfi_ms.h b/drivers/scsi/bfa/bfi_ms.h index 8f22ef1a6ed9..19e888a57555 100644 --- a/drivers/scsi/bfa/bfi_ms.h +++ b/drivers/scsi/bfa/bfi_ms.h | |||
@@ -342,6 +342,7 @@ struct bfi_uf_frm_rcvd_s { | |||
342 | enum bfi_lps_h2i_msgs { | 342 | enum bfi_lps_h2i_msgs { |
343 | BFI_LPS_H2I_LOGIN_REQ = 1, | 343 | BFI_LPS_H2I_LOGIN_REQ = 1, |
344 | BFI_LPS_H2I_LOGOUT_REQ = 2, | 344 | BFI_LPS_H2I_LOGOUT_REQ = 2, |
345 | BFI_LPS_H2I_N2N_PID_REQ = 3, | ||
345 | }; | 346 | }; |
346 | 347 | ||
347 | enum bfi_lps_i2h_msgs { | 348 | enum bfi_lps_i2h_msgs { |
@@ -401,10 +402,17 @@ struct bfi_lps_cvl_event_s { | |||
401 | u8 rsvd[3]; | 402 | u8 rsvd[3]; |
402 | }; | 403 | }; |
403 | 404 | ||
405 | struct bfi_lps_n2n_pid_req_s { | ||
406 | struct bfi_mhdr_s mh; /* common msg header */ | ||
407 | u8 lp_tag; | ||
408 | u32 lp_pid:24; | ||
409 | }; | ||
410 | |||
404 | union bfi_lps_h2i_msg_u { | 411 | union bfi_lps_h2i_msg_u { |
405 | struct bfi_mhdr_s *msg; | 412 | struct bfi_mhdr_s *msg; |
406 | struct bfi_lps_login_req_s *login_req; | 413 | struct bfi_lps_login_req_s *login_req; |
407 | struct bfi_lps_logout_req_s *logout_req; | 414 | struct bfi_lps_logout_req_s *logout_req; |
415 | struct bfi_lps_n2n_pid_req_s *n2n_pid_req; | ||
408 | }; | 416 | }; |
409 | 417 | ||
410 | union bfi_lps_i2h_msg_u { | 418 | union bfi_lps_i2h_msg_u { |