Skip to content

Commit

Permalink
[SCSI] bnx2fc: Reset the max receive frame size
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
Bhanu Prakash Gollapudi authored and James Bottomley committed Aug 27, 2011
1 parent 9ae89b0 commit 627e628
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/scsi/bnx2fc/bnx2fc_fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 627e628

Please sign in to comment.