|
@@ -4143,9 +4143,6 @@ static bool tcp_try_coalesce(struct sock *sk,
|
|
|
|
|
|
*fragstolen = false;
|
|
|
|
|
|
- if (tcp_hdr(from)->fin)
|
|
|
- return false;
|
|
|
-
|
|
|
/* Its possible this segment overlaps with prior segment in queue */
|
|
|
if (TCP_SKB_CB(from)->seq != TCP_SKB_CB(to)->end_seq)
|
|
|
return false;
|
|
@@ -4158,6 +4155,7 @@ static bool tcp_try_coalesce(struct sock *sk,
|
|
|
NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPRCVCOALESCE);
|
|
|
TCP_SKB_CB(to)->end_seq = TCP_SKB_CB(from)->end_seq;
|
|
|
TCP_SKB_CB(to)->ack_seq = TCP_SKB_CB(from)->ack_seq;
|
|
|
+ TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags;
|
|
|
return true;
|
|
|
}
|
|
|
|