diff options
author | Bhanu Prakash Gollapudi <bprakash@broadcom.com> | 2011-10-03 19:45:00 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-16 11:35:45 -0400 |
commit | fd8fa9071e49a56cc91f739813ea88f16b7c1240 (patch) | |
tree | 5d046a9b3a471ad4774420eb189815c40fb85818 /drivers | |
parent | ac013ed1cb7b1b36113548ce83881a1b5f757b58 (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 7e6ce7bd0fb6..d2bbb8030f7e 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c | |||
@@ -870,6 +870,8 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event, | |||
870 | * enable to avoid sending discovery solicitation | 870 | * enable to avoid sending discovery solicitation |
871 | * on a stale vlan | 871 | * on a stale vlan |
872 | */ | 872 | */ |
873 | if (interface->enabled) | ||
874 | fcoe_ctlr_link_up(&interface->ctlr); | ||
873 | } else if (fcoe_ctlr_link_down(&interface->ctlr)) { | 875 | } else if (fcoe_ctlr_link_down(&interface->ctlr)) { |
874 | mutex_lock(&lport->lp_mutex); | 876 | mutex_lock(&lport->lp_mutex); |
875 | list_for_each_entry(vport, &lport->vports, list) | 877 | list_for_each_entry(vport, &lport->vports, list) |