From 5687c190d8b895ba541928b031aad42bed4c21c3 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 13 Oct 2026 07:00:04 +0000 Subject: [PATCH] fix(dpdk): mark RX notification drain result as intentionally unused --- src/io/dpdk_backend.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/io/dpdk_backend.cpp b/src/io/dpdk_backend.cpp index 75c7f31..554a9ea 100644 --- a/src/io/dpdk_backend.cpp +++ b/src/io/dpdk_backend.cpp @@ -261,8 +261,12 @@ class DpdkBackend::Impl { // records must be consumed by the PMD's interrupt-disable callback. // Only ordinary hardware eventfds accept a uint64_t acknowledgement. if (!fabric.tap && !fabric.mlx5) { + // Output-only counter: read writes it, and RX queues supply packet + // readiness independently of its value. No initialization is needed. std::uint64_t value; - (void)::read(fd, &value, sizeof(value)); + // Best-effort drain; an unacknowledged counter causes another wake. + [[maybe_unused]] const auto acknowledged = + ::read(fd, &value, sizeof(value)); } } } notification;