aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/rport_ftrs.c
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 19:51:28 -0700
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 12:04:10 -0500
commitc507341713114e2510ad7621088b359367adf1ce (patch)
treebd4080a1f1ee37755b8edd61eda13a8b1bc35b42 /drivers/scsi/bfa/rport_ftrs.c
parent[SCSI] bfa: fix interrupt coalescing setting (diff)
downloadlinux-dev-c507341713114e2510ad7621088b359367adf1ce.tar.xz
linux-dev-c507341713114e2510ad7621088b359367adf1ce.zip
[SCSI] bfa: fix rport speed setting
When a rport goes offline, its speed setting was not reset. Subsequently, if the rport was not deleted due to it coming back online within rport del timeout, previously discovered speed would continue to show up. The fix is to reset the speed when processing rport offline transition. In rport attributes, rport's with unknown speed were indicated as TRL enforced. The right thing do to would be to use TRL default speed to determine if TRL is enforced, when TRL is enabled. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/rport_ftrs.c')
-rw-r--r--drivers/scsi/bfa/rport_ftrs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/rport_ftrs.c b/drivers/scsi/bfa/rport_ftrs.c
index acecab83f82f..f2a9361ce9a4 100644
--- a/drivers/scsi/bfa/rport_ftrs.c
+++ b/drivers/scsi/bfa/rport_ftrs.c
@@ -274,6 +274,7 @@ void bfa_fcs_rpf_rport_offline(struct bfa_fcs_rport_s *rport)
if (__fcs_min_cfg(rport->port->fcs))
return;
+ rport->rpf.rpsc_speed = 0;
bfa_sm_send_event(&rport->rpf, RPFSM_EVENT_RPORT_OFFLINE);
}