Skip to content

Commit 74f46a0

Browse files
Karan Tilak Kumarmartinkpetersen
authored andcommitted
scsi: fnic: Turn off FDMI ACTIVE flags on link down
When the link goes down and comes up, FDMI requests are not sent out anymore. Fix bug by turning off FNIC_FDMI_ACTIVE when the link goes down. Fixes: 09c1e6a ("scsi: fnic: Add and integrate support for FDMI") Reviewed-by: Sesidhar Baddela <[email protected]> Reviewed-by: Arulprabhu Ponnusamy <[email protected]> Reviewed-by: Gian Carlo Boffa <[email protected]> Reviewed-by: Arun Easi <[email protected]> Tested-by: Karan Tilak Kumar <[email protected]> Cc: [email protected] Signed-off-by: Karan Tilak Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: John Meneghini <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a35b29b commit 74f46a0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

drivers/scsi/fnic/fdls_disc.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5029,9 +5029,12 @@ void fnic_fdls_link_down(struct fnic_iport_s *iport)
50295029
fdls_delete_tport(iport, tport);
50305030
}
50315031

5032-
if ((fnic_fdmi_support == 1) && (iport->fabric.fdmi_pending > 0)) {
5033-
timer_delete_sync(&iport->fabric.fdmi_timer);
5034-
iport->fabric.fdmi_pending = 0;
5032+
if (fnic_fdmi_support == 1) {
5033+
if (iport->fabric.fdmi_pending > 0) {
5034+
timer_delete_sync(&iport->fabric.fdmi_timer);
5035+
iport->fabric.fdmi_pending = 0;
5036+
}
5037+
iport->flags &= ~FNIC_FDMI_ACTIVE;
50355038
}
50365039

50375040
FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,

drivers/scsi/fnic/fnic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#define DRV_NAME "fnic"
3232
#define DRV_DESCRIPTION "Cisco FCoE HBA Driver"
33-
#define DRV_VERSION "1.8.0.1"
33+
#define DRV_VERSION "1.8.0.2"
3434
#define PFX DRV_NAME ": "
3535
#define DFX DRV_NAME "%d: "
3636

0 commit comments

Comments
 (0)