aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2011-08-30 18:54:47 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-09-17 09:57:52 -0400
commitc780673cfb1e3d16d23f9808738539625d3b9363 (patch)
treedea879bd7a7732f4490b1f683fa36dd951407763
parentebd1f645bd4a284022c7d449a63fe48a3fc5a86e (diff)
[SCSI] bnx2fc: Reset max receive frame size during link up
If the max receive frame size is changed during link down, the driver uses the same value after linkup unless it is reset to default. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_fcoe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 24e707151d3..6387067b91a 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -863,6 +863,8 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event,
863 bnx2fc_link_speed_update(lport); 863 bnx2fc_link_speed_update(lport);
864 864
865 if (link_possible && !bnx2fc_link_ok(lport)) { 865 if (link_possible && !bnx2fc_link_ok(lport)) {
866 /* Reset max recv frame size to default */
867 fc_set_mfs(lport, BNX2FC_MFS);
866 printk(KERN_ERR "indicate_netevent: ctlr_link_up\n"); 868 printk(KERN_ERR "indicate_netevent: ctlr_link_up\n");
867 fcoe_ctlr_link_up(&interface->ctlr); 869 fcoe_ctlr_link_up(&interface->ctlr);
868 } else if (fcoe_ctlr_link_down(&interface->ctlr)) { 870 } else if (fcoe_ctlr_link_down(&interface->ctlr)) {