MINOR: h3: remove quic_conn only reference

H3 uses a direct reference to quic_conn to access the listener instance.
This can be replaced by using qcc->conn->target. This allows to remove
quic_conn-t.h header include from it.
This commit is contained in:
Amaury Denoyelle 2023-12-18 19:01:53 +01:00
parent 71f626e3e2
commit d2540b2f72

View File

@ -36,7 +36,6 @@
#include <haproxy/qmux_http.h>
#include <haproxy/qpack-dec.h>
#include <haproxy/qpack-enc.h>
#include <haproxy/quic_conn-t.h>
#include <haproxy/quic_enc.h>
#include <haproxy/quic_frame.h>
#include <haproxy/stats-t.h>
@ -2177,7 +2176,7 @@ static int h3_send_goaway(struct h3c *h3c)
static int h3_init(struct qcc *qcc)
{
struct h3c *h3c;
struct quic_conn *qc = qcc->conn->handle.qc;
const struct listener *li = __objt_listener(qcc->conn->target);
h3c = pool_alloc(pool_head_h3c);
if (!h3c)
@ -2190,9 +2189,8 @@ static int h3_init(struct qcc *qcc)
h3c->id_goaway = 0;
qcc->ctx = h3c;
/* TODO cleanup only ref to quic_conn */
h3c->prx_counters =
EXTRA_COUNTERS_GET(qc->li->bind_conf->frontend->extra_counters_fe,
EXTRA_COUNTERS_GET(li->bind_conf->frontend->extra_counters_fe,
&h3_stats_module);
LIST_INIT(&h3c->buf_wait.list);