diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2010-03-03 17:42:39 -0800 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-04 16:09:37 +0530 |
commit | 5c1fb1d55672a74d1c318f67cdddbb599df9a76c (patch) | |
tree | 0f861cc0e81e201131c2997ae0c4d72b9c1c4247 /drivers/scsi/bfa/vport.c | |
parent | 4c147dd81966bd4ba7f026476237ba67ea72d5d9 (diff) | |
download | linux-5c1fb1d55672a74d1c318f67cdddbb599df9a76c.tar.gz linux-5c1fb1d55672a74d1c318f67cdddbb599df9a76c.tar.bz2 linux-5c1fb1d55672a74d1c318f67cdddbb599df9a76c.zip |
[SCSI] bfa: Defined a new LPS event to clear virtual link on a vport
Clear virtual links was not propagated upwards to bfa from fw.
This resulted in HBA and switch being in an inconsistent state.
So defined a new LPS event for clear virtual link on a vport,
and also now clear virtual link on a baseport, is sent as a
link down event from the fw.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/vport.c')
-rw-r--r-- | drivers/scsi/bfa/vport.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/vport.c b/drivers/scsi/bfa/vport.c index e90f1e38c32d..8d18589e1da2 100644 --- a/drivers/scsi/bfa/vport.c +++ b/drivers/scsi/bfa/vport.c @@ -888,4 +888,15 @@ bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg) bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_OK); } +/** + * Received clear virtual link + */ +void +bfa_cb_lps_cvl_event(void *bfad, void *uarg) +{ + struct bfa_fcs_vport_s *vport = uarg; + /* Send an Offline followed by an ONLINE */ + bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_OFFLINE); + bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_ONLINE); +} |