aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-11-20 17:55:02 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:01:56 -0500
commit2ec8493f962d55ae85c6716db414c645a6578333 (patch)
treeff5d2ad24e7e321bf6c1f2815967692e7c22ee81 /drivers
parent8cdffdccd948ea4872b7b65280bc04f2fa93fc96 (diff)
[SCSI] libfcoe: add tracking FIP Virtual Link Failure count
Add tracking the Virtual Link Failure count when either we have found the FCF as "aged" or we are receiving FIP Clear Virtual Link from the FCF. Signed-off-by: Yi Zou <yi.zou@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')
-rw-r--r--drivers/scsi/fcoe/libfcoe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
index 9961fd7310b7..34800af808e1 100644
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -578,6 +578,7 @@ static void fcoe_ctlr_age_fcfs(struct fcoe_ctlr *fip)
578 WARN_ON(!fip->fcf_count); 578 WARN_ON(!fip->fcf_count);
579 fip->fcf_count--; 579 fip->fcf_count--;
580 kfree(fcf); 580 kfree(fcf);
581 fc_lport_get_stats(fip->lp)->VLinkFailureCount++;
581 } else if (fcoe_ctlr_mtu_valid(fcf) && 582 } else if (fcoe_ctlr_mtu_valid(fcf) &&
582 (!sel_time || time_before(sel_time, fcf->time))) { 583 (!sel_time || time_before(sel_time, fcf->time))) {
583 sel_time = fcf->time; 584 sel_time = fcf->time;
@@ -990,6 +991,7 @@ static void fcoe_ctlr_recv_clr_vlink(struct fcoe_ctlr *fip,
990 LIBFCOE_FIP_DBG(fip, "performing Clear Virtual Link\n"); 991 LIBFCOE_FIP_DBG(fip, "performing Clear Virtual Link\n");
991 992
992 spin_lock_bh(&fip->lock); 993 spin_lock_bh(&fip->lock);
994 fc_lport_get_stats(lport)->VLinkFailureCount++;
993 fcoe_ctlr_reset(fip); 995 fcoe_ctlr_reset(fip);
994 spin_unlock_bh(&fip->lock); 996 spin_unlock_bh(&fip->lock);
995 997