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

Fix http pipeline inspect v6.0 #1375

Merged
merged 22 commits into from Mar 16, 2015
Merged

Conversation

inliniac
Copy link
Contributor

PacketPoolWait in autofp can wait for considerable time. Until now
it was essentially spinning, keeping the CPU 100% busy.

This patch introduces a condition to wait in such cases.

Atomically flag pool that consumer is waiting, so that we can sync
the pending pool right away instead of waiting for the
MAX_PENDING_RETURN_PACKETS limit.
Use DETECT_ENGINE_INSPECT_SIG_* instead of 0, 1, 2 and 3.
Only lock f->de_state->m when we start to access it. So after
declaration and initialization of local vars.
Add little helper to indicate current tx is that last we have.
Add little helper function StateIsValid() to test if the state
can be inspected safely.

Cleans up stateful detection loops.
Add API calls for storing detection state in the TX.
Use separate data structures for storing TX and FLOW (AMATCH) detect
state.

- move state storing into util funcs
- remove de_state_m
- simplify reset state logic on reload
In case of Detect Reload, we need to reset active tx' state.
@inliniac inliniac merged commit e250040 into master Mar 16, 2015
@inliniac
Copy link
Contributor Author

@inliniac inliniac deleted the dev-http-pipeline-inspect-v6.0 branch April 16, 2015 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants