mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
CLEANUP: mux-quic: remove unused fields for Rx
Rx has been simplified since the conversion of buffer to a ncbuf. The old buffer can now be removed. The frms tree is also removed. It was used previously to stored out-of-order received STREAM frames. Now the MUX is able to buffer them directly into the ncbuf.
This commit is contained in:
parent
3db98e9d13
commit
00f87bbaa3
@ -101,9 +101,7 @@ struct qcs {
|
||||
void *ctx; /* app-ops context */
|
||||
|
||||
struct {
|
||||
struct eb_root frms; /* received frames ordered by their offsets */
|
||||
uint64_t offset; /* absolute current base offset of ncbuf */
|
||||
struct buffer buf; /* receive buffer, always valid (buf_empty or real buffer) */
|
||||
struct ncbuf ncbuf; /* receive buffer - can handle out-of-order offset frames */
|
||||
struct buffer app_buf; /* receive buffer used by conn_stream layer */
|
||||
uint64_t msd; /* fctl bytes limit to enforce */
|
||||
|
@ -153,11 +153,9 @@ struct qcs *qcs_new(struct qcc *qcc, uint64_t id, enum qcs_type type)
|
||||
qcs->tx.msd = quic_stream_is_local(qcc, id) ? qcc->rfctl.msd_bidi_r :
|
||||
qcc->rfctl.msd_bidi_l;
|
||||
|
||||
qcs->rx.buf = BUF_NULL;
|
||||
qcs->rx.ncbuf = NCBUF_NULL;
|
||||
qcs->rx.app_buf = BUF_NULL;
|
||||
qcs->rx.offset = 0;
|
||||
qcs->rx.frms = EB_ROOT_UNIQUE;
|
||||
|
||||
/* TODO use uni limit for unidirectional streams */
|
||||
qcs->rx.msd = quic_stream_is_local(qcc, id) ? qcc->lfctl.msd_bidi_l :
|
||||
@ -202,7 +200,6 @@ static void qc_free_ncbuf(struct qcs *qcs, struct ncbuf *ncbuf)
|
||||
*/
|
||||
void qcs_free(struct qcs *qcs)
|
||||
{
|
||||
b_free(&qcs->rx.buf);
|
||||
qc_free_ncbuf(qcs, &qcs->rx.ncbuf);
|
||||
b_free(&qcs->tx.buf);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user