inliniac/suricata — pull request #1227 by ken-tilera (2014-11-24 15:45:37+00:00)
Title: Move tcp.reassembly_memuse to flow manager thread

This solves two problems. One is that every worker thread was reporting
the same value for TCP reassembly memuse, which implied that it was a
per-thread value, but it is global.

The other problem is that the true value, stored in the global ra_memuse, was
only copied to the tcp_reassembly_memuse stat in one function, when it was
increased, so it missed when the value went down.

Passes PR scripts:
- PR build: https://buildbot.openinfosecfoundation.org/builders/ken-tilera/builds/54
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/ken-tilera-pcap/builds/60