diff options
author | David S. Miller <davem@davemloft.net> | 2018-08-02 13:55:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-02 13:55:32 -0400 |
commit | 89b1698c93a9dee043154f33d96bca9964e705f1 (patch) | |
tree | dd9dcb1965baae8edcf0b496aaa6a70609b6fc11 /net/ipv4/tcp_input.c | |
parent | ffd7ce3cd9c294f1ff49ec02cdbd1bc7cb913db6 (diff) | |
parent | e30cb13c5a09ff5f043a6570c32e49b063bea6a1 (diff) |
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
The BTF conflicts were simple overlapping changes.
The virtio_net conflict was an overlap of a fix of statistics counter,
happening alongisde a move over to a bonafide statistics structure
rather than counting value on the stack.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 3d6156f07a8d..715d541b52dd 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -247,8 +247,15 @@ static void tcp_ecn_queue_cwr(struct tcp_sock *tp) | |||
247 | 247 | ||
248 | static void tcp_ecn_accept_cwr(struct tcp_sock *tp, const struct sk_buff *skb) | 248 | static void tcp_ecn_accept_cwr(struct tcp_sock *tp, const struct sk_buff *skb) |
249 | { | 249 | { |
250 | if (tcp_hdr(skb)->cwr) | 250 | if (tcp_hdr(skb)->cwr) { |
251 | tp->ecn_flags &= ~TCP_ECN_DEMAND_CWR; | 251 | tp->ecn_flags &= ~TCP_ECN_DEMAND_CWR; |
252 | |||
253 | /* If the sender is telling us it has entered CWR, then its | ||
254 | * cwnd may be very low (even just 1 packet), so we should ACK | ||
255 | * immediately. | ||
256 | */ | ||
257 | tcp_enter_quickack_mode((struct sock *)tp, 2); | ||
258 | } | ||
252 | } | 259 | } |
253 | 260 | ||
254 | static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) | 261 | static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) |