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);