[riot-notifications] [RIOT-OS/RIOT] test_utils: add UDP benchmark (#16710)

Karl Fessel notifications at github.com
Thu Sep 2 22:40:17 CEST 2021


@kfessel commented on this pull request.



> +        uint32_t diff = now - record_tx[i].time_tx_us;
+        if (diff > oldest_diff) {
+            oldest_diff = diff;
+            oldest = i;
+        }
+    }
+
+    record_tx[oldest].seq_no = seq_num;
+    record_tx[oldest].time_tx_us = now;
+}
+
+static void *_listen_thread(void *ctx)
+{
+    (void)ctx;
+
+    static uint8_t buf[BENCH_PAYLOAD_SIZE_MAX];

```suggestion
    static uint8_t buf[BENCH_PAYLOAD_SIZE_MAX + sizeof(benchmark_msg_ping_t)];
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16710#pullrequestreview-745499720
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210902/b1a2c579/attachment.htm>


More information about the notifications mailing list