]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-table: add the new arrays of gpc and gpc_rate
authorEmeric Brun <ebrun@haproxy.com>
Wed, 30 Jun 2021 17:04:16 +0000 (19:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Jul 2021 05:24:42 +0000 (07:24 +0200)
commit4d7ada8f9e6253bbe0ae0ef06fc70c3de51066e0
tree1c84e4bda1da53b529376779b8814b5cf91d38fe
parentf7ab0bfb620721443a18457761a313dac3e20962
MEDIUM: stick-table: add the new arrays of gpc and gpc_rate

This patch adds the definition of two new array data_types:
'gpc': This is an array of 32bits General Purpose Counters.
'gpc_rate': This is an array on increment rates of General Purpose Counters.

Like for all arrays, they are limited to 100 elements.

This patch also adds actions and fetches to handle
elements of those arrays.

Note: As documented, those new actions and fetches won't
apply to the legacy 'gpc0', 'gpc1', 'gpc0_rate' nor 'gpc1_rate'.
doc/configuration.txt
include/haproxy/action-t.h
include/haproxy/stick_table-t.h
src/stick_table.c