]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 01:36:48 +0000 (09:36 +0800)
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>
(cherry picked from commit c780673cfb1e3d16d23f9808738539625d3b9363)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c

index 5d9d4d6904a4b1e600d0338b371fc1458aa3406c..a58072eb552b3deae171241b8d8b5a5803762e96 100644 (file)
@@ -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)) {