Skip to content

Commit 2da71a7

Browse files
committed
lwip - Reduced size of buffers in echo-parallel tests
These tests could adopt the dynamically sized buffers used for the packet-pressure tests, however throughput is not an important feature of these tests.
1 parent 4551dfa commit 2da71a7

File tree

2 files changed

+2
-4
lines changed
  • features/FEATURE_LWIP/TESTS/mbedmicro-net

2 files changed

+2
-4
lines changed

features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_echo_parallel/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010

1111

1212
#ifndef MBED_CFG_TCP_CLIENT_ECHO_BUFFER_SIZE
13-
#define MBED_CFG_TCP_CLIENT_ECHO_BUFFER_SIZE 256
13+
#define MBED_CFG_TCP_CLIENT_ECHO_BUFFER_SIZE 64
1414
#endif
1515

1616
#ifndef MBED_CFG_TCP_CLIENT_ECHO_THREADS
1717
#define MBED_CFG_TCP_CLIENT_ECHO_THREADS 3
1818
#endif
1919

2020

21-
const char ASCII_MAX = '~' - ' ';
2221
EthernetInterface net;
2322
SocketAddress tcp_addr;
2423
Mutex iomutex;

features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_echo_parallel/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "unity/unity.h"
1010

1111
#ifndef MBED_CFG_UDP_CLIENT_ECHO_BUFFER_SIZE
12-
#define MBED_CFG_UDP_CLIENT_ECHO_BUFFER_SIZE 256
12+
#define MBED_CFG_UDP_CLIENT_ECHO_BUFFER_SIZE 64
1313
#endif
1414

1515
#ifndef MBED_CFG_UDP_CLIENT_ECHO_TIMEOUT
@@ -21,7 +21,6 @@
2121
#endif
2222

2323

24-
const char ASCII_MAX = '~' - ' ';
2524
const int ECHO_LOOPS = 16;
2625
EthernetInterface net;
2726
SocketAddress udp_addr;

0 commit comments

Comments
 (0)