diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-02-05 22:29:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-02-05 22:29:19 +0000 |
commit | 5c62b53a647c42bf85db6f0a35ae95e974cd574a (patch) | |
tree | a326bc6a2b395ae0fb4343839ef453ab247333b2 /cpukit/libnetworking/netinet/tcp_usrreq.c | |
parent | 2008-02-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-5c62b53a647c42bf85db6f0a35ae95e974cd574a.tar.bz2 |
2008-02-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/kern/uipc_socket2.c,
libnetworking/netinet/tcp_usrreq.c,
libnetworking/netinet/udp_usrreq.c,
libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_glue.c:
Add configuration parameters for network stack efficiency multiplier
and default socket buffer sizes. Change default multiplier from 8 to
2 to match GNU/Linux. This has no impact on performance on the BSPs
tested.
Diffstat (limited to 'cpukit/libnetworking/netinet/tcp_usrreq.c')
-rw-r--r-- | cpukit/libnetworking/netinet/tcp_usrreq.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/libnetworking/netinet/tcp_usrreq.c b/cpukit/libnetworking/netinet/tcp_usrreq.c index 8a99962a85..ba553d8b85 100644 --- a/cpukit/libnetworking/netinet/tcp_usrreq.c +++ b/cpukit/libnetworking/netinet/tcp_usrreq.c @@ -730,6 +730,19 @@ u_long tcp_recvspace = 1024*16; SYSCTL_INT(_net_inet_tcp, TCPCTL_RECVSPACE, recvspace, CTLFLAG_RW, &tcp_recvspace , 0, ""); +#if defined(__rtems__) + void rtems_set_tcp_buffer_sizes( + u_long sendspace, + u_long recvspace + ) + { + if ( sendspace != 0 ) + tcp_sendspace = sendspace; + if ( recvspace != 0 ) + tcp_recvspace = recvspace; + } +#endif + /* * Attach TCP protocol to socket, allocating * internet protocol control block, tcp control block, |