|
@@ -4139,6 +4139,7 @@ static void tcp_data_queue_ofo(struct sock *sk, struct sk_buff *skb)
|
|
|
if (!tcp_try_coalesce(sk, skb1, skb, &fragstolen)) {
|
|
|
__skb_queue_after(&tp->out_of_order_queue, skb1, skb);
|
|
|
} else {
|
|
|
+ tcp_grow_window(sk, skb);
|
|
|
kfree_skb_partial(skb, fragstolen);
|
|
|
skb = NULL;
|
|
|
}
|
|
@@ -4214,8 +4215,10 @@ add_sack:
|
|
|
if (tcp_is_sack(tp))
|
|
|
tcp_sack_new_ofo_skb(sk, seq, end_seq);
|
|
|
end:
|
|
|
- if (skb)
|
|
|
+ if (skb) {
|
|
|
+ tcp_grow_window(sk, skb);
|
|
|
skb_set_owner_r(skb, sk);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
static int __must_check tcp_queue_rcv(struct sock *sk, struct sk_buff *skb, int hdrlen,
|