aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc/fc_lport.c
diff options
context:
space:
mode:
authorKiran Patil <kiran.patil@intel.com>2011-01-28 19:05:22 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 12:08:22 -0500
commitacc1a921659561c4ea97eca6e3c2633adecbcd81 (patch)
tree50f99072fc7fbdcc7c317b52154ca47b0bd1b963 /drivers/scsi/libfc/fc_lport.c
parent78a582463c1e3a262aeaf2a291e06a93a7b34212 (diff)
[SCSI] libfc: Extending lport's roles for target if there is a registered target.
Problem: From initaitor machine, when queried role of target (other end of connection), it is "initiator", hence SCSI-ml doesn't send any LUN Inquiry commands. Fix: If there is a registered target for FC_TYPE_FCP, extend lport's params (capability) to be target as well, By default lport params are INITIATOR only. Having this fix, caused initiator to send SCSI LUN inquiry command to target. Signed-off-by: Kiran Patil <kiran.patil@intel.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/fc_lport.c')
-rw-r--r--drivers/scsi/libfc/fc_lport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index e0ef81426c33..735f1f82ccfd 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -1597,6 +1597,7 @@ int fc_lport_config(struct fc_lport *lport)
1597 1597
1598 fc_lport_add_fc4_type(lport, FC_TYPE_FCP); 1598 fc_lport_add_fc4_type(lport, FC_TYPE_FCP);
1599 fc_lport_add_fc4_type(lport, FC_TYPE_CT); 1599 fc_lport_add_fc4_type(lport, FC_TYPE_CT);
1600 fc_fc4_conf_lport_params(lport, FC_TYPE_FCP);
1600 1601
1601 return 0; 1602 return 0;
1602} 1603}