]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: quic: improve naming for rxbuf/datagrams handling
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 6 Oct 2022 13:16:22 +0000 (15:16 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 13 Oct 2022 09:06:48 +0000 (11:06 +0200)
commit1cba8d60f3f9ef6abf632386f490fd0b0dc2e6b5
treec0e2f13b04492ae3a6de2214117d83b93f25d12b
parent8c4d062d25f57ec983ea8e71a3ccc2f1f9ba7b00
CLEANUP: quic: improve naming for rxbuf/datagrams handling

QUIC datagrams are read from a random thread. They are then redispatch
to the connection thread according to the first packet DCID. These
operations are implemented through a special buffer designed to avoid
locking.

Refactor this code with the following changes :
* <rxbuf> type is renamed <quic_receiver_buf>. Its list element is also
  renamed to highligh its attach point to a receiver.
* <quic_dgram> and <quic_receiver_buf> definition are moved to
  quic_sock-t.h. This helps to reduce the size of quic_conn-t.h.
* <quic_dgram> list elements are renamed to highlight their attach point
  into a <quic_receiver_buf> and a <quic_dghdlr>.

This should be backported up to 2.6.
include/haproxy/quic_conn-t.h
include/haproxy/quic_sock-t.h
include/haproxy/receiver-t.h
src/proto_quic.c
src/quic_conn.c
src/quic_sock.c