From 648a69759bdf0ce2ac9809a700ce74ab7935ca82 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 3 Jun 2016 12:28:09 +0200 Subject: [PATCH] netmap: don't set more than 1 thread on sw ring --- src/runmode-netmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);