MINOR: mux: remove last occurences of qcc ring buffer

The mux tx buffers have been rewritten with buffers attached to qcs
instances. qc_buf_available and qc_get_buf functions are updated to
manipulates qcs. All occurences of the unused qcc ring buffer are
removed to ease the code maintenance.
This commit is contained in:
Amaury Denoyelle
2021-10-12 18:14:12 +02:00
parent cae0791942
commit 1e308ffc79
4 changed files with 14 additions and 96 deletions

View File

@@ -89,9 +89,6 @@ enum qcs_type {
QCS_MAX_TYPES,
};
/* 32 buffers: one for the ring's root, rest for the mbuf itself */
#define QCC_MBUF_CNT 32
/* Stream direction types */
enum qcs_dir {
QCS_BIDI = 0,
@@ -139,9 +136,6 @@ struct qcc {
struct eb_root streams_by_id; /* all active streams by their ID */
/* states for the mux direction */
struct buffer mbuf[QCC_MBUF_CNT]; /* mux buffers (ring) */
int timeout; /* idle timeout duration in ticks */
int shut_timeout; /* idle timeout duration in ticks after GOAWAY was sent */
unsigned int nb_cs; /* number of attached conn_streams */

View File

@@ -31,9 +31,8 @@
#include <haproxy/obj_type.h>
void quic_mux_transport_params_update(struct qcc *qcc);
struct buffer *qc_get_buf(struct qcc *qcc, struct buffer *bptr);
int qc_cpy_mbuf(struct qcs *qcs, unsigned char *buf, size_t len);
void qc_error(struct qcc *qcc, int err);
struct buffer *qc_get_buf(struct qcs *qcs, struct buffer *bptr);
struct qcs *qcc_get_stream(struct qcc *qcc, uint64_t id);
struct qcs *bidi_qcs_new(struct qcc *qcc, uint64_t id);
struct qcs *luqs_new(struct qcc *qcc);