aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/fcoe_sw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/fcoe/fcoe_sw.c')
-rw-r--r--drivers/scsi/fcoe/fcoe_sw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/fcoe/fcoe_sw.c b/drivers/scsi/fcoe/fcoe_sw.c
index dc4cd5e25760..cf83675a0fb9 100644
--- a/drivers/scsi/fcoe/fcoe_sw.c
+++ b/drivers/scsi/fcoe/fcoe_sw.c
@@ -116,7 +116,8 @@ static int fcoe_sw_lport_config(struct fc_lport *lp)
116{ 116{
117 int i = 0; 117 int i = 0;
118 118
119 lp->link_status = 0; 119 lp->link_up = 0;
120 lp->qfull = 0;
120 lp->max_retry_count = 3; 121 lp->max_retry_count = 3;
121 lp->e_d_tov = 2 * 1000; /* FC-FS default */ 122 lp->e_d_tov = 2 * 1000; /* FC-FS default */
122 lp->r_a_tov = 2 * 2 * 1000; 123 lp->r_a_tov = 2 * 2 * 1000;
@@ -181,9 +182,8 @@ static int fcoe_sw_netdev_config(struct fc_lport *lp, struct net_device *netdev)
181 if (fc_set_mfs(lp, mfs)) 182 if (fc_set_mfs(lp, mfs))
182 return -EINVAL; 183 return -EINVAL;
183 184
184 lp->link_status = ~FC_PAUSE & ~FC_LINK_UP;
185 if (!fcoe_link_ok(lp)) 185 if (!fcoe_link_ok(lp))
186 lp->link_status |= FC_LINK_UP; 186 lp->link_up = 1;
187 187
188 /* offload features support */ 188 /* offload features support */
189 if (fc->real_dev->features & NETIF_F_SG) 189 if (fc->real_dev->features & NETIF_F_SG)