[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)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:35:23 +0000 (08:35 -0600)
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>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c

index 7cb2cd48b17b253954c0c4801b22d7e980a5f644..ea1e6cccd4356c33728df6dd233d88e8a5dcdc1d 100644 (file)
@@ -1735,6 +1735,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);
 }