Skip to content

Commit

Permalink
dpdk-ring - fix checking if any packet has actually been parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSableCZ committed Oct 16, 2024
1 parent 4aa708b commit 544f19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/dpdk-ring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 544f19b

Please sign in to comment.