mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
MINOR: quic: Add a list to QUIC sock I/O handler RX buffer
This list will be used to store datagrams in the rxbuf struct used by the quic_sock_fd_iocb() QUIC sock I/O handler with one rxbuf by thread.
This commit is contained in:
parent
ce521e4f15
commit
53898bba81
2 changed files with 2 additions and 0 deletions
|
|
@ -616,6 +616,7 @@ struct qring {
|
|||
/* QUIC RX buffer */
|
||||
struct rxbuf {
|
||||
struct buffer buf;
|
||||
struct list dgrams;
|
||||
struct mt_list mt_list;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -591,6 +591,7 @@ static int quic_alloc_rxbufs_listener(struct listener *l)
|
|||
goto err;
|
||||
|
||||
rxbuf->buf = b_make(buf, QUIC_RX_BUFSZ, 0, 0);
|
||||
LIST_INIT(&rxbuf->dgrams);
|
||||
MT_LIST_APPEND(&l->rx.rxbuf_list, &rxbuf->mt_list);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue