/* TCP Westwood Here limit is evaluated as Bw estimation*RTTmin (for obtaining it in packets we use mss_cache). Rttmin is guaranteed to be >= 2 so avoids ever returning 0.  */
static u32 tcp_westwood_bw_rttmin(const struct sock *sk)
/* TCP Westwood Here limit is evaluated as Bw estimation*RTTmin (for obtaining it in packets we use mss_cache). Rttmin is guaranteed to be >= 2 so avoids ever returning 0.  */
static u32 tcp_westwood_bw_rttmin(const struct sock *sk)
{
	const struct tcp_sock *tp = tcp_sk(sk);
	const struct westwood *w = inet_csk_ca(sk);
	return max_t(u32, (w->bw_est * w->rtt_min) / tp->mss_cache, 2);
}