From: Damian Lukowski <damian@tvk.rwth-aachen.de>
To: netdev@vger.kernel.org
Subject: [PATCH 1/2] net-next-2.6: SYN retransmits: Rename threshold variable
Date: Tue, 28 Sep 2010 21:45:44 +0200 [thread overview]
Message-ID: <1285703144.7187.4.camel@nexus> (raw)
This preparatory patch renames the threshold variable in
retransmits_timed_out() for proper code style.
Signed-off-by: Damian Lukowski <damian@tvk.rwth-aachen.de>
---
net/ipv4/tcp_timer.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index baea4a1..98cbc60 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -141,7 +141,7 @@ static bool retransmits_timed_out(struct sock *sk,
unsigned int boundary,
unsigned int timeout)
{
- unsigned int linear_backoff_thresh, start_ts;
+ unsigned int backoff_thresh, start_ts;
if (!inet_csk(sk)->icsk_retransmits)
return false;
@@ -152,13 +152,13 @@ static bool retransmits_timed_out(struct sock *sk,
start_ts = tcp_sk(sk)->retrans_stamp;
if (likely(timeout == 0)) {
- linear_backoff_thresh = ilog2(TCP_RTO_MAX/TCP_RTO_MIN);
+ backoff_thresh = ilog2(TCP_RTO_MAX/TCP_RTO_MIN);
- if (boundary <= linear_backoff_thresh)
+ if (boundary <= backoff_thresh)
timeout = ((2 << boundary) - 1) * TCP_RTO_MIN;
else
- timeout = ((2 << linear_backoff_thresh) - 1) * TCP_RTO_MIN +
- (boundary - linear_backoff_thresh) * TCP_RTO_MAX;
+ timeout = ((2 << backoff_thresh) - 1) * TCP_RTO_MIN +
+ (boundary - backoff_thresh) * TCP_RTO_MAX;
}
return (tcp_time_stamp - start_ts) >= timeout;
}
--
1.7.2.2
next reply other threads:[~2010-09-28 19:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 19:45 Damian Lukowski [this message]
2010-10-01 0:23 ` [PATCH 1/2] net-next-2.6: SYN retransmits: Rename threshold variable David Miller
2010-10-01 5:22 ` Damian Lukowski
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=1285703144.7187.4.camel@nexus \
--to=damian@tvk.rwth-aachen.de \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.