Skip to content

Commit

Permalink
Fix merge [2/2]: "tcp: introduce per-route feature RTAX_FEATURE_ECN_LOW"
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Jan 10, 2024
1 parent bd790be commit 627963a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,15 @@ static inline void tcp_fast_path_check(struct sock *sk)
tcp_fast_path_on(tp);
}

static inline void tcp_set_ecn_low_from_dst(struct sock *sk,
const struct dst_entry *dst)
{
struct tcp_sock *tp = tcp_sk(sk);

if (dst_feature(dst, RTAX_FEATURE_ECN_LOW))
tp->ecn_flags |= TCP_ECN_LOW;
}

u32 tcp_delack_max(const struct sock *sk);

/* Compute the actual rto_min value */
Expand Down

0 comments on commit 627963a

Please sign in to comment.