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);
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);
}

Loading…
Cancel
Save