From: Olivier Houchard Date: Thu, 17 Apr 2025 14:10:48 +0000 (+0200) Subject: MINOR: proxies: Add a per-thread group lbprm struct. X-Git-Tag: v3.2-dev11~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f36f6cfd26762f81950e31ace501fc2311bbc279;p=thirdparty%2Fhaproxy.git MINOR: proxies: Add a per-thread group lbprm struct. Add a new structure in the per-thread groups proxy structure, that will contain whatever is per-thread group in lbprm. It will be accessed as p->per_tgrp[tgid].lbprm. --- diff --git a/include/haproxy/backend-t.h b/include/haproxy/backend-t.h index f0a9bf354..a27fad853 100644 --- a/include/haproxy/backend-t.h +++ b/include/haproxy/backend-t.h @@ -144,6 +144,11 @@ */ #define BE_WEIGHT_SCALE 16 +/* LB parameters for all algorithms, with one instance per thread-group */ +struct lbprm_per_tgrp { + union { + }; +}; /* LB parameters for all algorithms */ struct lbprm { union { /* LB parameters depending on the algo type */ diff --git a/include/haproxy/proxy-t.h b/include/haproxy/proxy-t.h index c2aeefed1..4f062a017 100644 --- a/include/haproxy/proxy-t.h +++ b/include/haproxy/proxy-t.h @@ -302,6 +302,7 @@ struct error_snapshot { /* Each proxy will have one occurrence of this structure per thread group */ struct proxy_per_tgroup { struct queue queue; + struct lbprm_per_tgrp lbprm; } THREAD_ALIGNED(64); struct proxy {