]> git.kaiwu.me - haproxy.git/commit
MINOR: bwlim: Stop to explicitly loop on the proxy's filter_configs list
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 10:50:33 +0000 (11:50 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 13:08:45 +0000 (14:08 +0100)
commitcb83a1898ea0c710ba9af87292a904f1929a0c31
tree3c5ee559aef4b2a7e37787db3b11a805013e5946
parent99d7eebaa96e80ea4c45b79ae2ebf337a9c0de04
MINOR: bwlim: Stop to explicitly loop on the proxy's filter_configs list

The bandwidth limitation filter keyword parsers scanned the
filter_configs list of the proxy by hand to detect an already declared
"bwlim-in" or "bwlim-out" configuration, matching on the filter ids and
the limitation name.

The parsers now use flt_find_conf() with a match callback, the supported
way to find a filter configuration, which walks the right list depending
on the filter mode of the proxy. The duplicate check matches both filter
ids at once, with a single lookup.
src/flt_bwlim.c