]> git.ipfire.org Git - thirdparty/suricata.git/commit
dpdk: auto threads assign one too many threads 13565/head
authorLukas Sismis <lsismis@oisf.net>
Tue, 1 Jul 2025 19:43:19 +0000 (21:43 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 2 Jul 2025 06:41:42 +0000 (08:41 +0200)
commit239de05b9d8f405adda31914dbcbd1d78a9f0123
tree6e677817637cceb7704951de6a70f09a8de307c8
parentc204ddb3e55163b37f64e4f7dd182f0f45a3cc68
dpdk: auto threads assign one too many threads

Configuration option `threads: auto` in DPDK's interface node
overassigns available threads to the interface.
Commit 4dfd44d3 changed the signedness of the remaining threads counter,
which caused surpass of the counter initialization.
The if-clause is switched to first initialize and then use the counter.

Ticket: 7798
src/runmode-dpdk.c