diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2010-06-11 19:43:33 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:01:43 -0400 |
commit | 281ae642a6475ede25ff86ec124214e346c25e22 (patch) | |
tree | a630626d5c8542278437356c9c521178d302c13e /drivers/scsi/fcoe | |
parent | 56115598c571cadd4b465836e1423a452a908c89 (diff) |
[SCSI] libfcoe: FIP link keep-alive should continue while logged off
A check in fcoe_ctlr_send_keep_alive() returns if there's no
port_id for the local port. This could miss a keep alive if
we just did a host reset and have logged off and will log back in.
Return only if we are doing the port keep alive, in which case
we need to be logged in.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r-- | drivers/scsi/fcoe/libfcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c index 50aaa4bcfc50..cc5e8864b805 100644 --- a/drivers/scsi/fcoe/libfcoe.c +++ b/drivers/scsi/fcoe/libfcoe.c | |||
@@ -343,7 +343,7 @@ static void fcoe_ctlr_send_keep_alive(struct fcoe_ctlr *fip, | |||
343 | 343 | ||
344 | fcf = fip->sel_fcf; | 344 | fcf = fip->sel_fcf; |
345 | lp = fip->lp; | 345 | lp = fip->lp; |
346 | if (!fcf || !lp->port_id) | 346 | if (!fcf || (ports && !lp->port_id)) |
347 | return; | 347 | return; |
348 | 348 | ||
349 | len = sizeof(*kal) + ports * sizeof(*vn); | 349 | len = sizeof(*kal) + ports * sizeof(*vn); |