From e9138289552a650b0a45ac8b4be8cde3d52f871f Mon Sep 17 00:00:00 2001 From: Tiago Medicci Serrano Date: Mon, 17 Jun 2024 11:00:46 -0300 Subject: [PATCH] espressif: Enable SMP (when applicable) and iPerf for sta_softap - Enable SMP by default (when the device supports it); - Increase IOB buffers; - Enable iPerf; These changes enable testing the device throughput easily. --- .../esp32c3-devkit/configs/sta_softap/defconfig | 5 +++++ .../esp32c3-generic/configs/sta_softap/defconfig | 2 ++ .../esp32c6-devkitc/configs/sta_softap/defconfig | 2 ++ .../esp32/esp32-devkitc/configs/sta_softap/defconfig | 10 +++++++++- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/boards/risc-v/esp32c3-legacy/esp32c3-devkit/configs/sta_softap/defconfig b/boards/risc-v/esp32c3-legacy/esp32c3-devkit/configs/sta_softap/defconfig index 1e54338798..0d8c5f538c 100644 --- a/boards/risc-v/esp32c3-legacy/esp32c3-devkit/configs/sta_softap/defconfig +++ b/boards/risc-v/esp32c3-legacy/esp32c3-devkit/configs/sta_softap/defconfig @@ -41,6 +41,8 @@ CONFIG_HAVE_CXXINITIALIZE=y CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INTELHEX_BINARY=y +CONFIG_IOB_NBUFFERS=124 +CONFIG_IOB_THROTTLE=24 CONFIG_LIBC_MAX_EXITFUNS=1 CONFIG_MM_REGIONS=3 CONFIG_NETDB_DNSCLIENT=y @@ -49,10 +51,13 @@ CONFIG_NETDEV_PHY_IOCTL=y CONFIG_NETDEV_WIRELESS_IOCTL=y CONFIG_NETUTILS_CJSON=y CONFIG_NETUTILS_DHCPD=y +CONFIG_NETUTILS_IPERF=y CONFIG_NET_BROADCAST=y CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP=y CONFIG_NET_ICMP_SOCKET=y +CONFIG_NET_TCP=y +CONFIG_NET_TCP_WRITE_BUFFERS=y CONFIG_NET_UDP=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y diff --git a/boards/risc-v/esp32c3/esp32c3-generic/configs/sta_softap/defconfig b/boards/risc-v/esp32c3/esp32c3-generic/configs/sta_softap/defconfig index 21b3732119..ceaab59361 100644 --- a/boards/risc-v/esp32c3/esp32c3-generic/configs/sta_softap/defconfig +++ b/boards/risc-v/esp32c3/esp32c3-generic/configs/sta_softap/defconfig @@ -35,6 +35,7 @@ CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INIT_STACKSIZE=8192 CONFIG_INTELHEX_BINARY=y +CONFIG_IOB_NBUFFERS=124 CONFIG_IOB_THROTTLE=24 CONFIG_LIBC_PERROR_STDOUT=y CONFIG_LIBC_STRERROR=y @@ -45,6 +46,7 @@ CONFIG_NETDEV_WIRELESS_IOCTL=y CONFIG_NETDEV_WORK_THREAD=y CONFIG_NETUTILS_CJSON=y CONFIG_NETUTILS_DHCPD=y +CONFIG_NETUTILS_IPERF=y CONFIG_NET_BROADCAST=y CONFIG_NET_ICMP=y CONFIG_NET_ICMP_SOCKET=y diff --git a/boards/risc-v/esp32c6/esp32c6-devkitc/configs/sta_softap/defconfig b/boards/risc-v/esp32c6/esp32c6-devkitc/configs/sta_softap/defconfig index 98a7f6d7fd..a47bcf9351 100644 --- a/boards/risc-v/esp32c6/esp32c6-devkitc/configs/sta_softap/defconfig +++ b/boards/risc-v/esp32c6/esp32c6-devkitc/configs/sta_softap/defconfig @@ -37,6 +37,7 @@ CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INIT_STACKSIZE=8192 CONFIG_INTELHEX_BINARY=y +CONFIG_IOB_NBUFFERS=124 CONFIG_IOB_THROTTLE=24 CONFIG_LIBC_PERROR_STDOUT=y CONFIG_LIBC_STRERROR=y @@ -47,6 +48,7 @@ CONFIG_NETDEV_WIRELESS_IOCTL=y CONFIG_NETDEV_WORK_THREAD=y CONFIG_NETUTILS_CJSON=y CONFIG_NETUTILS_DHCPD=y +CONFIG_NETUTILS_IPERF=y CONFIG_NET_BROADCAST=y CONFIG_NET_ICMP=y CONFIG_NET_ICMP_SOCKET=y diff --git a/boards/xtensa/esp32/esp32-devkitc/configs/sta_softap/defconfig b/boards/xtensa/esp32/esp32-devkitc/configs/sta_softap/defconfig index 78212541f9..e98d2cda87 100644 --- a/boards/xtensa/esp32/esp32-devkitc/configs/sta_softap/defconfig +++ b/boards/xtensa/esp32/esp32-devkitc/configs/sta_softap/defconfig @@ -17,6 +17,7 @@ CONFIG_ARCH_BOARD_ESP32_DEVKITC=y CONFIG_ARCH_CHIP="esp32" CONFIG_ARCH_CHIP_ESP32=y CONFIG_ARCH_CHIP_ESP32WROVER=y +CONFIG_ARCH_INTERRUPTSTACK=2048 CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_XTENSA=y CONFIG_BOARDCTL_RESET=y @@ -39,17 +40,22 @@ CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INIT_STACKSIZE=3072 CONFIG_INTELHEX_BINARY=y -CONFIG_MM_REGIONS=3 +CONFIG_IOB_NBUFFERS=128 +CONFIG_IOB_THROTTLE=24 +CONFIG_MM_REGIONS=4 CONFIG_NETDB_DNSCLIENT=y CONFIG_NETDEV_LATEINIT=y CONFIG_NETDEV_PHY_IOCTL=y CONFIG_NETDEV_WIRELESS_IOCTL=y CONFIG_NETUTILS_CJSON=y CONFIG_NETUTILS_DHCPD=y +CONFIG_NETUTILS_IPERF=y CONFIG_NET_BROADCAST=y CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP=y CONFIG_NET_ICMP_SOCKET=y +CONFIG_NET_TCP=y +CONFIG_NET_TCP_WRITE_BUFFERS=y CONFIG_NET_UDP=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y @@ -64,6 +70,8 @@ CONFIG_RR_INTERVAL=200 CONFIG_SCHED_LPWORK=y CONFIG_SCHED_WAITPID=y CONFIG_SIG_DEFAULT=y +CONFIG_SMP=y +CONFIG_SMP_NCPUS=2 CONFIG_SPIFFS_NAME_MAX=48 CONFIG_START_DAY=6 CONFIG_START_MONTH=12