]> git.ipfire.org Git - thirdparty/suricata.git/commit
flow: remove use_cnt
authorVictor Julien <vjulien@oisf.net>
Fri, 27 Jan 2023 19:47:46 +0000 (20:47 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 30 Jan 2023 10:02:21 +0000 (11:02 +0100)
commit7951d8a14f1842b612e2871d8ee35ce4bd425521
tree25526e310c1e30559132618a3b1f4a5d588dd1f6
parenta2dc9a40e76ded08e084f1c11eff2140380e73ec
flow: remove use_cnt

Packets only ever reference the flow while holding its lock. This
means than any code possibly evicting the flow will have to wait
for the existing users to complete their work. Therefore the use_cnt
serves no function anymore and can be removed.
src/flow-hash.c
src/flow-manager.c
src/flow-util.h
src/flow-worker.c
src/flow.c
src/flow.h
src/stream-tcp.c
src/util-unittest-helper.c