svn commit: r184864 - user/kmacy/HEAD_fast_multi_xmit/sys/netinet

Robert Watson rwatson at FreeBSD.org
Wed Nov 12 13:59:46 PST 2008


On Wed, 12 Nov 2008, Kip Macy wrote:

> -	if (tp->t_maxopd <= mss)
> -		return (inp);
> -	tcp_output_send(tp);
> +
> +	if ((tp->t_flags & TF_RECURSE) == 0) {
> +		tp->t_flags |= TF_RECURSE;
> +		tcp_output_send(tp);
> +		tp->t_flags &= ~TF_RECURSE;
> +	}

Perhaps TF_DONTRECURSE?  I find the current polarity slightly confusing.

Robert N M Watson
Computer Laboratory
University of Cambridge

> +
> 	return (inp);
> }
>
>
> Modified: user/kmacy/HEAD_fast_multi_xmit/sys/netinet/tcp_var.h
> ==============================================================================
> --- user/kmacy/HEAD_fast_multi_xmit/sys/netinet/tcp_var.h	Wed Nov 12 07:16:23 2008	(r184863)
> +++ user/kmacy/HEAD_fast_multi_xmit/sys/netinet/tcp_var.h	Wed Nov 12 07:32:07 2008	(r184864)
> @@ -127,7 +127,8 @@ struct tcpcb {
> #define	TF_ECN_PERMIT	0x4000000	/* connection ECN-ready */
> #define	TF_ECN_SND_CWR	0x8000000	/* ECN CWR in queue */
> #define	TF_ECN_SND_ECE	0x10000000	/* ECN ECE in queue */
> -
> +#define	TF_RECURSE	0x20000000	/* potentially recursing in tcp_output */
> +
> 	tcp_seq	snd_una;		/* send unacknowledged */
> 	tcp_seq	snd_max;		/* highest sequence number sent;
> 					 * used to recognize retransmits
>


More information about the svn-src-user mailing list