]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
[SCSI] bnx2fc: Reset the max receive frame size
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 5 Aug 2011 00:38:35 +0000 (17:38 -0700)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 01:07:32 +0000 (09:07 +0800)
Reset max receive frame size every time before attempting FLOGI. Without this,
the stale MFS value will be used.

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

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

index 833e9122e0189e2f8b7ebe1cf2c30ecf238d1d7c..2e37db08a5a9f82c689c43a1de6771bbae4b5a59 100644 (file)
@@ -1736,6 +1736,11 @@ static void bnx2fc_start_disc(struct bnx2fc_interface *interface)
                if (++wait_cnt > 12)
                        break;
        }
+
+       /* Reset max receive frame size to default */
+       if (fc_set_mfs(lport, BNX2FC_MFS))
+               return;
+
        fc_lport_init(lport);
        fc_fabric_login(lport);
 }