snort3: replace hyperscan with vectorscan in deps
authorJohn Audia <[email protected]>
Tue, 2 Sep 2025 10:21:37 +0000 (06:21 -0400)
committerHannu Nyman <[email protected]>
Sat, 20 Sep 2025 03:52:48 +0000 (06:52 +0300)
* Replacement of hyperscan-runtime reference with vectorscan-runtime
* Added support for all aarch64 targets which I believe is exhaustive

For x86 and x86/64, I found that vectorscan is truly a drop-in
replacement for hyperscan as assessed by speedtests with snort3 running
on my Intel N150 PC. CPU load during the test with each condition was
nearly saturating on a single core for both cases on a symmetrical
Gbps line.

Using: https://www.waveform.com/tools/bufferbloat in IPS mode:
  Download speed w/ hyperscan: 950-960 Mbit/s (n=2)
  Download speed w/ vectorscan: 942-960 Mbit/s (n=2)

Using: https://www.speedtest.net in IPS mode:
  Download speed w/ hyperscan: 996-1002 Mbit/s (n=2)
  Download speed w/ vectorscan: 993-988 Mbit/s (n=2)

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc (Intel N150 based box running snort3)

Signed-off-by: John Audia <[email protected]>
net/snort3/Makefile

index a010eefdec78ef77b12439660e329c8bc7e28c44..292b79de8cf98d1adb85ab48a32d8ec3add44c8b 100644 (file)
@@ -24,8 +24,8 @@ include $(INCLUDE_DIR)/cmake.mk
 ifeq ($(filter $(ARCH),mips mips64 mipsel powerpc),)
   EXTRA_DEPENDS += +gperftools-runtime
 endif
-ifeq ($(filter $(ARCH),x86_64),$(ARCH))
-  EXTRA_DEPENDS += +hyperscan-runtime
+ifeq ($(filter $(ARCH),x86_64 aarch64),$(ARCH))
+  EXTRA_DEPENDS += +vectorscan-runtime
   CMAKE_OPTIONS += -DHS_INCLUDE_DIRS=$(STAGING_DIR)/usr/include/hs
 endif