Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/io/dpdk_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down