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

Collect device stats close to the packet receive loop function v1 #9490

Closed
wants to merge 2 commits into from

Conversation

lukashino
Copy link
Contributor

Makes DPDK stats more accurate.

Link to redmine ticket:

Describe changes:

  • reset stats before entering the pkt loop
  • stop device on packet receive loop function exit

Lukas Sismis added 2 commits September 15, 2023 06:21
To better represent port stats of Suricata stop the device
right after Suricata is deemed to shut down.
While Suricata deinitialization happened, the device kept
receiving packets. But because Suricata was no longer
interested in the packets, the device accounted these packets
as missed and it could have alter true stats of Suricata.
While Suricata initializes, the device must be started to e.g.
apply rte_flow rules on some devices. But in the meantime, the
NIC started receiving packets but accounted those as missed.
Stats reset was added to better represent true packet drop.
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #9490 (b5c666a) into master (908f49e) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9490   +/-   ##
=======================================
  Coverage   82.17%   82.17%           
=======================================
  Files         968      968           
  Lines      274202   274202           
=======================================
+ Hits       225328   225331    +3     
+ Misses      48874    48871    -3     
Flag Coverage Δ
fuzzcorpus 64.07% <ø> (-0.01%) ⬇️
suricata-verify 60.88% <ø> (+0.01%) ⬆️
unittests 62.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 15961

@victorjulien
Copy link
Member

Merged in #9492, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants