From 95a8dfb4c74658cb7e2e9be63007891931e530a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 29 Jun 2022 11:24:35 +0200 Subject: [PATCH] BUG/MINOR: quic: Dropped packets not counted (with RX buffers full) When the connection RX buffer is full, the received packets are dropped. Some of them were not taken into an account by the ->dropped_pkt counter. This very simple patch has no impact at all on the packet handling workflow. Must be backported to 2.6. --- src/xprt_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index e55507d63..0be3e64bd 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -5575,7 +5575,7 @@ static void qc_lstnr_pkt_rcv(unsigned char *buf, const unsigned char *end, if (b_tail(&qc->rx.buf) + b_cspace < b_wrap(&qc->rx.buf)) { TRACE_PROTO("Packet dropped", QUIC_EV_CONN_LPKT, qc, NULL, NULL, qv); - goto err; + goto drop; } /* Let us consume the remaining contiguous space. */ -- 2.47.3