From dc8e177027516c2ee91e675e2da6e9f6e33cdcc3 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 7 Mar 2024 15:24:36 -0500 Subject: [PATCH] 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). (cherry picked from commit af529a56a9bcb37bae5243236a4505fff0df268b) --- src/runmode-netmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] == '*')) { -- 2.47.2