/* @westwood_update_window It updates RTT evaluation window if it is the right moment to do it. If so it calls filter for evaluating bandwidth.  */
static void westwood_update_window(struct sock *sk)
/* @westwood_update_window It updates RTT evaluation window if it is the right moment to do it. If so it calls filter for evaluating bandwidth.  */
static void westwood_update_window(struct sock *sk)
{
	struct westwood *w = inet_csk_ca(sk);
	s32 delta = tcp_time_stamp - w->rtt_win_sx;
	if (w->first_ack) {
		w->snd_una = tcp_sk(sk)->snd_una;
		w->first_ack = 0;
	}
	if (w->rtt && delta > max_t(u32, w->rtt, TCP_WESTWOOD_RTT_MIN)) {
		westwood_filter(w, delta);
		w->bk = 0;
		w->rtt_win_sx = tcp_time_stamp;
	}
}