Open
Conversation
When running as a secondary DPDK process, Suricata may receive
segmented (chained) mbufs from the primary application. Previously,
these packets would trigger a warning and potentially be processed
incorrectly since only the first segment was accessible.
Now Suricata handles segmented mbufs by:
1. Attempting to linearize in-place with rte_pktmbuf_linearize()
2. If linearization fails (insufficient tailroom), copying all
segments into the packet's internal buffer
A one-time warning is still logged advising users to increase
mbuf size (secondary) or MTU (primary) for better performance.
Ticket: 6012
Signed-off-by: mmaatuq <mmaatuq3@gatech.edu>
Member
|
CI failures are due to the SV test not being rebased, I think. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
(including schema descriptions)
Link to ticket: https://redmine.openinfosecfoundation.org/issues/6012
Describe changes:
When running as a secondary DPDK process, Suricata may receive
segmented (chained) mbufs from the primary application. Previously,
these packets would trigger a warning and potentially be processed
incorrectly since only the first segment was accessible.
Now Suricata handles segmented mbufs by:
A one-time warning is still logged advising users to increase
mbuf size (secondary) or MTU (primary) for better performance.
Ticket: 6012
Provide values to any of the below to override the defaults.
link to the pull request in the respective
_BRANCHvariable.SV_REPO=
SV_BRANCH=OISF/suricata-verify#2835
SU_REPO=
SU_BRANCH=
changes since #14541: