/*
 * TCP Vegas congestion control interface
 */
#ifndef __TCP_VEGAS_H
#define __TCP_VEGAS_H 1

/* Vegas variables */
struct vegas {
	u32	beg_snd_nxt;	/* right edge during last RTT */
	u32	beg_snd_una;	/* left edge  during last RTT */
	u32	beg_snd_cwnd;	/* saves the size of the cwnd */
	u8	doing_vegas_now;/* if true, do vegas for this RTT */
	u16	cntRTT;		/* # of RTTs measured within last RTT */
	u32	minRTT;		/* min of RTTs measured within last RTT (in usec) */
	u32	baseRTT;	/* the min of all Vegas RTT measurements seen (in usec) */
};

void tcp_vegas_init(struct sock *sk);
void tcp_vegas_state(struct sock *sk, u8 ca_state);
void tcp_vegas_pkts_acked(struct sock *sk, const struct ack_sample *sample);
void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event);
size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr,
			  union tcp_cc_info *info);

#endif	/* __TCP_VEGAS_H */
orm method='get'>
<input type='hidden' name='id' value='9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/drivers/usb/serial/symbolserial.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/serial/symbolserial.c?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/symbolserial.c?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/serial/symbolserial.c?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/drivers/usb/serial/symbolserial.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>drivers</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/serial?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>serial</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/serial/symbolserial.c?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072'>symbolserial.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/serial/symbolserial.c?h=nds-private-remove&amp;id=9fe7bfce8b3e112e8e08c40deb72ee7e24c6f072&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>