From: Bhanu Prakash Gollapudi Date: Tue, 30 Aug 2011 22:54:47 +0000 (-0700) Subject: bnx2fc: Reset max receive frame size during link up X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~431 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=39a712402c087cef57ed1dac314c72f185fcb843;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: James Bottomley (cherry picked from commit c780673cfb1e3d16d23f9808738539625d3b9363) Signed-off-by: Joe Jin --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 5d9d4d6904a4b..a58072eb552b3 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -864,6 +864,8 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event, bnx2fc_link_speed_update(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"); fcoe_ctlr_link_up(&interface->ctlr); } else if (fcoe_ctlr_link_down(&interface->ctlr)) {