Skip to content

flow/rate: fix ring flushing - #16115

Closed
inashivb wants to merge 1 commit into
OISF:mainfrom
inashivb:flow-rate-underflow/v3
Closed

flow/rate: fix ring flushing#16115
inashivb wants to merge 1 commit into
OISF:mainfrom
inashivb:flow-rate-underflow/v3

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
@inashivb
inashivb requested a review from victorjulien as a code owner August 26, 2026 03:34
@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 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.05%. Comparing base (7c66954) to head (792123b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16115      +/-   ##
==========================================
- Coverage   83.06%   83.05%   -0.01%     
==========================================
  Files        1004     1004              
  Lines      277376   277405      +29     
==========================================
+ Hits       230389   230403      +14     
- Misses      46987    47002      +15     
Flag Coverage Δ
fuzzcorpus 61.50% <0.00%> (-0.01%) ⬇️
livemode 18.48% <0.00%> (+0.06%) ⬆️
netns 22.83% <0.00%> (-0.05%) ⬇️
pcap 45.37% <0.00%> (-0.05%) ⬇️
suricata-verify 67.14% <0.00%> (-0.02%) ⬇️
unittests 58.53% <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.

@victorjulien victorjulien added this to the 9.0 milestone Aug 26, 2026
@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33356

@victorjulien

Copy link
Copy Markdown
Member

Merged in #16118, thanks!

@inashivb
inashivb deleted the flow-rate-underflow/v3 branch August 27, 2026 02:25
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