aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2011-07-27 18:10:28 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-07-28 04:09:36 -0400
commit688fd36427050a87b19f6830c882ee77bb851ecf (patch)
treef28aba0a93a8efe82af0c95fdc3b261141ea46e7 /drivers/scsi/libfc
parent302ff541d981e58cd455fdbd6a90bd74d0f2109b (diff)
[SCSI] libfc: use FC_MAX_ERROR_CNT
Though defined, FC_MAX_ERROR_CNT is not used. It is used now for CRC error in the path of receiving FCP frame. Signed-off-by: Hillf Danton <dhillf@gmail.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r--drivers/scsi/libfc/fc_fcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c
index 9cd2149519a..41f7070ba9b 100644
--- a/drivers/scsi/libfc/fc_fcp.c
+++ b/drivers/scsi/libfc/fc_fcp.c
@@ -498,7 +498,7 @@ crc_err:
498 stats = per_cpu_ptr(lport->dev_stats, get_cpu()); 498 stats = per_cpu_ptr(lport->dev_stats, get_cpu());
499 stats->ErrorFrames++; 499 stats->ErrorFrames++;
500 /* per cpu count, not total count, but OK for limit */ 500 /* per cpu count, not total count, but OK for limit */
501 if (stats->InvalidCRCCount++ < 5) 501 if (stats->InvalidCRCCount++ < FC_MAX_ERROR_CNT)
502 printk(KERN_WARNING "libfc: CRC error on data " 502 printk(KERN_WARNING "libfc: CRC error on data "
503 "frame for port (%6.6x)\n", 503 "frame for port (%6.6x)\n",
504 lport->port_id); 504 lport->port_id);