]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stktable: add table_{inc,clr}_gpc* converters
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 15 Jan 2025 20:14:21 +0000 (21:14 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 16 Jan 2025 10:50:33 +0000 (11:50 +0100)
commit0486b9e4918d271ae2ec52d7deb82d415cf7a34c
tree3085f01c9ff8bf13bef21e84f49a08ab397a9ee6
parent9f68049cc12846d844d16c05629832e17ecf67a6
MINOR: stktable: add table_{inc,clr}_gpc* converters

As discussed in GH #2423, there are some cases where src_{inc,clr}_gpc*
is not sufficient because we need to perform the lookup on a specific
key. Indeed, just like we did in e642916 ("MEDIUM: stktable: leverage
smp_fetch_* helpers from sample conv"), we can easily implement new
table converters based on existing fetches. This is what we do in
this patch.

Also the doc was updated so that src_{inc,clr}_gpc* fetches now point to
their generic equivalent table_{inc,clr}_gpc*. Indeed, src_{inc,clr}_gpc*
are simply aliases.

This should fix GH #2423.
doc/configuration.txt
src/stick_table.c