snort3: replace hyperscan with vectorscan in deps

* 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 <therealgraysky@proton.me>
This commit is contained in:
John Audia authored and Hannu Nyman committed 2025-09-20 06:52:48 +03:00
1 parent cd6de3f1db
commit 8d81f0e2ee
1 file changed
+2 -2
+2 -2
View 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