]> git.ipfire.org Git - thirdparty/suricata.git/commit
packet: turn tunnel lock into spinlock 8085/head
authorVictor Julien <vjulien@oisf.net>
Fri, 21 Oct 2022 19:22:23 +0000 (21:22 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 25 Oct 2022 08:39:10 +0000 (10:39 +0200)
commit1fafb83fed2b03c9f8730f6cd191a6b4299ff489
tree5e2c35f715fac3e9e051a7afd7cbd9b8d9121719
parent57e70841c499277e2fb91c3a554982f385cd00b5
packet: turn tunnel lock into spinlock

Lock is only held to update/check ints, so spin lock will be more
efficient.

Place the member of Packet in a new "persistent" area to make it
clear this is not touched by the PacketReinit logic.

Ticket: #5592.
src/decode.h
src/detect-mark.c
src/packet.c
src/source-nfq.c
src/tmqh-packetpool.c