From: Jeff Lucovsky Date: Thu, 7 Mar 2024 20:24:36 +0000 (-0500) Subject: netmap: Avoid HW errors when using pipes X-Git-Tag: suricata-8.0.0-beta1~1666 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af529a56a9bcb37bae5243236a4505fff0df268b;p=thirdparty%2Fsuricata.git 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). --- diff --git a/src/runmode-netmap.c b/src/runmode-netmap.c index 927dc71885..e207cf0630 100644 --- a/src/runmode-netmap.c +++ b/src/runmode-netmap.c @@ -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] == '*')) {