From: Victor Julien Date: Sun, 18 Dec 2022 05:52:22 +0000 (+0100) Subject: dpdk: don't "fix" broken ips setting X-Git-Tag: suricata-7.0.0-rc1~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=597601b2940795531341f6637d813b8fbd4b7c6a;p=thirdparty%2Fsuricata.git dpdk: don't "fix" broken ips setting --- diff --git a/src/runmode-dpdk.c b/src/runmode-dpdk.c index ea19efc361..479bb7febf 100644 --- a/src/runmode-dpdk.c +++ b/src/runmode-dpdk.c @@ -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); }