MEDIUM: lbprm: store algo params on 32bits
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 15 Nov 2023 10:49:44 +0000 (11:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 18 Nov 2023 10:16:21 +0000 (11:16 +0100)
commitf42dfaa214be2d445885234b74ada740d6e3556c
treeba241c14fc33b1d02fb65c57c5ef54db6e983819
parenta327b80f1f8cd7d28a4ac3d330420b93b014d13d
MEDIUM: lbprm: store algo params on 32bits

Make sure lbprm.algo can store 32bits by declaring it as uint32_t

Then, use all 32 available bits to offer 4 extra bits for the BE_LB_NEED
inputs. This will allow new required inputs to be easily added (up to 4
new ones, plus one that wasn't used yet if we keep them exclusive)

This required some cleanup: all ALGO bitfields were rewritten in the
32bits format and the high ones were shifted to make room for the
new BE_LB_NEED bits.
include/haproxy/backend-t.h