Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315810
b: refs/heads/master
c: 9a0a950
h: refs/heads/master
v: v3
  • Loading branch information
Julian Anastasov authored and David S. Miller committed Jul 23, 2012
1 parent 832291c commit 9a705d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b70749e64132e17ab02239b82fcb4a2c55554d1
refs/heads/master: 9a0a9502cbf19d31f7387e3066f3d1a491bef616
5 changes: 3 additions & 2 deletions trunk/net/ipv4/tcp_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ static void tcpm_suck_dst(struct tcp_metrics_block *tm, struct dst_entry *dst)
{
u32 val;

tm->tcpm_stamp = jiffies;

val = 0;
if (dst_metric_locked(dst, RTAX_RTT))
val |= 1 << TCP_METRIC_RTT;
Expand Down Expand Up @@ -158,7 +160,6 @@ static struct tcp_metrics_block *tcpm_new(struct dst_entry *dst,
goto out_unlock;
}
tm->tcpm_addr = *addr;
tm->tcpm_stamp = jiffies;

tcpm_suck_dst(tm, dst);

Expand Down Expand Up @@ -621,7 +622,7 @@ bool tcp_tw_remember_stamp(struct inet_timewait_sock *tw)

rcu_read_lock();
tm = __tcp_get_metrics_tw(tw);
if (tw) {
if (tm) {
const struct tcp_timewait_sock *tcptw;
struct sock *sk = (struct sock *) tw;

Expand Down

0 comments on commit 9a705d6

Please sign in to comment.