]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Change one more atomic size in detect.h
authorKen Steele <ken@tilera.com>
Wed, 11 Sep 2013 20:04:11 +0000 (16:04 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Sep 2013 11:25:59 +0000 (13:25 +0200)
Change uint16_t to int for better tile atomic performance. Checked with
pahole that it doesn't increase the size of the structure.

src/detect.h

index 559363b23c8913436ad649f708cbe877299a277d..df37f224348d5364061e207dff3bc32442797fa6 100644 (file)
@@ -800,7 +800,7 @@ typedef struct DetectionEngineThreadCtx_ {
     /** ID of the transaction currently being inspected. */
     uint64_t tx_id;
 
-    SC_ATOMIC_DECLARE(uint16_t, so_far_used_by_detect);
+    SC_ATOMIC_DECLARE(int, so_far_used_by_detect);
 
     /* holds the current recursion depth on content inspection */
     int inspection_recursion_counter;