]> git.ipfire.org Git - thirdparty/suricata.git/commit
hugepages: run hugepage check only on DPDK runmode and on Linux 10553/head
authorLukas Sismis <lsismis@oisf.net>
Sat, 10 Feb 2024 19:04:55 +0000 (20:04 +0100)
committerLukas Sismis <lukas.sismis@gmail.com>
Sat, 2 Mar 2024 09:36:50 +0000 (10:36 +0100)
commit36e23a71f26ef33f6790ad2ccefccb822712afd4
treef57acad4ed9fd1057ff8d87edc017a70549d29d0
parent5f6a424ebd10085166b2843e6ec01e75572e7f29
hugepages: run hugepage check only on DPDK runmode and on Linux

Previous implementation allowed FreeBSD to enter into the hugepage
analysis. It then failed with an error message because hugepage/
NUMA node paths that are used in the codebase to retrieve info about
the system are not the same with the structure in Linux.

Additionally, the messages were logged on error level. It has been
demoted to info level because the whole hugepage analysis checkup is
only for informational purposes and does not affect Suricata operation.

The hugepage analysis and the hugepage snapshots are now limited to
only run in the DPDK runmode.

Ticket: #6760
Ticket: #6762
(cherry picked from commit 4b0704db5501c76592b2e12912b82a17f95fd842)
src/suricata.c
src/util-hugepages.c