MINOR: quic-stream: add qc field

Add a new member <qc> in qc_stream_desc structure. This change is
possible since previous patch which add quic-conn argument to
qc_stream_desc_new().

The purpose of this change is to simplify the future evolution of
qc-stream-desc API. This will avoid to repeat qc as argument in various
functions which already used a qc_stream_desc.
This commit is contained in:
Amaury Denoyelle 2022-04-21 11:00:41 +02:00
parent e4301da5ed
commit b22c0460d6
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@
*/
struct qc_stream_desc {
struct eb64_node by_id; /* node for quic_conn tree */
struct quic_conn *qc;
struct buffer buf; /* buffer for STREAM data on Tx, emptied on acknowledge */
uint64_t ack_offset; /* last acknowledged offset */

View File

@ -28,6 +28,7 @@ struct qc_stream_desc *qc_stream_desc_new(uint64_t id, void *ctx,
stream->by_id.key = id;
eb64_insert(&qc->streams_by_id, &stream->by_id);
stream->qc = qc;
stream->buf = BUF_NULL;
stream->acked_frms = EB_ROOT;