Skip to content

Commit 544f19b

Browse files
committed
dpdk-ring - fix checking if any packet has actually been parsed
1 parent 4aa708b commit 544f19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

input/dpdk-ring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ InputPlugin::Result DpdkRingReader::get(PacketBlock& packets)
211211
m_stats.receivedPackets += pkts_read_;
212212
m_stats.receivedBytes += packets.bytes;
213213

214-
return Result::PARSED;
214+
return opt.pblock->cnt ? Result::PARSED : Result::NOT_PARSED;
215215
}
216216

217217
telemetry::Content DpdkRingReader::get_queue_telemetry()

0 commit comments

Comments
 (0)