aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2010-03-12 19:08:12 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 10:23:37 -0400
commitccfc3098029229d5298d4fc07f1b2c967526e56b (patch)
treeb3f2e03df96a0968aa4ff0c434cdfca6134a8eb2 /drivers/scsi/libfc
parentf4568b8b9766d083c0e61346173bb22274128208 (diff)
[SCSI] libfc: send point-to-poin FLOGI LS_ACC to assigned D_DID
The method we've been using for point-to-point mode requires that the LS_ACC for the FLOGI uses the D_ID and S_ID assigned to the remote port and local port, not those in the exchange. This is not the correct method, but for now, it's what works with the old target, as well as with new targets based on libfc. This patch changes the addresses used accordingly. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r--drivers/scsi/libfc/fc_lport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index fe8700f4326a..a6cf94d44ef8 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -835,7 +835,7 @@ static void fc_lport_recv_flogi_req(struct fc_seq *sp_in,
835 */ 835 */
836 f_ctl = FC_FC_EX_CTX | FC_FC_LAST_SEQ | FC_FC_END_SEQ; 836 f_ctl = FC_FC_EX_CTX | FC_FC_LAST_SEQ | FC_FC_END_SEQ;
837 ep = fc_seq_exch(sp); 837 ep = fc_seq_exch(sp);
838 fc_fill_fc_hdr(fp, FC_RCTL_ELS_REP, ep->did, ep->sid, 838 fc_fill_fc_hdr(fp, FC_RCTL_ELS_REP, remote_fid, local_fid,
839 FC_TYPE_ELS, f_ctl, 0); 839 FC_TYPE_ELS, f_ctl, 0);
840 lport->tt.seq_send(lport, sp, fp); 840 lport->tt.seq_send(lport, sp, fp);
841 841