[SCSI] bfa: fix rport speed setting
authorJing Huang <huangj@brocade.com>
Fri, 9 Jul 2010 02:51:28 +0000 (19:51 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:04:10 +0000 (12:04 -0500)
commitc507341713114e2510ad7621088b359367adf1ce
treebd4080a1f1ee37755b8edd61eda13a8b1bc35b42
parent7c8146510c9cacdaaeb273b5fef6b9201d933bc1
[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>
drivers/scsi/bfa/lport_api.c
drivers/scsi/bfa/rport_api.c
drivers/scsi/bfa/rport_ftrs.c