Message ID | 20241008-net-mptcp-fallback-fixes-v1-2-c6fb8e93e551@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 4dabcdf581217e60690467a37c956a5b8dbc6bd9 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | mptcp: misc. fixes involving fallback to TCP | expand |
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 4fd746bd4d54f621601b20c3821e71370a4a615a..68804fd01dafc48101ca8c3f15991dbe02a0dd6f 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2342,10 +2342,7 @@ static bool tcp_can_coalesce_send_queue_head(struct sock *sk, int len) if (len <= skb->len) break; - if (unlikely(TCP_SKB_CB(skb)->eor) || - tcp_has_tx_tstamp(skb) || - !skb_pure_zcopy_same(skb, next) || - skb_frags_readable(skb) != skb_frags_readable(next)) + if (tcp_has_tx_tstamp(skb) || !tcp_skb_can_collapse(skb, next)) return false; len -= skb->len;