]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SCSI] bnx2fc: Reset max receive frame size during link up
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Tue, 30 Aug 2011 22:54:47 +0000 (15:54 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 17 Sep 2011 13:57:52 +0000 (17:57 +0400)
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>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c

index 24e707151d3e79706f537a028157727741d14974..6387067b91a6e9f0f19704aeba410f6d1ad6643c 100644 (file)
@@ -863,6 +863,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)) {