From: Victor Julien Date: Thu, 24 Mar 2016 08:31:19 +0000 (+0100) Subject: pfring: use likely for fast path X-Git-Tag: suricata-3.0.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc7d0c736b9f34dc008490578e63e125f0e8ece8;p=thirdparty%2Fsuricata.git pfring: use likely for fast path --- diff --git a/src/source-pfring.c b/src/source-pfring.c index 315953a66b..9b2db3841f 100644 --- a/src/source-pfring.c +++ b/src/source-pfring.c @@ -354,7 +354,7 @@ TmEcode ReceivePfringLoop(ThreadVars *tv, void *data, void *slot) PacketSetData(p, pkt_buffer, hdr.caplen); } - if (r == 1) { + if (likely(r == 1)) { //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);