]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: listener: remove unneeded local accept flag
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 Apr 2023 16:14:51 +0000 (18:14 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 18 Apr 2023 15:09:34 +0000 (17:09 +0200)
Remove the receiver RX_F_LOCAL_ACCEPT flag. This was used by QUIC
protocol before thread rebinding was supported by the quic_conn layer.

This should be backported up to 2.7 after the previous patch has also
been taken.

include/haproxy/receiver-t.h
src/listener.c

index 4372d46970a4e5cd91952dc80b0fb7f62ddf123b..0dfca42dd9edf8ebfcb8a7ae4231658f1c2a8a15 100644 (file)
@@ -33,7 +33,6 @@
 #define RX_F_BOUND              0x00000001  /* receiver already bound */
 #define RX_F_INHERITED          0x00000002  /* inherited FD from the parent process (fd@) */
 #define RX_F_MWORKER            0x00000004  /* keep the FD open in the master but close it in the children */
-#define RX_F_LOCAL_ACCEPT       0x00000008  /* do not use a tasklet for accept, connections will be accepted on the current thread */
 
 /* Bit values for rx_settings->options */
 #define RX_O_FOREIGN            0x00000001  /* receives on foreign addresses */
index 07c7f92ea99bf5254efbbd7ef500eb61895bdf7b..ad72c8eccf743b13261cfc976fb112f69aa79220 100644 (file)
@@ -1096,9 +1096,6 @@ void listener_accept(struct listener *l)
 
 
 #if defined(USE_THREAD)
-               if (l->rx.flags & RX_F_LOCAL_ACCEPT)
-                       goto local_accept;
-
                mask = l->rx.bind_thread & _HA_ATOMIC_LOAD(&tg->threads_enabled);
                if (atleast2(mask) && (global.tune.options & GTUNE_LISTENER_MQ) && !stopping) {
                        struct accept_queue_ring *ring;