/*
 * 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 */
d='get'>
<input type='hidden' name='id' value='473153291b8a131c86787fd9b076a529573e2c19'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>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/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=473153291b8a131c86787fd9b076a529573e2c19'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/x86/entry_from_vm86.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/selftests/x86/entry_from_vm86.c?id=473153291b8a131c86787fd9b076a529573e2c19'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/x86/entry_from_vm86.c?id=473153291b8a131c86787fd9b076a529573e2c19'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/x86/entry_from_vm86.c?id=473153291b8a131c86787fd9b076a529573e2c19'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/x86/entry_from_vm86.c'>
<input type='hidden' name='id' value='473153291b8a131c86787fd9b076a529573e2c19'/><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/?id=473153291b8a131c86787fd9b076a529573e2c19'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=473153291b8a131c86787fd9b076a529573e2c19'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing?id=473153291b8a131c86787fd9b076a529573e2c19'>testing</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests?id=473153291b8a131c86787fd9b076a529573e2c19'>selftests</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/x86?id=473153291b8a131c86787fd9b076a529573e2c19'>x86</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/x86/entry_from_vm86.c?id=473153291b8a131c86787fd9b076a529573e2c19'>entry_from_vm86.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/tools/testing/selftests/x86/entry_from_vm86.c?id=473153291b8a131c86787fd9b076a529573e2c19&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>