Skip to content

Commit

Permalink
dpdk - 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 ebb8d77 commit 6605573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/dpdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ InputPlugin::Result DpdkReader::get(PacketBlock& packets)
m_stats.receivedPackets += receivedPackets;
m_stats.receivedBytes += packets.bytes;

return Result::PARSED;
return opt.pblock->cnt ? Result::PARSED : Result::NOT_PARSED;
}

}

0 comments on commit 6605573

Please sign in to comment.