From 544f19bd0bf1dc3cf0de367f629c82318e36465c Mon Sep 17 00:00:00 2001 From: Jan Sobol Date: Wed, 16 Oct 2024 15:29:51 +0200 Subject: [PATCH] dpdk-ring - fix checking if any packet has actually been parsed --- input/dpdk-ring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/dpdk-ring.cpp b/input/dpdk-ring.cpp index 6a612ce2..1aae5cac 100644 --- a/input/dpdk-ring.cpp +++ b/input/dpdk-ring.cpp @@ -211,7 +211,7 @@ InputPlugin::Result DpdkRingReader::get(PacketBlock& packets) m_stats.receivedPackets += pkts_read_; m_stats.receivedBytes += packets.bytes; - return Result::PARSED; + return opt.pblock->cnt ? Result::PARSED : Result::NOT_PARSED; } telemetry::Content DpdkRingReader::get_queue_telemetry()