diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index edef2afe905e..c3b0da826980 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -618,7 +618,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, | |||
618 | tcp_event_data_sent(tp, skb, sk); | 618 | tcp_event_data_sent(tp, skb, sk); |
619 | 619 | ||
620 | if (after(tcb->end_seq, tp->snd_nxt) || tcb->seq == tcb->end_seq) | 620 | if (after(tcb->end_seq, tp->snd_nxt) || tcb->seq == tcb->end_seq) |
621 | TCP_INC_STATS(TCP_MIB_OUTSEGS); | 621 | TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS); |
622 | 622 | ||
623 | err = icsk->icsk_af_ops->queue_xmit(skb, 0); | 623 | err = icsk->icsk_af_ops->queue_xmit(skb, 0); |
624 | if (likely(err <= 0)) | 624 | if (likely(err <= 0)) |
@@ -1910,7 +1910,7 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb) | |||
1910 | 1910 | ||
1911 | if (err == 0) { | 1911 | if (err == 0) { |
1912 | /* Update global TCP statistics. */ | 1912 | /* Update global TCP statistics. */ |
1913 | TCP_INC_STATS(TCP_MIB_RETRANSSEGS); | 1913 | TCP_INC_STATS(sock_net(sk), TCP_MIB_RETRANSSEGS); |
1914 | 1914 | ||
1915 | tp->total_retrans++; | 1915 | tp->total_retrans++; |
1916 | 1916 | ||
@@ -2132,7 +2132,7 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority) | |||
2132 | if (tcp_transmit_skb(sk, skb, 0, priority)) | 2132 | if (tcp_transmit_skb(sk, skb, 0, priority)) |
2133 | NET_INC_STATS(LINUX_MIB_TCPABORTFAILED); | 2133 | NET_INC_STATS(LINUX_MIB_TCPABORTFAILED); |
2134 | 2134 | ||
2135 | TCP_INC_STATS(TCP_MIB_OUTRSTS); | 2135 | TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTRSTS); |
2136 | } | 2136 | } |
2137 | 2137 | ||
2138 | /* WARNING: This routine must only be called when we have already sent | 2138 | /* WARNING: This routine must only be called when we have already sent |
@@ -2258,7 +2258,7 @@ struct sk_buff *tcp_make_synack(struct sock *sk, struct dst_entry *dst, | |||
2258 | ); | 2258 | ); |
2259 | 2259 | ||
2260 | th->doff = (tcp_header_size >> 2); | 2260 | th->doff = (tcp_header_size >> 2); |
2261 | TCP_INC_STATS(TCP_MIB_OUTSEGS); | 2261 | TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS); |
2262 | 2262 | ||
2263 | #ifdef CONFIG_TCP_MD5SIG | 2263 | #ifdef CONFIG_TCP_MD5SIG |
2264 | /* Okay, we have all we need - do the md5 hash if needed */ | 2264 | /* Okay, we have all we need - do the md5 hash if needed */ |
@@ -2367,7 +2367,7 @@ int tcp_connect(struct sock *sk) | |||
2367 | */ | 2367 | */ |
2368 | tp->snd_nxt = tp->write_seq; | 2368 | tp->snd_nxt = tp->write_seq; |
2369 | tp->pushed_seq = tp->write_seq; | 2369 | tp->pushed_seq = tp->write_seq; |
2370 | TCP_INC_STATS(TCP_MIB_ACTIVEOPENS); | 2370 | TCP_INC_STATS(sock_net(sk), TCP_MIB_ACTIVEOPENS); |
2371 | 2371 | ||
2372 | /* Timer for repeating the SYN until an answer. */ | 2372 | /* Timer for repeating the SYN until an answer. */ |
2373 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, | 2373 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, |