netmap: don't set more than 1 thread on sw ring

pull/2137/head
Victor Julien 9 years ago
parent 86d44cea96
commit 648a69759b

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

Loading…
Cancel
Save