summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPancakeTAS <pancake@mgnet.work>2026-06-13 19:52:25 +0200
committerPancakeTAS <pancake@mgnet.work>2026-06-14 16:27:29 +0200
commit2bc4b641220f4e5de88525a6bbe4b423b541317c (patch)
tree98c79958a90a6d2ec0bd94f3af79976df1054e4f
parentperf(mpu): Ponder batch heap extraction (diff)
perf(mpu): Remove zero-copy items
See 'zerocopy' branch
-rw-r--r--src/mpu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mpu.c b/src/mpu.c
index 9659c50..1df1559 100644
--- a/src/mpu.c
+++ b/src/mpu.c
@@ -60,9 +60,6 @@ static inline uint64_t get_time_now(void) {
+ ((uint64_t) ts.tv_nsec / 1000000ULL);
}
-// TODO: Zero-copy send() requiring the user to reserve space for the header.
-// Perhaps consider MSG_MORE for sending header & payload separately or sendmsg()
-
int mpu_send(mpu_ctx_t* ctx, const uint8_t* data, size_t len) {
if (!ctx || !data || len == 0 || len > MPU_MTU - sizeof(mpu_hdr_t)) {
errno = EINVAL;
@@ -93,9 +90,6 @@ int mpu_send(mpu_ctx_t* ctx, const uint8_t* data, size_t len) {
return 0;
}
-// TODO: Zero-copy recv() into reorder buffer slot, requiring the user to provide a callback
-// for processing received packets, instead of copying into a user buffer.
-
ssize_t mpu_recv(mpu_ctx_t* ctx, uint8_t* data, size_t len) {
if (!ctx || !data || !len) {
errno = EINVAL;