Skip to content

Commit 4aa708b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

input/dpdk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ InputPlugin::Result DpdkReader::get(PacketBlock& packets)
292292
m_stats.receivedPackets += receivedPackets;
293293
m_stats.receivedBytes += packets.bytes;
294294

295-
return Result::PARSED;
295+
return packets.cnt ? Result::PARSED : Result::NOT_PARSED;
296296
}
297297

298298
}

0 commit comments

Comments
 (0)