Hello.
While forward-porting BBRv3 for v6.15-rc1 I've bumped into the upstream commit 041fb11d518f5d that changed TCP_ECN_OK definition into TCP_ECN_MODE_RFC3168 and also introduced TCP_ECN_MODE_ACCECN.
My question is, given there's AccECN available now, should bbr_can_use_ecn() still check for TCP_ECN_OK aka TCP_ECN_MODE_RFC3168 only, or tcp_ecn_mode_any() should be used?
Currently, I've ended up doing this:
static bool bbr_can_use_ecn(const struct sock *sk)
{
const struct tcp_sock *tp = tcp_sk(sk);
return tcp_ecn_mode_any(tp) &&
(tcp_sk(sk)->ecn_flags & TCP_ECN_LOW);
}
Thanks.