mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-01 07:50:23 +02:00
suricata: Tie queues to a CPU core
This should improve performance by a small margin Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -75,8 +75,8 @@ function generate_fw_rules {
|
||||
# Check if there are multiple cpu cores available.
|
||||
if [ "$cpu_count" -gt "1" ]; then
|
||||
# Balance beetween all queues.
|
||||
NFQ_OPTIONS+="--queue-balance 0:"
|
||||
NFQ_OPTIONS+=$(($cpu_count-1))
|
||||
NFQ_OPTIONS+="--queue-balance 0:$(($cpu_count-1))"
|
||||
NFQ_OPTIONS+=" --queue-cpu-fanout"
|
||||
else
|
||||
# Send all packets to queue 0.
|
||||
NFQ_OPTIONS+="--queue-num 0"
|
||||
|
||||
Reference in New Issue
Block a user