Home
last modified time | relevance | path

Searched full:sb_max (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/kern/
H A Duipc_sockbuf.c68 u_long sb_max = SB_MAX; variable
69 u_long sb_max_adj = BUF_MAX_ADJ(SB_MAX);
627 u_long tmp_sb_max = sb_max; in sysctl_handle_sb_max()
634 sb_max = tmp_sb_max; in sysctl_handle_sb_max()
635 sb_max_adj = BUF_MAX_ADJ(sb_max); in sysctl_handle_sb_max()
678 return (sbreserve_locked_limit(so, which, cc, sb_max, td)); in sbreserve_locked()
1887 CTLTYPE_ULONG | CTLFLAG_RW | CTLFLAG_MPSAFE, &sb_max, 0,
/freebsd/sys/sys/
H A Dsockbuf.h65 #define SB_MAX (2*1024*1024) /* default for max chars in sockbuf */ macro
H A Dsocketvar.h470 extern u_long sb_max;
/freebsd/sys/fs/nfs/
H A Dnfs_commonkrpc.c310 * soreserve() can fail if sb_max is too small, so shrink pktscale in newnfs_connect()
312 * Print a log message suggesting increasing sb_max. in newnfs_connect()
330 * adjusted for the sb_max->sb_max_adj conversion of in newnfs_connect()
/freebsd/sys/netinet/
H A Dtcp_input.c3116 if (th->th_urp + sbavail(&so->so_rcv) > sb_max) { in tcp_do_segment()
3933 if (bufsize > sb_max) in tcp_mss()
3934 bufsize = sb_max; in tcp_mss()
3966 if (bufsize > sb_max) in tcp_mss()
3967 bufsize = sb_max; in tcp_mss()
H A Dtcp_syncache.c1682 * will still allow us to scale up to sb_max, aka in syncache_add()
1702 (TCP_MAXWIN << wscale) < sb_max) in syncache_add()
2331 (TCP_MAXWIN << wscale) < sb_max) in syncookie_expand()
H A Dtcp_usrreq.c1496 (TCP_MAXWIN << tp->request_r_scale) < sb_max) in tcp_connect()
1537 (TCP_MAXWIN << tp->request_r_scale) < sb_max) in tcp6_connect()
H A Dsctp_usrreq.c69 * the SB_MAX, whichever is smaller, for the send window. in sctp_init()
71 sb_max_adj = (u_long)((u_quad_t)(SB_MAX) * MCLBYTES / (MSIZE + MCLBYTES)); in sctp_init()
76 * should I do 1/2 the SB_MAX instead in the SB_MAX min above. For in sctp_init()
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_tom.c1108 unsigned long space = sb_max; in select_rcv_wscale()
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdport.c267 * sb_max value, which is what is set via kern.ipc.maxsockbuf. in sysctl_srvmaxio()
269 * sb_max_adj = (u_quad_t)sb_max * MCLBYTES / in sysctl_srvmaxio()
271 * XXX If the calculation of sb_max_adj from sb_max changes, in sysctl_srvmaxio()