Set default number of retries to 8 to make the netperf command more robust
This commit is contained in:
parent
abe3cf57c3
commit
9c62a8c1a6
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,7 @@ int snprintf(char *str, size_t size, const char *format, ...);
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define DATALEN 90
|
#define DATALEN 90
|
||||||
#define MAX_RETRIES 4
|
#define MAX_RETRIES 8
|
||||||
|
|
||||||
#define CONTINUE_EVENT 128
|
#define CONTINUE_EVENT 128
|
||||||
|
|
||||||
|
@ -658,6 +658,7 @@ PROCESS_THREAD(shell_netperf_process, ev, data)
|
||||||
|
|
||||||
for(i = 0; i < num_packets; ++i) {
|
for(i = 0; i < num_packets; ++i) {
|
||||||
if(construct_next_echo()) {
|
if(construct_next_echo()) {
|
||||||
|
|
||||||
unicast_send(&unicast, &receiver);
|
unicast_send(&unicast, &receiver);
|
||||||
stats.sent++;
|
stats.sent++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue