提交 c780673c 编写于 作者: B Bhanu Prakash Gollapudi 提交者: James Bottomley

[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: NBhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 ebd1f645
...@@ -863,6 +863,8 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event, ...@@ -863,6 +863,8 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event,
bnx2fc_link_speed_update(lport); bnx2fc_link_speed_update(lport);
if (link_possible && !bnx2fc_link_ok(lport)) { if (link_possible && !bnx2fc_link_ok(lport)) {
/* Reset max recv frame size to default */
fc_set_mfs(lport, BNX2FC_MFS);
printk(KERN_ERR "indicate_netevent: ctlr_link_up\n"); printk(KERN_ERR "indicate_netevent: ctlr_link_up\n");
fcoe_ctlr_link_up(&interface->ctlr); fcoe_ctlr_link_up(&interface->ctlr);
} else if (fcoe_ctlr_link_down(&interface->ctlr)) { } else if (fcoe_ctlr_link_down(&interface->ctlr)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册