MINOR: quic: extract connection retrieval
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Oct 2022 13:28:44 +0000 (15:28 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Oct 2022 16:12:56 +0000 (18:12 +0200)
commit449b1a8f552ddbf08be707fae1824a79fe862955
treea79fc8313b9fa5b232792538e9aa3a6a08d086e5
parentdeb7c87f5525d5645dd7c94fb187603edbb8d27a
MINOR: quic: extract connection retrieval

Simplify qc_lstnr_pkt_rcv() by extracting code responsible to retrieve
the quic-conn instance. This code is put in a dedicated function named
quic_rx_pkt_retrieve_conn(). This new function could be skipped if a
FD-owned quic-conn socket is used.

The first traces of qc_lstnr_pkt_rcv() have been clean up as qc instance
is always NULL here : thus qc parameter can be removed without any
change.

This change has no functional impact. It is a part of a refactoring
series on qc_lstnr_pkt_rcv(). The objective is facilitate integration of
FD-owned socket patches.

This should be backported up to 2.6.
src/quic_conn.c