diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 7d9a4fcf2330..87b82164451c 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2025,7 +2025,7 @@ static bool tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb, /* If next ACK is likely to come too late, * ie in more than min(1ms, half srtt), do not defer. */ - threshold = min(srtt_in_ns >> 1, NSEC_PER_MSEC); + threshold = min_t(u64, srtt_in_ns >> 1, NSEC_PER_MSEC); if ((s64)(how_far_is_the_ack - threshold) > 0) goto send_now;