]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proxies: Add a per-thread group lbprm struct.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 17 Apr 2025 14:10:48 +0000 (16:10 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Apr 2025 15:38:23 +0000 (17:38 +0200)
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
include/haproxy/proxy-t.h

index f0a9bf354d88c9089f36a299d69bb2afca5adcd7..a27fad853d9f45a2618331cf81cb9d3a7108ed7c 100644 (file)
  */
 #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 */
index c2aeefed17c77cef073a18984fdfcbd991b3bf53..4f062a017c15b87c8f68baeea464dd787c66dc45 100644 (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 {