]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2fc: Handle LOGO flooding from the target
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Tue, 24 Jan 2012 02:00:47 +0000 (18:00 -0800)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 01:36:53 +0000 (09:36 +0800)
Host drops sessions when flood of unsolicited LOGOs are received from the
target. Because of unsufficient PLOGI retries, upon exceeding the retry count
of 3, the target sessions are dropped. Increased the retry count to 255 to
allow sufficient retries in this scenario.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 44c570b5b09d1d1cc3167834f89f754f1bc5ac14)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/bnx2fc/bnx2fc.h
drivers/scsi/bnx2fc/bnx2fc_fcoe.c

index 20dc441c47d1a0bb9c5625c9cf74baee20ac459b..3dfd1f9cbdf5f0895a1b819ef4a5c5d7eb1380c6 100644 (file)
 #define BNX2FC_HASH_TBL_CHUNK_SIZE     (16 * 1024)
 
 #define BNX2FC_MAX_SEQS                        255
+#define BNX2FC_MAX_RETRY_CNT           3
+#define BNX2FC_MAX_RPORT_RETRY_CNT     255
 
 #define BNX2FC_READ                    (1 << 1)
 #define BNX2FC_WRITE                   (1 << 0)
index 6e38f63b51246bb04a9ad0cc10220c71aaa2b5eb..1b4f230f6ec2f39f423d4898d47535aa820eab02 100644 (file)
@@ -954,8 +954,8 @@ static int bnx2fc_lport_config(struct fc_lport *lport)
 {
        lport->link_up = 0;
        lport->qfull = 0;
-       lport->max_retry_count = 3;
-       lport->max_rport_retry_count = 3;
+       lport->max_retry_count = BNX2FC_MAX_RETRY_CNT;
+       lport->max_rport_retry_count = BNX2FC_MAX_RPORT_RETRY_CNT;
        lport->e_d_tov = 2 * 1000;
        lport->r_a_tov = 10 * 1000;