dpdk: don't "fix" broken ips setting

pull/8304/head
Victor Julien 4 years ago
parent 4e945351a5
commit 597601b294

@ -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); retval = rte_eth_dev_get_port_by_name(entry_str, &iconf->out_port_id);
if (retval < 0) { if (retval < 0) {
SCLogWarning( SCLogError("%s: name of the copy interface (%s) is invalid (err %d)", iconf->iface,
"Name of the copy interface (%s) for the interface %s is not valid, changing to %s", entry_str, retval);
entry_str, iconf->iface, DPDK_CONFIG_DEFAULT_COPY_INTERFACE); SCReturnInt(retval);
iconf->out_iface = DPDK_CONFIG_DEFAULT_COPY_INTERFACE;
} }
iconf->out_iface = entry_str; 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) { 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); SCReturnInt(-EINVAL);
} }

Loading…
Cancel
Save