]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: quic: Move some QUIC CLI code to its C file
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 23 Nov 2023 14:57:53 +0000 (15:57 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 28 Nov 2023 14:37:22 +0000 (15:37 +0100)
Move init_quic() from quic_conn.c to quic_cli.c and rename it to cli_quic_init().

src/quic_cli.c
src/quic_conn.c

index 91caba271c5c4cce6a53c372463010259688410d..07a32f6cb57a29410f3fa4ab6a97dd97192ac614 100644 (file)
@@ -401,3 +401,13 @@ static struct cli_kw_list cli_kws = {{ }, {
 
 INITCALL1(STG_REGISTER, cli_register_kw, &cli_kws);
 
+static void cli_quic_init()
+{
+       int thr;
+
+       for (thr = 0; thr < MAX_THREADS; ++thr) {
+               LIST_INIT(&ha_thread_ctx[thr].quic_conns);
+               LIST_INIT(&ha_thread_ctx[thr].quic_conns_clo);
+       }
+}
+INITCALL0(STG_INIT, cli_quic_init);
index d729297b0fada7d3f086c5322c2795469b597e6c..0f5377a20b02fd254f53786e0d41a1fe0a5e6284 100644 (file)
@@ -2048,17 +2048,6 @@ void qc_finalize_affinity_rebind(struct quic_conn *qc)
        TRACE_LEAVE(QUIC_EV_CONN_SET_AFFINITY, qc);
 }
 
-static void init_quic()
-{
-       int thr;
-
-       for (thr = 0; thr < MAX_THREADS; ++thr) {
-               LIST_INIT(&ha_thread_ctx[thr].quic_conns);
-               LIST_INIT(&ha_thread_ctx[thr].quic_conns_clo);
-       }
-}
-INITCALL0(STG_INIT, init_quic);
-
 /*
  * Local variables:
  *  c-indent-level: 8