Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpdk: add warning in configuration phase and minor DPDK refactoring v2 #10449

Closed

Conversation

lukashino
Copy link
Contributor

Redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6739

v2 changes:

  • change the format error message from - (err %s) to : %s

Describe changes:

  • SCEnters added
  • refactor code to smaller functions
  • rewrite log message to be more consistent
  • add a user warning on the change of RX/TX descriptors - on changes caused by the NIC adjustment

@@ -349,7 +349,7 @@ static void ConfigSetIface(DPDKIfaceConfig *iconf, const char *entry_str)

retval = rte_eth_dev_get_port_by_name(entry_str, &iconf->port_id);
if (retval < 0)
FatalError("Interface \"%s\": %s", entry_str, rte_strerror(-retval));
FatalError("Name of the interface (%s) is invalid: %s", entry_str, rte_strerror(-retval));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this message suggests the name itself is invalid, but is that what is meant here? A name can be valid w/o being present in the system?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it was meant to say that the interface does not exist. Will reword.

@suricata-qa
Copy link

Information:

ERROR: QA failed on SURI_TLPW2_autofp_suri_time.

field baseline test %
SURI_TLPW2_autofp_stats_chk
.uptime 101 110 108.91%

Pipeline 18572

@lukashino
Copy link
Contributor Author

#10472 has a followup

@lukashino lukashino closed this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants