FreeBSD/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c
/*
 * Determine the receive window size for a socket.
 */
Determine the receive window size for a socket.
Determine the receive window size for a socket .
unsigned long
select_rcv_wnd(struct socket *so)
{
	unsigned long wnd;
	SOCKBUF_LOCK_ASSERT(&so->so_rcv);
	wnd = sbspace(&so->so_rcv);
	if (wnd < MIN_RCV_WND)
		wnd = MIN_RCV_WND;
	return min(wnd, MAX_RCV_WND);
}
unsigned long select_rcv_wnd ( struct socket * so ) { unsigned long wnd ; SOCKBUF_LOCK_ASSERT ( & so -> so_rcv ) ; wnd = sbspace ( & so -> so_rcv ) ; if ( wnd < MIN_RCV_WND ) wnd = MIN_RCV_WND ; return min ( wnd , MAX_RCV_WND ) ; }
Determine the receive window size for a socket.
Determine the receive window size for a socket .