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:
parent
7ca1c94ff0
commit
f36f6cfd26
@ -144,6 +144,11 @@
|
|||||||
*/
|
*/
|
||||||
#define BE_WEIGHT_SCALE 16
|
#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 */
|
/* LB parameters for all algorithms */
|
||||||
struct lbprm {
|
struct lbprm {
|
||||||
union { /* LB parameters depending on the algo type */
|
union { /* LB parameters depending on the algo type */
|
||||||
|
@ -302,6 +302,7 @@ struct error_snapshot {
|
|||||||
/* Each proxy will have one occurrence of this structure per thread group */
|
/* Each proxy will have one occurrence of this structure per thread group */
|
||||||
struct proxy_per_tgroup {
|
struct proxy_per_tgroup {
|
||||||
struct queue queue;
|
struct queue queue;
|
||||||
|
struct lbprm_per_tgrp lbprm;
|
||||||
} THREAD_ALIGNED(64);
|
} THREAD_ALIGNED(64);
|
||||||
|
|
||||||
struct proxy {
|
struct proxy {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user