diff options
author | David S. Miller <davem@davemloft.net> | 2014-05-12 13:19:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-12 13:19:14 -0400 |
commit | 5f013c9bc70214dcacd5fbed5a06c217d6ff9c59 (patch) | |
tree | 34c3a633000e03bca57d0ce55d8759f86edecc03 /net/ipv4/tcp_output.c | |
parent | 51ee42efa0829cf9e46f8e1c0ab7a9ab6facf3f2 (diff) | |
parent | 1a466ae96e9f749d02a73315a3e66375e61a61dd (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/ethernet/altera/altera_sgdma.c
net/netlink/af_netlink.c
net/sched/cls_api.c
net/sched/sch_api.c
The netlink conflict dealt with moving to netlink_capable() and
netlink_ns_capable() in the 'net' tree vs. supporting 'tc' operations
in non-init namespaces. These were simple transformations from
netlink_capable to netlink_ns_capable.
The Altera driver conflict was simply code removal overlapping some
void pointer cast cleanups in net-next.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 89277a34f2c9..694711a140d4 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -2488,8 +2488,14 @@ int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb) | |||
2488 | err = tcp_transmit_skb(sk, skb, 1, GFP_ATOMIC); | 2488 | err = tcp_transmit_skb(sk, skb, 1, GFP_ATOMIC); |
2489 | } | 2489 | } |
2490 | 2490 | ||
2491 | if (likely(!err)) | 2491 | if (likely(!err)) { |
2492 | TCP_SKB_CB(skb)->sacked |= TCPCB_EVER_RETRANS; | 2492 | TCP_SKB_CB(skb)->sacked |= TCPCB_EVER_RETRANS; |
2493 | /* Update global TCP statistics. */ | ||
2494 | TCP_INC_STATS(sock_net(sk), TCP_MIB_RETRANSSEGS); | ||
2495 | if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN) | ||
2496 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPSYNRETRANS); | ||
2497 | tp->total_retrans++; | ||
2498 | } | ||
2493 | return err; | 2499 | return err; |
2494 | } | 2500 | } |
2495 | 2501 | ||
@@ -2499,12 +2505,6 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb) | |||
2499 | int err = __tcp_retransmit_skb(sk, skb); | 2505 | int err = __tcp_retransmit_skb(sk, skb); |
2500 | 2506 | ||
2501 | if (err == 0) { | 2507 | if (err == 0) { |
2502 | /* Update global TCP statistics. */ | ||
2503 | TCP_INC_STATS(sock_net(sk), TCP_MIB_RETRANSSEGS); | ||
2504 | if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN) | ||
2505 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPSYNRETRANS); | ||
2506 | tp->total_retrans++; | ||
2507 | |||
2508 | #if FASTRETRANS_DEBUG > 0 | 2508 | #if FASTRETRANS_DEBUG > 0 |
2509 | if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_RETRANS) { | 2509 | if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_RETRANS) { |
2510 | net_dbg_ratelimited("retrans_out leaked\n"); | 2510 | net_dbg_ratelimited("retrans_out leaked\n"); |