net: zperf: Make UDP upload report retransmission count configurable
Add a Kconfig option to configure the maximum retransmission count of the UDP upload report. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
02530beeda
commit
73e248f6cf
2 changed files with 10 additions and 1 deletions
|
@ -71,4 +71,13 @@ config NET_ZPERF_MAX_SESSIONS
|
|||
help
|
||||
Upper size limit for connections handled by zperf.
|
||||
|
||||
config NET_ZPERF_UDP_REPORT_RETANSMISSION_COUNT
|
||||
int "Maximum number of UDP upload report retransmissions"
|
||||
depends on NET_UDP
|
||||
range 1 16
|
||||
default 4
|
||||
help
|
||||
Maximum number of retries zperf will take to retrieve the UDP upload
|
||||
report from the server.
|
||||
|
||||
endif
|
||||
|
|
|
@ -67,7 +67,7 @@ static inline int zperf_upload_fin(int sock,
|
|||
struct zperf_client_hdr_v1 *hdr;
|
||||
uint32_t secs = end_time_us / USEC_PER_SEC;
|
||||
uint32_t usecs = end_time_us % USEC_PER_SEC;
|
||||
int loop = 2;
|
||||
int loop = CONFIG_NET_ZPERF_UDP_REPORT_RETANSMISSION_COUNT;
|
||||
int ret = 0;
|
||||
struct timeval rcvtimeo = {
|
||||
.tv_sec = 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue