diff options
author | David S. Miller <davem@davemloft.net> | 2017-10-30 01:10:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-30 08:09:24 -0400 |
commit | e1ea2f9856b765a2eaabb403a6751f70efc9ba4c (patch) | |
tree | 771f0f96fdab1b27757730e96d911c73f5499ee4 /net/ipv4/tcp_output.c | |
parent | aad93c70b9a3b80dbc383a31e77a119f69bdd856 (diff) | |
parent | 0b07194bb55ed836c2cc7c22e866b87a14681984 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Several conflicts here.
NFP driver bug fix adding nfp_netdev_is_nfp_repr() check to
nfp_fl_output() needed some adjustments because the code block is in
an else block now.
Parallel additions to net/pkt_cls.h and net/sch_generic.h
A bug fix in __tcp_retransmit_skb() conflicted with some of
the rbtree changes in net-next.
The tc action RCU callback fixes in 'net' had some overlap with some
of the recent tcf_block reworking.
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 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index aab6e7145013..a69a34f57330 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -781,8 +781,10 @@ static void tcp_tsq_handler(struct sock *sk) | |||
781 | struct tcp_sock *tp = tcp_sk(sk); | 781 | struct tcp_sock *tp = tcp_sk(sk); |
782 | 782 | ||
783 | if (tp->lost_out > tp->retrans_out && | 783 | if (tp->lost_out > tp->retrans_out && |
784 | tp->snd_cwnd > tcp_packets_in_flight(tp)) | 784 | tp->snd_cwnd > tcp_packets_in_flight(tp)) { |
785 | tcp_mstamp_refresh(tp); | ||
785 | tcp_xmit_retransmit_queue(sk); | 786 | tcp_xmit_retransmit_queue(sk); |
787 | } | ||
786 | 788 | ||
787 | tcp_write_xmit(sk, tcp_current_mss(sk), tp->nonagle, | 789 | tcp_write_xmit(sk, tcp_current_mss(sk), tp->nonagle, |
788 | 0, GFP_ATOMIC); | 790 | 0, GFP_ATOMIC); |
@@ -2307,6 +2309,7 @@ static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, | |||
2307 | 2309 | ||
2308 | sent_pkts = 0; | 2310 | sent_pkts = 0; |
2309 | 2311 | ||
2312 | tcp_mstamp_refresh(tp); | ||
2310 | if (!push_one) { | 2313 | if (!push_one) { |
2311 | /* Do MTU probing. */ | 2314 | /* Do MTU probing. */ |
2312 | result = tcp_mtu_probe(sk); | 2315 | result = tcp_mtu_probe(sk); |
@@ -2318,7 +2321,6 @@ static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, | |||
2318 | } | 2321 | } |
2319 | 2322 | ||
2320 | max_segs = tcp_tso_segs(sk, mss_now); | 2323 | max_segs = tcp_tso_segs(sk, mss_now); |
2321 | tcp_mstamp_refresh(tp); | ||
2322 | while ((skb = tcp_send_head(sk))) { | 2324 | while ((skb = tcp_send_head(sk))) { |
2323 | unsigned int limit; | 2325 | unsigned int limit; |
2324 | 2326 | ||
@@ -2911,8 +2913,10 @@ int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs) | |||
2911 | -ENOBUFS; | 2913 | -ENOBUFS; |
2912 | } tcp_skb_tsorted_restore(skb); | 2914 | } tcp_skb_tsorted_restore(skb); |
2913 | 2915 | ||
2914 | if (!err) | 2916 | if (!err) { |
2915 | tcp_update_skb_after_send(tp, skb); | 2917 | tcp_update_skb_after_send(tp, skb); |
2918 | tcp_rate_skb_sent(sk, skb); | ||
2919 | } | ||
2916 | } else { | 2920 | } else { |
2917 | err = tcp_transmit_skb(sk, skb, 1, GFP_ATOMIC); | 2921 | err = tcp_transmit_skb(sk, skb, 1, GFP_ATOMIC); |
2918 | } | 2922 | } |