Use the value of 0x3 for the stream-id of H3 control-stream. As a
consequence, qcs_get_next_id is now unused and is thus removed.
return id & QCS_ID_SRV_INTIATOR_BIT;
}
-static inline int qcs_get_next_id(struct qcc *qcc, enum qcs_type type)
-{
- BUG_ON(qcc->strms[type].nb_streams + 1 > qcc->strms[type].max_streams);
- return (qcc->strms[type].nb_streams++ << QCS_ID_TYPE_SHIFT) | type;
-}
-
struct eb64_node *qcc_get_qcs(struct qcc *qcc, uint64_t id);
/* Install the <app_ops> applicative layer of a QUIC connection on mux <qcc>.
static int h3_finalize(void *ctx)
{
struct h3 *h3 = ctx;
- int lctrl_id;
- lctrl_id = qcs_get_next_id(h3->qcc, QCS_SRV_UNI);
- h3->lctrl.qcs = qcs_new(h3->qcc, lctrl_id, QCS_SRV_UNI);
+ h3->lctrl.qcs = qcs_new(h3->qcc, 0x3, QCS_SRV_UNI);
if (!h3->lctrl.qcs)
return 0;