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

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

commit 9f0730b8ae45c88481463116bcfa5c990a00d19b
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Nov 16 21:35:19 2026 +0100

    boards/rv-virt: Run the packet socket test in citest.
    
    Enable the loopback device, packet sockets with write buffers and the
    cmocka net test in rv-virt:citest.  CI then builds cmocka_net_pkt, and
    NTFC runs it.  No other CI configuration builds testing/nettest with
    NET_PKT.
    
    Only cmocka_net_pkt is new: the other nettest programs that these
    options enable (local_dgram, others) stay off, because no NTFC case
    runs them.  CONFIG_IOB_THROTTLE=0 keeps the old value: packet write
    buffers change its default to 8.  The test task gets 4096 bytes of
    stack: test_pkt_lo_send overflows the default 2048 bytes on this board.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig 
b/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig
index 8a3d21dbfa4..1e76bdafeb1 100644
--- a/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig
+++ b/boards/risc-v/qemu-rv/rv-virt/configs/citest/defconfig
@@ -9,6 +9,8 @@
 # CONFIG_NET_ARP is not set
 # CONFIG_NSH_DISABLE_LOSMART is not set
 # CONFIG_NSH_NETINIT is not set
+# CONFIG_TESTING_NET_LOCAL_DGRAM is not set
+# CONFIG_TESTING_NET_OTHERS is not set
 CONFIG_16550_ADDRWIDTH=0
 CONFIG_16550_UART0=y
 CONFIG_16550_UART0_BASE=0x10000000
@@ -75,6 +77,7 @@ CONFIG_INIT_STACKSIZE=3072
 CONFIG_INTELHEX_BINARY=y
 CONFIG_IOB_NBUFFERS=128
 CONFIG_IOB_NCHAINS=4
+CONFIG_IOB_THROTTLE=0
 CONFIG_LIBCXX=y
 CONFIG_LIBC_ENVPATH=y
 CONFIG_LIBC_EXECFUNCS=y
@@ -86,12 +89,15 @@ CONFIG_LIBC_MEMFD_ERROR=y
 CONFIG_LIBC_PERROR_STDOUT=y
 CONFIG_LIBC_STRERROR=y
 CONFIG_LIBM=y
-CONFIG_MM_IOB=y
 CONFIG_MQ_MAXMSGSIZE=128
 CONFIG_NET=y
 CONFIG_NETDEV_LATEINIT=y
 CONFIG_NETUTILS_NETINIT=y
 CONFIG_NET_LOCAL=y
+CONFIG_NET_LOOPBACK=y
+CONFIG_NET_PKT=y
+CONFIG_NET_PKT_PREALLOC_CONNS=2
+CONFIG_NET_PKT_WRITE_BUFFERS=y
 CONFIG_NET_USRSOCK=y
 CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
 CONFIG_NSH_BUILTIN_APPS=y
@@ -135,6 +141,8 @@ CONFIG_TESTING_FSTEST=y
 CONFIG_TESTING_GETPRIME=y
 CONFIG_TESTING_HEAP=y
 CONFIG_TESTING_LTP=y
+CONFIG_TESTING_NET_TEST=y
+CONFIG_TESTING_NET_TEST_STACKSIZE=4096
 CONFIG_TESTING_OPEN_MEMSTREAM=y
 CONFIG_TESTING_OSTEST=y
 CONFIG_TESTS_TESTSUITES=y

Reply via email to