[SCSI] bnx2fc: call ctlr_link_up only when the interface is enabled
commitfd8fa9071e49a56cc91f739813ea88f16b7c1240
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Mon, 3 Oct 2011 23:45:00 +0000 (3 16:45 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 16 Oct 2011 15:35:45 +0000 (16 10:35 -0500)
tree5d046a9b3a471ad4774420eb189815c40fb85818
parentac013ed1cb7b1b36113548ce83881a1b5f757b58
[SCSI] bnx2fc: call ctlr_link_up only when the interface is enabled

Link may not be up when the driver receives ulp_start event, and hence
fcoe_ctlr_link_up is not called. Call fcoe_ctlr_link_up during
indicate_netevent only when the interface is enabled. (It has to be called when
enabled because that is an indication that the vlan discovery is completed).

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c