summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-06-27 13:15:11 +1000
committerChris Johns <chrisj@rtems.org>2016-06-27 13:32:24 +1000
commitc6713d1b5134ddffb83ea21e5ed55587a46df5f6 (patch)
tree5c8bfafc37511e6521b863edf94f20f229dafa25
parent9edacb625cfc80ef22f3b78a1d60a8bed274ddd3 (diff)
downloadrtems-libbsd-c6713d1b5134ddffb83ea21e5ed55587a46df5f6.tar.bz2
Add DEFAULT_NETWORK_PAGE_MBUFS_SIZE to allow per BSP allocation domain sizes.
-rw-r--r--testsuite/include/rtems/bsd/test/default-init.h5
-rw-r--r--testsuite/include/rtems/bsd/test/default-network-init.h6
-rw-r--r--testsuite/include/rtems/bsd/test/network-config.h.in4
3 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/include/rtems/bsd/test/default-init.h b/testsuite/include/rtems/bsd/test/default-init.h
index 2f73442e..9ddfd340 100644
--- a/testsuite/include/rtems/bsd/test/default-init.h
+++ b/testsuite/include/rtems/bsd/test/default-init.h
@@ -53,6 +53,11 @@ rtems_task Init(
early_initialization();
#endif
+#ifdef DEFAULT_NETWORK_PAGE_MBUFS_SIZE
+ rtems_bsd_allocator_domain_page_mbuf_size =
+ DEFAULT_NETWORK_PAGE_MBUFS_SIZE;
+#endif
+
/* Let other tasks run to complete background work */
default_set_self_prio( RTEMS_MAXIMUM_PRIORITY - 1 );
diff --git a/testsuite/include/rtems/bsd/test/default-network-init.h b/testsuite/include/rtems/bsd/test/default-network-init.h
index 1d69fd1a..b627b1c8 100644
--- a/testsuite/include/rtems/bsd/test/default-network-init.h
+++ b/testsuite/include/rtems/bsd/test/default-network-init.h
@@ -263,6 +263,11 @@ Init(rtems_task_argument arg)
assert(sc == RTEMS_SUCCESSFUL);
#endif
+#ifdef DEFAULT_NETWORK_PAGE_MBUFS_SIZE
+ rtems_bsd_allocator_domain_page_mbuf_size =
+ DEFAULT_NETWORK_PAGE_MBUFS_SIZE;
+#endif
+
rtems_bsd_initialize();
#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
@@ -367,6 +372,7 @@ SYSINIT_NEED_NET_IF_VLAN;
#define CONFIGURE_SHELL_COMMAND_MV
#define CONFIGURE_SHELL_COMMAND_RM
#define CONFIGURE_SHELL_COMMAND_MALLOC_INFO
+#define CONFIGURE_SHELL_COMMAND_SHUTDOWN
#include <rtems/shellconfig.h>
diff --git a/testsuite/include/rtems/bsd/test/network-config.h.in b/testsuite/include/rtems/bsd/test/network-config.h.in
index c652e74c..eca42418 100644
--- a/testsuite/include/rtems/bsd/test/network-config.h.in
+++ b/testsuite/include/rtems/bsd/test/network-config.h.in
@@ -46,6 +46,10 @@
#define NET_CFG_INTERFACE_0 "lo0"
#endif
+#if defined(LIBBSP_I386_PC386_BSP_H)
+#define DEFAULT_NETWORK_PAGE_MBUFS_SIZE (64 * 1024 * 1024)
+#endif
+
#define NET_CFG_SELF_IP "@NET_CFG_SELF_IP@"
#define NET_CFG_NETMASK "@NET_CFG_NETMASK@"