mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 07:39:47 +00:00
[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 <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
9ae89b0296
commit
627e628f66
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user