netmap: Avoid HW errors when using pipes

Issue: 6837

When using netmap pipes (with lb, for example), avoid direct hardware
related IOCTLs that will fail (not supported with pipes).
pull/10600/head
Jeff Lucovsky 2 years ago committed by Victor Julien
parent f9cf87a003
commit af529a56a9

@ -344,7 +344,9 @@ static void *ParseNetmapConfig(const char *iface_name)
}
}
int ring_count = NetmapGetRSSCount(aconf->iface_name);
int ring_count = 0;
if (aconf->in.real)
ring_count = NetmapGetRSSCount(aconf->iface_name);
if (strlen(aconf->iface_name) > 0 &&
(aconf->iface_name[strlen(aconf->iface_name) - 1] == '^' ||
aconf->iface_name[strlen(aconf->iface_name) - 1] == '*')) {

Loading…
Cancel
Save