/* If the connection is idle and we are restarting, then we don't want to do any Vegas calculations until we get fresh RTT samples. So when we restart, we reset our Vegas state to a clean slate. After we get acks for this flight of packets,  */
void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event)
/* If the connection is idle and we are restarting, then we don't want to do any Vegas calculations until we get fresh RTT samples. So when we restart, we reset our Vegas state to a clean slate. After we get acks for this flight of packets,  */
void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event)
{
	if (event == CA_EVENT_CWND_RESTART ||
	    event == CA_EVENT_TX_START)
		tcp_vegas_init(sk);
}