summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-05 22:29:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-05 22:29:19 +0000
commit5c62b53a647c42bf85db6f0a35ae95e974cd574a (patch)
treea326bc6a2b395ae0fb4343839ef453ab247333b2 /cpukit/libnetworking/netinet/udp_usrreq.c
parent2008-02-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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 '')
-rw-r--r--cpukit/libnetworking/netinet/udp_usrreq.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/libnetworking/netinet/udp_usrreq.c b/cpukit/libnetworking/netinet/udp_usrreq.c
index 9e7d2c665c..d532e76c73 100644
--- a/cpukit/libnetworking/netinet/udp_usrreq.c
+++ b/cpukit/libnetworking/netinet/udp_usrreq.c
@@ -579,6 +579,19 @@ static u_long udp_recvspace = 40 * (1024 + sizeof(struct sockaddr_in));
SYSCTL_INT(_net_inet_udp, UDPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
&udp_recvspace, 0, "");
+#if defined(__rtems__)
+ void rtems_set_udp_buffer_sizes(
+ u_long sendspace,
+ u_long recvspace
+ )
+ {
+ if ( sendspace != 0 )
+ udp_sendspace = sendspace;
+ if ( recvspace != 0 )
+ udp_recvspace = recvspace;
+ }
+#endif
+
/*ARGSUSED*/
int
udp_usrreq(so, req, m, addr, control)