Skip to content

Commit

Permalink
netmap: Avoid HW errors when using pipes
Browse files Browse the repository at this point in the history
Issue: 6837

When using netmap pipes (with lb, for example), avoid direct hardware
related IOCTLs that will fail (not supported with pipes).
  • Loading branch information
jlucovsky committed Mar 7, 2024
1 parent 4afaadc commit 79e56e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runmode-netmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] == '*')) {
Expand Down

0 comments on commit 79e56e5

Please sign in to comment.