MINOR: stktable: check if a type should be used as-is
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 26 Oct 2023 15:46:02 +0000 (17:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Nov 2023 16:30:30 +0000 (17:30 +0100)
commitdb0cb54f8129ae6977e3947b211796f6d7a35f8c
tree1c2365cfba33fe5e2cfed6b70625d2103a7fe8e3
parentb8c19f877a74ef46ebaaf75f2bc08ea65d353520
MINOR: stktable: check if a type should be used as-is

stick table types now have an extra bit named 'as_is' that allows us to
check if such type should be used as-is or if it may be involved in
arithmetic operations such as counters. This can be useful since those
types are not common and may require specific handling.

e.g.: stktable_data_types[data_type].as_is will be set to 1 if the type
cannot be used in arithmetic operations.
include/haproxy/stick_table-t.h
src/stick_table.c