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.
This commit is contained in:
Olivier Houchard 2025-04-17 16:10:48 +02:00 committed by Amaury Denoyelle
parent 7ca1c94ff0
commit f36f6cfd26
2 changed files with 6 additions and 0 deletions

View File

@ -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 */

View File

@ -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 {