This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2af17da  boards/sim:  Add a TCP loopback test.
2af17da is described below

commit 2af17da334e652062dd74aa74c8763bb08ff444f
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Mon Feb 10 13:33:34 2020 -0600

    boards/sim:  Add a TCP loopback test.
---
 boards/sim/sim/sim/README.txt                | 15 +++++
 boards/sim/sim/sim/configs/tcploop/defconfig | 82 ++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/boards/sim/sim/sim/README.txt b/boards/sim/sim/sim/README.txt
index d6673ee..b2d45c8 100644
--- a/boards/sim/sim/sim/README.txt
+++ b/boards/sim/sim/sim/README.txt
@@ -1104,6 +1104,21 @@ spiffs
   This is a test of the SPIFFS file system using the apps/testing/fstest test
   with an MTD RAM driver to simulate the FLASH part.
 
+tcploop
+
+  This configuration performs a TCP "performance" test using
+  apps/examples/tcpblaster and the IPv6 local loopback device.  Performance
+  is in quotes because, while that is the intent of the tcpblaster example,
+  this is not an appropriate configuration for TCP performance testing.
+  Rather, this configurat is useful only for verifying TCP transfers over
+  the loopback device.
+
+  To use IPv4, modify these settings in the defconfig file:
+
+    -# CONFIG_NET_IPv4 is not set
+    -CONFIG_NET_IPv6=y
+    -CONFIG_NET_IPv6_NCONF_ENTRIES=4
+
 touchscreen
 
   This configuration uses the simple touchscreen test at
diff --git a/boards/sim/sim/sim/configs/tcploop/defconfig 
b/boards/sim/sim/sim/configs/tcploop/defconfig
new file mode 100644
index 0000000..888c68c
--- /dev/null
+++ b/boards/sim/sim/sim/configs/tcploop/defconfig
@@ -0,0 +1,82 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed 
.config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
+# modifications.
+#
+# CONFIG_NET_ETHERNET is not set
+# CONFIG_NET_IPv4 is not set
+# CONFIG_NSH_CMDOPT_HEXDUMP is not set
+# CONFIG_NSH_DISABLE_DATE is not set
+# CONFIG_NSH_NETINIT is not set
+# CONFIG_SIM_NETDEV is not set
+CONFIG_ARCH="sim"
+CONFIG_ARCH_BOARD="sim"
+CONFIG_ARCH_BOARD_SIM=y
+CONFIG_ARCH_CHIP="sim"
+CONFIG_ARCH_SIM=y
+CONFIG_BOARDCTL_POWEROFF=y
+CONFIG_BOARD_LOOPSPERMSEC=0
+CONFIG_BOOT_RUNFROMEXTSRAM=y
+CONFIG_BUILTIN=y
+CONFIG_BUILTIN_PROXY_STACKSIZE=8192
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DEV_LOOP=y
+CONFIG_DEV_ZERO=y
+CONFIG_EXAMPLES_TCPBLASTER=y
+CONFIG_EXAMPLES_TCPBLASTER_DAEMON_STACKSIZE=8192
+CONFIG_EXAMPLES_TCPBLASTER_LOOPBACK=y
+CONFIG_EXAMPLES_TCPBLASTER_STACKSIZE1=8192
+CONFIG_FAT_LCNAMES=y
+CONFIG_FAT_LFN=y
+CONFIG_FSUTILS_PASSWD=y
+CONFIG_FSUTILS_PASSWD_READONLY=y
+CONFIG_FS_FAT=y
+CONFIG_FS_PROCFS=y
+CONFIG_FS_ROMFS=y
+CONFIG_IDLETHREAD_STACKSIZE=8192
+CONFIG_LIBC_EXECFUNCS=y
+CONFIG_LIB_ENVPATH=y
+CONFIG_LIB_HOSTNAME="IP-Forward"
+CONFIG_MAX_TASKS=64
+CONFIG_NET=y
+CONFIG_NETDEVICES=y
+CONFIG_NET_IPv6=y
+CONFIG_NET_IPv6_NCONF_ENTRIES=4
+CONFIG_NET_LOOPBACK=y
+CONFIG_NET_MAX_LISTENPORTS=16
+CONFIG_NET_SOCKOPTS=y
+CONFIG_NET_TCP=y
+CONFIG_NET_TCPBACKLOG=y
+CONFIG_NET_TCP_WRITE_BUFFERS=y
+CONFIG_NET_TUN=y
+CONFIG_NFILE_DESCRIPTORS=32
+CONFIG_NSH_ARCHINIT=y
+CONFIG_NSH_ARCHROMFS=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_FATDEVNO=2
+CONFIG_NSH_FILE_APPS=y
+CONFIG_NSH_READLINE=y
+CONFIG_NSH_ROMFSDEVNO=1
+CONFIG_NSH_ROMFSETC=y
+CONFIG_PATH_INITIAL="/bin"
+CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=8192
+CONFIG_PTHREAD_STACK_DEFAULT=8192
+CONFIG_READLINE_TABCOMPLETION=y
+CONFIG_SCHED_HAVE_PARENT=y
+CONFIG_SCHED_LPWORK=y
+CONFIG_SCHED_LPWORKPRIORITY=140
+CONFIG_SCHED_LPWORKSTACKSIZE=8192
+CONFIG_SCHED_ONEXIT=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_SDCLONE_DISABLE=y
+CONFIG_SIM_WALLTIME=y
+CONFIG_START_MONTH=6
+CONFIG_START_YEAR=2008
+CONFIG_SYSTEM_NSH=y
+CONFIG_SYSTEM_NSH_STACKSIZE=8192
+CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=8192
+CONFIG_TUN_NINTERFACES=2
+CONFIG_USERMAIN_STACKSIZE=8192
+CONFIG_USER_ENTRYPOINT="nsh_main"

Reply via email to