From: Victor Julien Date: Fri, 3 Jun 2016 10:28:09 +0000 (+0200) Subject: netmap: don't set more than 1 thread on sw ring X-Git-Tag: suricata-3.1RC1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=648a69759bdf0ce2ac9809a700ce74ab7935ca82;p=thirdparty%2Fsuricata.git netmap: don't set more than 1 thread on sw ring --- diff --git a/src/runmode-netmap.c b/src/runmode-netmap.c index ff2e803ab8..8403d0843e 100644 --- a/src/runmode-netmap.c +++ b/src/runmode-netmap.c @@ -253,7 +253,10 @@ static void *ParseNetmapConfig(const char *iface_name) finalize: - if (aconf->threads == 0) { + if (aconf->iface_sw) { + /* just one thread per interface supported */ + aconf->threads = 1; + } else if (aconf->threads == 0) { /* As NetmapGetRSSCount is broken on Linux, first run * GetIfaceRSSQueuesNum. If that fails, run NetmapGetRSSCount */ aconf->threads = GetIfaceRSSQueuesNum(aconf->iface);