* [PATCH 1/2] net-next-2.6: SYN retransmits: Rename threshold variable
@ 2010-09-28 19:45 Damian Lukowski
2010-10-01 0:23 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Damian Lukowski @ 2010-09-28 19:45 UTC (permalink / raw)
To: netdev
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] net-next-2.6: SYN retransmits: Rename threshold variable
2010-09-28 19:45 [PATCH 1/2] net-next-2.6: SYN retransmits: Rename threshold variable Damian Lukowski
@ 2010-10-01 0:23 ` David Miller
2010-10-01 5:22 ` Damian Lukowski
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2010-10-01 0:23 UTC (permalink / raw)
To: damian; +Cc: netdev
Damian please don't do things like this.
When we make a change in net-2.6, that change is going to propagate into
net-next-2.6 the next time I do a merge.
And in this case here, the addition of the "syn_set" boolean argument to
retransmits_timed_out() will happen at that point.
So if anything, you should build on top of the bug fix we put into
net-2.6 instead of duplicating the change.
Adding the same change in two different ways to net-2.6 and net-next-2.6
makes the merge a pain in the neck for me and just makes things look
real confusing.
I'm not applying these two patches, please ask me to merge net-2.6 into
net-next-2.6 and this way you can code them relative to that.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] net-next-2.6: SYN retransmits: Rename threshold variable
2010-10-01 0:23 ` David Miller
@ 2010-10-01 5:22 ` Damian Lukowski
0 siblings, 0 replies; 3+ messages in thread
From: Damian Lukowski @ 2010-10-01 5:22 UTC (permalink / raw)
To: David Miller; +Cc: netdev
Am Donnerstag, den 30.09.2010, 17:23 -0700 schrieb David Miller:
> Damian please don't do things like this.
No problem. It was just for preventing the merge conflict Stephen
experienced, as I've seen that parameters have changed in net-next-2.6
already.
Damian
> When we make a change in net-2.6, that change is going to propagate into
> net-next-2.6 the next time I do a merge.
>
> And in this case here, the addition of the "syn_set" boolean argument to
> retransmits_timed_out() will happen at that point.
>
> So if anything, you should build on top of the bug fix we put into
> net-2.6 instead of duplicating the change.
>
> Adding the same change in two different ways to net-2.6 and net-next-2.6
> makes the merge a pain in the neck for me and just makes things look
> real confusing.
>
> I'm not applying these two patches, please ask me to merge net-2.6 into
> net-next-2.6 and this way you can code them relative to that.
>
> Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-01 5:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 19:45 [PATCH 1/2] net-next-2.6: SYN retransmits: Rename threshold variable Damian Lukowski
2010-10-01 0:23 ` David Miller
2010-10-01 5:22 ` Damian Lukowski
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).