From: Robert Love <robert.w.love@intel.com>
To: James.Bottomley@suse.de, linux-scsi@vger.kernel.org
Cc: Bhanu Gollapudi <bprakash@broadcom.com>,
Joe Eykholt <jeykholt@cisco.com>,
Robert Love <robert.w.love@intel.com>
Subject: [PATCH 4/5] libfcoe: Send port LKA every FIP_VN_KA_PERIOD secs.
Date: Thu, 21 Jan 2010 10:16:00 -0800 [thread overview]
Message-ID: <20100121181600.16741.17265.stgit@localhost.localdomain> (raw)
In-Reply-To: <20100121181538.16741.33676.stgit@localhost.localdomain>
From: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
libfcoe module doesnt send port keep alive every
FIP_VN_KA_PERIOD due to improper assignment of timeout value.
Update the port_ka_time appropriately by incrementing it by
FIP_VN_KA_PERIOD in fcoe_ctlr_timeout(), so that the link_work
is scheduled to send the port LKA.
Signed-off-by: Bhanu Gollapudi <bprakash@broadcom.com>
Acked-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
---
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 9823291..511cb6b 100644
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -1187,7 +1187,7 @@ static void fcoe_ctlr_timeout(unsigned long arg)
next_timer = fip->ctlr_ka_time;
if (time_after_eq(jiffies, fip->port_ka_time)) {
- fip->port_ka_time += jiffies +
+ fip->port_ka_time = jiffies +
msecs_to_jiffies(FIP_VN_KA_PERIOD);
fip->send_port_ka = 1;
}
next prev parent reply other threads:[~2010-01-21 18:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 18:15 [PATCH 0/5] libfc/libfcoe/fcoe fixes for 2.6.33-rc Robert Love
2010-01-21 18:15 ` [PATCH 1/5] libfc: call ddp setup for only FCP reads to avoid accessing junk fsp pointer Robert Love
2010-01-21 18:15 ` [PATCH 2/5] libfc: Fix e_d_tov ns -> ms scaling factor in PLOGI response Robert Love
2010-01-21 18:15 ` [PATCH 3/5] libfc: Don't assume response request present Robert Love
2010-01-21 18:16 ` Robert Love [this message]
2010-01-21 18:16 ` [PATCH 5/5] fcoe: Only rmmod fcoe.ko if there are no active connections Robert Love
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100121181600.16741.17265.stgit@localhost.localdomain \
--to=robert.w.love@intel.com \
--cc=James.Bottomley@suse.de \
--cc=bprakash@broadcom.com \
--cc=jeykholt@cisco.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).