]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dpdk: don't "fix" broken ips setting
authorVictor Julien <vjulien@oisf.net>
Sun, 18 Dec 2022 05:52:22 +0000 (06:52 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 20 Dec 2022 07:51:33 +0000 (08:51 +0100)
src/runmode-dpdk.c

index ea19efc361d393a42c382d99e68ee2e19abeeda1..479bb7febfa74df048cb6334fe2d74f311f9fe9b 100644 (file)
@@ -552,10 +552,9 @@ static int ConfigSetCopyIface(DPDKIfaceConfig *iconf, const char *entry_str)
 
     retval = rte_eth_dev_get_port_by_name(entry_str, &iconf->out_port_id);
     if (retval < 0) {
-        SCLogWarning(
-                "Name of the copy interface (%s) for the interface %s is not valid, changing to %s",
-                entry_str, iconf->iface, DPDK_CONFIG_DEFAULT_COPY_INTERFACE);
-        iconf->out_iface = DPDK_CONFIG_DEFAULT_COPY_INTERFACE;
+        SCLogError("%s: name of the copy interface (%s) is invalid (err %d)", iconf->iface,
+                entry_str, retval);
+        SCReturnInt(retval);
     }
 
     iconf->out_iface = entry_str;
@@ -611,7 +610,7 @@ static int ConfigSetCopyIfaceSettings(DPDKIfaceConfig *iconf, const char *iface,
     }
 
     if (iconf->out_iface == NULL || strlen(iconf->out_iface) <= 0) {
-        SCLogError("Copy mode enabled but interface not set");
+        SCLogError("%s: copy mode enabled but interface not set", iconf->iface);
         SCReturnInt(-EINVAL);
     }