Reset packet profiling after pfring_recv. The packet was taken from
the packet pool before this call. The packet will already have it's
start ticks initialized. To avoid including ticks while pfring_recv
waits for traffic, reset the ticks right after it.
#include "util-device.h"
#include "util-host-info.h"
#include "runmodes.h"
+#include "util-profiling.h"
#ifdef __SC_CUDA_SUPPORT__
}
if (likely(r == 1)) {
+ /* profiling started before blocking pfring_recv call, so
+ * reset it here */
+ PACKET_PROFILING_RESTART(p);
+
//printf("RecievePfring src %" PRIu32 " sport %" PRIu32 " dst %" PRIu32 " dstport %" PRIu32 "\n",
// hdr.parsed_pkt.ipv4_src,hdr.parsed_pkt.l4_src_port, hdr.parsed_pkt.ipv4_dst,hdr.parsed_pkt.l4_dst_port);