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

Improving DPDK capture interface and docs v7 #8859

Closed
wants to merge 9 commits into from

Conversation

Lukas Sismis added 9 commits May 10, 2023 14:27
Function rte_eth_stats_get is not thread-safe and
the result is only used by one thread.
Running with multiple workers led to very high values in rx_missed
counters (buffer-overflow-like behavior).

Ticket: OISF#6006
Segmented mbufs should never happen in Suricata.
Mbuf segmentation divides the received packet into multiple
mbufs. This can happen when MTU of the NIC is larger than
the allocated mbufs in the mbuf mempool. As Suricata sets the size
of the mbuf to be slightly higher than the configured MTU, mbuf
segmentation should never happen in Suricata. This is especially
true, if Suricata runs as a primary process and configures the
packet source (NIC).

Processing segmented mbufs can lead to missed/false
(pattern-matching) detections as Suricata only inspects the first
segment of the packet. It can also lead to segfault if Suricata
moves the detection window out of the segment boundaries.
@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #8859 (7946f06) into master (9a4231d) will increase coverage by 0.03%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8859      +/-   ##
==========================================
+ Coverage   82.25%   82.28%   +0.03%     
==========================================
  Files         969      969              
  Lines      273176   273176              
==========================================
+ Hits       224689   224782      +93     
+ Misses      48487    48394      -93     
Flag Coverage Δ
fuzzcorpus 64.57% <ø> (+0.10%) ⬆️
suricata-verify 60.34% <ø> (-0.02%) ⬇️
unittests 62.97% <ø> (-0.01%) ⬇️

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

@victorjulien victorjulien mentioned this pull request May 10, 2023
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 13724

@victorjulien
Copy link
Member

Merged in #8861, thanks!

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