]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: listener: remove the now unused options field
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Jan 2023 19:10:11 +0000 (20:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Feb 2023 17:00:20 +0000 (18:00 +0100)
All options that made sense were moved to the bind_conf, and remaining
ones were removed. This field isn't used at all anymore. The thr_idx
field was moved there to plug the hole.

include/haproxy/listener-t.h

index 763e8c37649c5a09d5737feb30bec709932a1aa5..6e5c4238ed13e777e22ec57673e2e7811eb0d4e3 100644 (file)
@@ -90,25 +90,6 @@ enum li_status {
        LI_STATE_COUNT /* must be last */
 };
 
-/* listener socket options */
-#define LI_O_NONE               0x0000
-/* unused                       0x0001  */
-/* unused                       0x0002  */
-/* unused                       0x0004  */
-/* unused                       0x0008  */
-/* unused                       0x0010  */
-/* unused                       0x0020  */
-/* unused                       0x0040  */
-/* unused                       0x0080  */
-/* unused                       0x0100  */
-/* unused                       0x0200  */
-/* unused                       0x0400  */
-/* unused                       0x0800  */
-/* unused                       0x1000  */
-/* unused                       0x2000  */
-/* unused                       0x4000  */
-/* unused                       0x8000  */
-
 /* Note: if a bind_conf uses BC_O_UNLIMITED, it is highly recommended that it adds its own
  * maxconn setting to the global.maxsock value so that its resources are reserved.
  */
@@ -249,22 +230,17 @@ struct listener {
        enum li_state state;            /* state: NEW, INIT, ASSIGNED, LISTEN, READY, FULL */
        /* 2-byte hole here */
        int luid;                       /* listener universally unique ID, used for SNMP */
-       int options;                    /* socket options : LI_O_* */
        int flags;                      /* LI_F_* flags */
+       unsigned int thr_idx;           /* thread indexes for queue distribution : (t2<<16)+t1 */
        __decl_thread(HA_RWLOCK_T lock);
 
        struct fe_counters *counters;   /* statistics counters */
        int nbconn;                     /* current number of connections on this listener */
-       /* cache line boundary */
        struct mt_list wait_queue;      /* link element to make the listener wait for something (LI_LIMITED)  */
-       unsigned int thr_idx;           /* thread indexes for queue distribution : (t2<<16)+t1 */
        char *name;                     /* listener's name */
 
-       /* cache line boundary */
        unsigned int thr_conn[MAX_THREADS]; /* number of connections per thread */
 
-       /* cache line boundary */
-
        struct list by_fe;              /* chaining in frontend's list of listeners */
        struct list by_bind;            /* chaining in bind_conf's list of listeners */
        struct bind_conf *bind_conf;    /* "bind" line settings, include SSL settings among other things */