From f36f6cfd26762f81950e31ace501fc2311bbc279 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 17 Apr 2025 16:10:48 +0200 Subject: [PATCH] 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. --- include/haproxy/backend-t.h | 5 +++++ include/haproxy/proxy-t.h | 1 + 2 files changed, 6 insertions(+) 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 {