mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
CLEANUP: stktable: add some stktable flags polishing
Better late than never, commit 1f73d35
("MINOR: stktable: implement
"recv-only" table option") implemented stktable flags and initial
definitions, but it lacks some comments plus the flag is stored as
16bits but the SKT_FL_ definition width allows for only 8bits so
it is a bit confusing, let's fix that
This commit is contained in:
parent
9f44c5f9be
commit
ae9d8d40d0
@ -155,11 +155,12 @@ struct stksess {
|
|||||||
/* WARNING! do not put anything after <keys>, it's used by the key */
|
/* WARNING! do not put anything after <keys>, it's used by the key */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define STK_FL_NONE 0x00
|
/* stktable struct flags */
|
||||||
#define STK_FL_RECV_ONLY 0x01 /* table is assumed to be remotely updated only
|
#define STK_FL_NONE 0x0000
|
||||||
|
#define STK_FL_RECV_ONLY 0x0001 /* table is assumed to be remotely updated only
|
||||||
* (never updated locally)
|
* (never updated locally)
|
||||||
*/
|
*/
|
||||||
#define STK_FL_NOPURGE 0x02 /* if non-zero, don't purge sticky sessions when full */
|
#define STK_FL_NOPURGE 0x0002 /* if non-zero, don't purge sticky sessions when full */
|
||||||
|
|
||||||
/* stick table */
|
/* stick table */
|
||||||
struct stktable {
|
struct stktable {
|
||||||
@ -189,7 +190,7 @@ struct stktable {
|
|||||||
int data_ofs[STKTABLE_DATA_TYPES]; /* negative offsets of present data types, or 0 if absent */
|
int data_ofs[STKTABLE_DATA_TYPES]; /* negative offsets of present data types, or 0 if absent */
|
||||||
unsigned int data_nbelem[STKTABLE_DATA_TYPES]; /* to store nb_elem in case of array types */
|
unsigned int data_nbelem[STKTABLE_DATA_TYPES]; /* to store nb_elem in case of array types */
|
||||||
unsigned int brates_factor; /* Factor used for IN/OUT bytes rates */
|
unsigned int brates_factor; /* Factor used for IN/OUT bytes rates */
|
||||||
uint16_t flags;
|
uint16_t flags; /* STK_FL_* flags */
|
||||||
/* 2-bytes hole */
|
/* 2-bytes hole */
|
||||||
union {
|
union {
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user