From: Bhanu Prakash Gollapudi Date: Fri, 5 Aug 2011 00:38:35 +0000 (-0700) Subject: [SCSI] bnx2fc: Reset the max receive frame size X-Git-Tag: next-20110830~54^2~79 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=627e628f6662550455e57466148d03f354ecdd3b;p=karo-tx-linux.git [SCSI] bnx2fc: Reset the max receive frame size 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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 7cb2cd48b17b..ea1e6cccd435 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -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); }