diff --git a/include/net/tcp.h b/include/net/tcp.h index e75661f92daaaa861a5c416d73674e38dccd1f9e..741154d70a9a1c91a6a4e543cf24869aae766a87 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -1115,7 +1115,7 @@ void tcp_rate_check_app_limited(struct sock *sk); */ static inline int tcp_is_sack(const struct tcp_sock *tp) { - return tp->rx_opt.sack_ok; + return likely(tp->rx_opt.sack_ok); } static inline bool tcp_is_reno(const struct tcp_sock *tp)