This should improve performance by a small margin
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Check if there are multiple cpu cores available.
if [ "$cpu_count" -gt "1" ]; then
# Balance beetween all queues.
# 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"
else
# Send all packets to queue 0.
NFQ_OPTIONS+="--queue-num 0"