From 2fd1174a56adc34bd8ff748caee2394f6bfc022e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 18 Oct 2019 10:54:15 +0200 Subject: [PATCH] nfq: micro optimization --- src/source-nfq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source-nfq.c b/src/source-nfq.c index 44dbf7a6df..e820e71fe6 100644 --- a/src/source-nfq.c +++ b/src/source-nfq.c @@ -1021,7 +1021,7 @@ TmEcode ReceiveNFQLoop(ThreadVars *tv, void *data, void *slot) ntv->slot = ((TmSlot *) slot)->slot_next; while(1) { - if (suricata_ctl_flags != 0) { + if (unlikely(suricata_ctl_flags != 0)) { NFQDestroyQueue(nq); break; } -- 2.47.2