mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
suricata: Limit to a maximum of "16" netfilter queues.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
3c6423cd40
commit
a8387f8d6e
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# Author : Stefan Schantl <stefan.schantl@ipfire.org>
|
||||
#
|
||||
# Version : 01.01
|
||||
# Version : 01.02
|
||||
#
|
||||
# Notes :
|
||||
#
|
||||
@@ -50,7 +50,13 @@ function get_cpu_count {
|
||||
[ "$line" ] && [ -z "${line%processor*}" ] && ((CPUCOUNT++))
|
||||
done </proc/cpuinfo
|
||||
|
||||
echo $CPUCOUNT
|
||||
# Limit to a maximum of 16 cores, because suricata does not support more than
|
||||
# 16 netfilter queues at the moment.
|
||||
if [ $CPUCOUNT -gt "16" ]; then
|
||||
echo "16"
|
||||
else
|
||||
echo $CPUCOUNT
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to flush the firewall chains.
|
||||
|
||||
Reference in New Issue
Block a user