Skip to content

[8.0.x] flow/rate: fix ring flushing - #16124

Closed
inashivb wants to merge 1 commit into
OISF:main-8.0.xfrom
inashivb:flow-rate-8/v1
Closed

[8.0.x] flow/rate: fix ring flushing#16124
inashivb wants to merge 1 commit into
OISF:main-8.0.xfrom
inashivb:flow-rate-8/v1

Conversation

@inashivb

Copy link
Copy Markdown
Member

The fn to flush the ring is supposed to flush the entire ring buffer but
it only resets the buffer up to the "length" bytes. Fix this calculation
to correctly reflect the number of bytes that need to be reset.

Ticket: 8826
(cherry picked from commit 389700e)
@inashivb
inashivb requested a review from victorjulien as a code owner August 27, 2026 02:45
@suricata-review-bot

Copy link
Copy Markdown

AI-generated review posted automatically by Suricata ai-review.

Verdict: approve

No high- or medium-severity findings.

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.69%. Comparing base (098022a) to head (6fa549d).

Additional details and impacted files
@@              Coverage Diff               @@
##           main-8.0.x   #16124      +/-   ##
==============================================
- Coverage       81.71%   81.69%   -0.02%     
==============================================
  Files            1016     1016              
  Lines          277201   277227      +26     
==============================================
- Hits           226509   226490      -19     
- Misses          50692    50737      +45     
Flag Coverage Δ
fuzzcorpus 63.88% <0.00%> (-0.01%) ⬇️
livemode 18.62% <0.00%> (-0.04%) ⬇️
netns 20.13% <0.00%> (-0.03%) ⬇️
pcap 44.52% <0.00%> (+0.01%) ⬆️
suricata-verify 65.22% <0.00%> (-0.03%) ⬇️
unittests 58.60% <100.00%> (+<0.01%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33397

@victorjulien victorjulien added this to the 8.0 milestone Aug 27, 2026
@victorjulien

Copy link
Copy Markdown
Member

Merged in #16146, thanks!

@inashivb
inashivb deleted the flow-rate-8/v1 branch August 31, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants