]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: no more threads than RSS queues 1238/head
authorEric Leblond <eric@regit.org>
Thu, 4 Dec 2014 16:58:25 +0000 (17:58 +0100)
committerEric Leblond <eric@regit.org>
Thu, 4 Dec 2014 17:17:39 +0000 (18:17 +0100)
commit56373e5b347fb939ca0e2c9addb5cefd2947f979
treef3d06c54db33baa2ea74e96a429609dd68117c2b
parent123c58af4b402235ec1d558f3a01a236f4f0fa65
af-packet: no more threads than RSS queues

If we manage to read the number of RSS queues from an interface,
this means that the optimal number of capture threads is equal
to the minimum of this number and of the number of cores on the
system.

This patch implements this logic thanks to the newly introduced
function GetIfaceRSSQueuesNum.
src/runmode-af-packet.c