mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
REORG: quic: Move some QUIC CLI code to its C file
Move init_quic() from quic_conn.c to quic_cli.c and rename it to cli_quic_init().
This commit is contained in:
parent
21615d4376
commit
1564ec0a93
@ -401,3 +401,13 @@ static struct cli_kw_list cli_kws = {{ }, {
|
|||||||
|
|
||||||
INITCALL1(STG_REGISTER, cli_register_kw, &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);
|
||||||
|
@ -2048,17 +2048,6 @@ void qc_finalize_affinity_rebind(struct quic_conn *qc)
|
|||||||
TRACE_LEAVE(QUIC_EV_CONN_SET_AFFINITY, 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:
|
* Local variables:
|
||||||
* c-indent-level: 8
|
* c-indent-level: 8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user