]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: improve threads selection logic
authorVictor Julien <victor@inliniac.net>
Fri, 1 Jul 2016 14:03:53 +0000 (16:03 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 6 Jul 2016 11:09:21 +0000 (13:09 +0200)
commit3bb408940fc130caa36d79dd803320b30d439a0b
tree053c48951d55b536bbb84956de10003b8a169ec5
parentda8f9c1896adfd6146c5a20fb09a315c847e80df
af-packet: improve threads selection logic

Only use RSS queue count when cluster_qm is used. Only use core count
when cluster_flow is used.

Use a local variable to simplify the check so that we don't have to deal
with the extra flags.
src/runmode-af-packet.c