]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stktable: add smp_fetch_stksess() helper function
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 9 Jan 2025 17:59:35 +0000 (18:59 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 15 Jan 2025 13:04:40 +0000 (14:04 +0100)
commitf71bad46949b9376b9ae63b0470908f631f01c2b
tree663569f918476a177106238a58bfd0c73406b92f
parent0fb8807820bfaac76dd08f2abeac6bbc9cb67bb1
MINOR: stktable: add smp_fetch_stksess() helper function

smp_fetch_stksess(table, smp, create) performs a lookup in <table> by
using <smp> as a key. It returns matching entry on success and NULL on
failure. <create> can be set to 1 to force the entry creation.

We then use this helper everywhere relevant to prevent code duplication
src/stick_table.c